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 listAug 29, 2026 13:43Victor 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
1Aug 29, 2026 13:430492,539,948482,376,0001,053,0002,117,632expected "53692209350505919 ", got "29654039944754677 "stderr
2Aug 29, 2026 13:430495,511,953485,342,0001,175,0002,117,632expected "53686497165857103 ", got "29650878299111902 "stderr
3Aug 29, 2026 13:430495,382,992485,358,0001,077,0002,117,632expected "53687853897248939 ", got "29649114674192975 "stderr