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 4, 2026 12:08limanjun99limanjun99Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2026 12:08051,823,63632,927,0003,623,0002,510,848expected "53692239296576228 ", got "53690064107843320"
2May 4, 2026 12:08054,260,98833,804,0003,121,0002,506,752expected "53691320347211490 ", got "53689093117629184"
3May 4, 2026 12:08053,755,18933,810,0002,346,0002,506,752expected "53680700301622263 ", got "53678492780949885"