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 9, 2026 12:50E SequeiraE SequeiraError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2026 12:500459,990,286441,673,0001,020,0002,322,432expected "53687243623645425 ", got "53687237277484225 "
2May 9, 2026 12:500456,690,471438,388,0001,181,0002,306,048expected "53686466408384140 ", got "53686461660678140 "
3May 9, 2026 12:500458,916,516439,576,0001,175,0002,310,144expected "53683925957983936 ", got "53683921357983936 "