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 11, 2026 15:52wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 18, 2026 12:50Victor Mercklé10.00CustomSolution Broken
May 18, 2026 12:39Victor Mercklé10.00CustomSolution Held
May 18, 2026 12:12Victor Mercklé10.00CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 12:50040,562,63428,084,0001,008,0002,113,536expected "42766894322755483 ", got "42290175002729455 "
2May 18, 2026 12:50038,465,27728,034,0001,008,0002,113,536expected "42766549120645738 ", got "42289294538664490 "
3May 18, 2026 12:50039,714,63827,925,0001,007,0002,113,536expected "42764549979662291 ", got "42287771137113717 "
4May 11, 2026 15:543,27034,401,55427,149,00002,113,536
5May 11, 2026 15:543,27835,811,44927,208,00002,113,536
6May 11, 2026 15:543,28334,397,85526,238,0001,015,0002,113,536
7May 11, 2026 15:543,29334,550,95327,337,00002,113,536
8May 11, 2026 15:543,29434,853,35826,313,0001,035,0002,113,536
9May 11, 2026 15:543,29537,365,22126,329,0001,023,0002,113,536
10May 11, 2026 15:543,29935,733,09227,382,00002,113,536
11May 11, 2026 15:543,31137,098,79027,488,00002,113,536
12May 11, 2026 15:543,31436,783,87426,501,0001,010,0002,113,536