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 20, 2026 20:27PaulPaulError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2026 20:2801,069,777,980994,227,00064,857,0002,138,112expected "53677861508061730 ", got "53677868419633780 "
2Jul 20, 2026 20:2801,069,516,129994,028,00064,917,0002,138,112expected "53684663728475216 ", got "53684670640750208 "
3Jul 20, 2026 20:2801,068,191,568993,921,00063,140,0002,138,112expected "53689307570530237 ", got "53689314483573567 "