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 14, 2026 06:44Victor 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
1May 14, 2026 06:44069,653,07356,763,0001,042,0002,113,536expected "53689709019648460 ", got "53689685979648460 "
2May 14, 2026 06:44067,954,18658,303,00002,113,536expected "53687266659786864 ", got "53687243619786864 "
3May 14, 2026 06:446,96866,087,86156,800,0001,036,0002,113,536
4May 14, 2026 06:446,96967,037,60657,846,00002,113,536
5May 14, 2026 06:446,97467,484,87556,885,0001,000,0002,113,536
6May 14, 2026 06:446,98066,140,74756,792,0001,147,0002,113,536
7May 14, 2026 06:447,02165,919,17257,270,0001,008,0002,113,536
8May 14, 2026 06:447,02568,599,77358,312,00002,113,536
9May 14, 2026 06:447,12168,166,49858,097,0001,014,0002,113,536