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 6, 2024 21:53Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2024 21:5300000Error: expected "53682812457742559 ", got "53683399263102547"
2May 6, 2024 21:5300000Error: expected "53689510965922020 ", got "53689937019502478"
3May 6, 2024 21:5300000Error: expected "53679491211128355 ", got "53680230921557173"
4May 6, 2024 21:5400000Error: expected "53689912765999903 ", got "53690344339481764"
5May 6, 2024 21:5400000Error: expected "53681458321655052 ", got "53681963382433166"
6May 6, 2024 21:5400000Error: expected "53679603976270080 ", got "53680314475527899"
7May 6, 2024 21:538,126124,894,32967,448,57302,273,280
8May 6, 2024 21:538,130130,529,00667,476,83502,256,896
9May 6, 2024 21:538,318136,976,22769,041,36902,277,376