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 28, 2026 11:38Victor 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 28, 2026 11:38049,993,74440,513,0001,198,0002,117,632expected "53686943088688106 ", got "53686943088688107 "stderr
2Aug 28, 2026 11:38047,880,08938,714,0001,016,0002,117,632expected "53679074121574156 ", got "53679074121574157 "stderr
3Aug 28, 2026 11:38051,505,82341,986,0001,194,0002,117,632expected "53688850692612835 ", got "53688850692612834 "stderr