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 31, 2026 19:51boop34boop34Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 19:51049,174,5299,309,00030,004,0002,113,536expected "53683471264017647 ", got "6871251904349170 "
2Jul 31, 2026 19:51049,889,0369,214,00030,757,0002,113,536expected "53689794362555932 ", got "6873007391963463 "
3Jul 31, 2026 19:51049,556,6299,476,00030,097,0002,113,536expected "53689316584775161 ", got "6874878168738057 "