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 listSep 3, 2026 21:16Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2026 21:17049,337,00339,655,0001,151,0002,117,632expected "53688956051510596 ", got "11097274715199 "stderr
2Sep 3, 2026 21:17049,981,61639,679,0001,148,0002,117,632expected "53687246487071741 ", got "11400144167057 "stderr
3Sep 3, 2026 21:17050,016,93239,829,0001,014,0002,117,632expected "53679314162162526 ", got "11133449480176 "stderr