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:13PaulPaulError
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:14072,970,1682,057,00060,163,0002,138,112expected "53687484024276347 ", got "13479671827357 "
2Jul 20, 2026 20:14075,528,5852,045,00062,865,0002,138,112expected "53687682982624594 ", got "13548058515125 "
3Jul 20, 2026 20:14073,773,8442,061,00061,198,0002,138,112expected "53683602867728153 ", got "13351082956790 "