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 03:49Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 01:27Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 01:27045,095,13336,948,000020,480expected "74600294196621100 ", got "35384883945327404 "
2Jul 7, 2026 01:27043,690,79134,681,0001,087,0002,113,536expected "74600294196621100 ", got "32918134539681580 "
3Jul 7, 2026 01:27044,911,66936,816,000020,480expected "74600294196621100 ", got "35411989942128940 "
4May 10, 2026 03:494,38954,054,18435,405,0001,031,0002,555,904
5May 10, 2026 03:494,39153,729,97135,424,0001,029,0002,560,000
6May 10, 2026 03:494,39252,823,20235,420,0001,037,0002,547,712
7May 10, 2026 03:494,39254,757,89035,434,0001,020,0002,547,712
8May 10, 2026 03:494,39354,482,33435,427,0001,036,0002,551,808
9May 10, 2026 03:494,39350,494,79335,289,0001,179,0002,551,808
10May 10, 2026 03:494,39452,510,01835,288,0001,184,0002,547,712
11May 10, 2026 03:494,39652,728,54035,460,0001,029,0002,551,808
12May 10, 2026 03:494,44653,137,20035,867,0001,039,0002,297,856