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 3, 2026 05:39limanjun99limanjun99Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 05:39060,375,79441,574,0003,042,0002,437,120expected "53676368657784354 ", got "53674627013063946"
2May 3, 2026 05:39059,906,38641,305,0003,022,0002,428,928expected "53687974623463892 ", got "53686190491222876"
3May 3, 2026 05:39059,345,80741,338,0004,033,0002,383,872expected "53689513050832102 ", got "53686093923043565"