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 3, 2026 18:09Josu San MartinJosu San MartinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 18:090102,711,53586,630,0006,687,0002,117,632expected "53690579437711648 ", got "51244590839525158 "
2Jul 3, 2026 18:090103,138,10186,905,0006,853,0002,117,632expected "53689038786972956 ", got "51243011890084406 "
3Jul 3, 2026 18:090103,477,88087,472,0006,667,0002,121,728expected "53681692029397242 ", got "51235622330816202 "