Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listNov 16, 2024 19:21zielajzielajScore: 3,743Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 19:213,59759,009,16728,858,000995,0002,338,816
2Nov 16, 2024 19:213,61051,514,50027,963,0001,997,0002,351,104
3Nov 16, 2024 19:213,65554,285,62728,316,0002,022,0002,351,104
4Nov 16, 2024 19:213,74353,887,57230,067,0001,002,0002,371,584
5Nov 16, 2024 19:213,75849,880,16829,180,0002,012,0002,531,328
6Nov 16, 2024 19:213,81255,806,46030,617,0001,020,0002,277,376