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 20, 2026 00:03avoidcatenjoyersavoidcatenjoyersError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 00:030820,510,940753,361,00057,615,0002,113,536expected "53681514170625439 ", got "53681260743835135 "
2May 20, 2026 00:030822,465,295753,654,00057,722,0002,113,536expected "53687393822770325 ", got "53687162162705834 "
3May 20, 2026 00:030824,240,677753,864,00058,058,0002,113,536expected "53689679852137943 ", got "53689439696145322 "