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 listApr 25, 2026 23:16zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 23:16049,988,77929,565,0001,019,0002,355,200expected "53679368302642470 ", got "X3679368302642470 "stderr
2Apr 25, 2026 23:16049,694,96729,521,00002,363,392expected "53693827707245214 ", got "X3693827707245214 "stderr
3Apr 25, 2026 23:16047,679,96428,324,0001,011,0002,359,296expected "53685233501518193 ", got "X3685233501518193 "stderr