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 09:37limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 04:17Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 04:21049,388,83737,531,0002,222,0002,117,632expected "74600294196621100 ", got "74599988362063660"
2Jul 7, 2026 04:21050,875,63038,353,0002,319,0002,113,536expected "74600294196621100 ", got "74599929379663660"
3Jul 7, 2026 04:21063,989,76738,353,0003,373,0002,113,536expected "74600294196621100 ", got "74528217704148780"
4May 4, 2026 09:385,12360,226,08740,160,0002,365,0002,498,560
5May 4, 2026 09:385,12759,944,79439,290,0003,267,0002,502,656
6May 4, 2026 09:385,13857,774,69339,385,0003,263,0002,506,752
7May 4, 2026 09:385,14759,016,34439,619,0003,105,0002,490,368
8May 4, 2026 09:385,14760,902,31539,455,0003,267,0002,502,656
9May 4, 2026 09:385,16159,576,26839,295,0003,548,0002,498,560
10May 4, 2026 09:385,16859,858,42439,631,0003,269,0002,498,560
11May 4, 2026 09:385,20462,727,96440,924,0002,271,0002,498,560
12May 4, 2026 09:385,29663,272,87740,817,0003,141,0002,498,560