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 listOct 1, 2026 17:13Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 1, 2026 17:130119,452,68679,155,0001,155,00020,480expected "53679828117135306 ", got "53679828117135306 30077 3 270 26507 55 1|26243 26245 |109401 "
2Oct 1, 2026 17:130119,420,67479,227,0001,008,00020,480expected "53686920279134377 ", got "53686920279134377 30072 2 269 26559 54 1|26276 26263 |109494 "
3Oct 1, 2026 17:130120,431,22879,759,000020,480expected "53681533555166113 ", got "53681533555166113 30054 2 276 26333 54 1|26131 26133 |108984 "