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 10, 2026 13:18wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 18, 2026 11:34Victor Mercklé10.12CustomSolution Broken
May 18, 2026 11:31Victor Mercklé10.12CustomSolution Held
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 11:340290,319,051280,952,00002,113,536expected "15505055749452084 ", got "14164100503920292 "
2May 18, 2026 11:340289,701,417281,497,00002,113,536expected "15505822225342103 ", got "14164810777672193 "
3May 18, 2026 11:340292,428,270282,079,00002,113,536expected "15506470800280171 ", got "14165403029773853 "
4May 10, 2026 13:193,25734,696,73427,038,00002,113,536
5May 10, 2026 13:193,26335,910,21827,087,00002,113,536
6May 10, 2026 13:193,26636,051,97727,113,00002,113,536
7May 10, 2026 13:193,27034,993,15027,148,00002,113,536
8May 10, 2026 13:193,27237,204,42427,158,00002,113,536
9May 10, 2026 13:193,38935,273,87228,135,00002,113,536
10May 10, 2026 13:193,41238,597,48028,324,00002,113,536
11May 10, 2026 13:193,42040,247,82728,387,00002,113,536
12May 10, 2026 13:193,43937,616,48827,506,0001,038,0002,113,536