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 listJul 7, 2026 03:40wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 03:48Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 03:48038,339,26530,449,00002,113,536expected "45495471644304896 ", got "45376316747000139 "
2Jul 7, 2026 03:48038,437,60129,572,0001,023,0002,113,536expected "45496710112779026 ", got "45377292241684360 "
3Jul 7, 2026 03:48039,250,05031,369,00002,113,536expected "45501192587217570 ", got "45381869514377573 "
4Jul 7, 2026 03:433,28735,303,17926,264,0001,020,0002,113,536
5Jul 7, 2026 03:433,29435,177,27226,337,0001,011,0002,113,536
6Jul 7, 2026 03:433,29735,212,49126,342,0001,026,0002,113,536
7Jul 7, 2026 03:433,29836,784,86126,343,0001,031,0002,113,536
8Jul 7, 2026 03:433,31035,290,66026,449,0001,025,0002,113,536
9Jul 7, 2026 03:433,39536,137,36927,156,0001,023,0002,113,536
10Jul 7, 2026 03:433,40236,463,22427,207,0001,032,0002,113,536
11Jul 7, 2026 03:433,42936,472,57927,452,0001,010,0002,113,536
12Jul 7, 2026 03:433,49037,440,77927,933,0001,037,0002,113,536