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 4, 2026 11:26limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 01:56Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 01:56045,704,26433,087,0002,331,0002,113,536expected "74600294196621100 ", got "74599988362063660"
2Jul 7, 2026 01:56046,815,82033,649,0002,216,0002,113,536expected "74600294196621100 ", got "74528217704148780"
3Jul 7, 2026 01:56048,824,79133,019,0002,248,0002,113,536expected "74600294196621100 ", got "74599988362063660"
4May 4, 2026 11:294,44555,380,67534,651,0002,250,0002,510,848
5May 4, 2026 11:294,45655,149,77434,643,0002,345,0002,498,560
6May 4, 2026 11:294,45655,768,62734,696,0002,297,0002,498,560
7May 4, 2026 11:294,46855,234,37434,805,0002,287,0002,510,848
8May 4, 2026 11:294,51754,723,03335,215,0002,284,0002,502,656
9May 4, 2026 11:294,52654,118,75635,310,0002,257,0002,506,752
10May 4, 2026 11:294,54456,007,39435,446,0002,276,0002,510,848
11May 4, 2026 11:294,57158,383,11535,581,0002,366,0002,490,368
12May 4, 2026 11:294,59554,027,11934,506,0003,635,0002,494,464