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 10, 2026 08:10Josu 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
1May 10, 2026 08:10059,372,75344,007,0001,046,0002,551,808expected "53676107431495866 ", got "53676107435447874 "
2May 10, 2026 08:10065,690,58046,116,0001,093,0002,555,904expected "53681060435396076 ", got "53681060439779947 "
3May 10, 2026 08:10065,628,26749,448,0001,157,0002,551,808expected "53688071567291630 ", got "53688071574791690 "