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 07:31limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 7, 2026 05:01Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 05:02053,119,35239,647,0003,244,0002,113,536expected "74600294196621100 ", got "74528217704148780"
2Jul 7, 2026 05:02051,527,33839,549,0002,289,0002,113,536expected "74600294196621100 ", got "74599988362063660"
3Jul 7, 2026 05:02054,436,49041,905,0002,321,0002,113,536expected "74600294196621100 ", got "74599988362063660"
4May 4, 2026 07:325,35561,727,27542,093,0002,355,0002,498,560
5May 4, 2026 07:325,36761,840,60541,320,0003,231,0002,502,656
6May 4, 2026 07:325,38061,695,21541,376,0003,280,0002,494,464
7May 4, 2026 07:325,38163,979,79741,410,0003,255,0002,494,464
8May 4, 2026 07:325,46162,675,19242,155,0003,172,0002,510,848
9May 4, 2026 07:325,51965,942,27942,492,0003,323,0002,494,464
10May 4, 2026 07:325,53866,070,95242,385,0003,586,0002,510,848
11May 4, 2026 07:325,58562,781,28844,086,0002,276,0002,498,560
12May 4, 2026 07:325,64364,558,51744,483,0002,357,0002,490,368