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:20PaulPaulError
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:210508,591,510440,563,00057,559,0002,138,112expected "53683939345301245 ", got "1981878306826035080 "
2Jul 20, 2026 20:210509,158,592440,879,00057,469,0002,138,112expected "53691016215193095 ", got "3982197123862096966 "
3Jul 20, 2026 20:210509,979,282441,554,00056,542,0002,138,112expected "53682411123259487 ", got "204804444137470932 "