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 listJul 25, 2024 22:04UdbhavUdbhavError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2024 22:0400000Error: expected "53692206954226893 ", got "53692181354226893 "
2Jul 25, 2024 22:0500000Error: expected "53687015450480374 ", got "53687007770480374 "
3Jul 25, 2024 22:0700000Error: expected "53688685114021232 ", got "53688656954021232 "
4Jul 25, 2024 22:1011,389158,898,69094,524,63302,211,840
5Jul 25, 2024 22:1011,403165,165,66094,645,20402,220,032
6Jul 25, 2024 22:1011,437150,849,29294,929,99102,215,936