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 listMay 31, 2024 04:25GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 04:2500000Error: expected "53687612186272415 ", got "53687612173099679 "
2May 31, 2024 04:2500000Error: expected "53688409298921578 ", got "53688409298856042 "
3May 31, 2024 04:2500000Error: expected "53682987491075647 ", got "53682986835715647 "
4May 31, 2024 04:2500000Error: expected "53690526171277922 ", got "53690525515852386 "
5May 31, 2024 04:25279,5252,375,779,3632,320,053,35602,281,472
6May 31, 2024 04:25279,5452,381,481,2062,320,223,08302,289,664
7May 31, 2024 04:25279,5802,387,767,6882,320,511,34602,301,952