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 12:26limanjun99limanjun99Error
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 12:27068,498,07241,875,0004,985,0002,428,928expected "53692340305875677 ", got "1760440752120167519"
2May 3, 2026 12:27068,642,11943,852,0002,989,0002,424,832expected "53688409849692926 ", got "12236930841559979269"
3May 3, 2026 12:275,66964,357,77642,050,0005,006,0002,420,736