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 listApr 27, 2026 10:12wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 6, 2026 16:25Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 16:25037,083,65128,081,0001,015,0002,113,536expected "74600294196621100 ", got "74534683227462574 "
2Jul 6, 2026 16:25037,409,24128,398,0001,047,0002,113,536expected "74600294196621100 ", got "74534756121808648 "
3Jul 6, 2026 16:25036,983,09727,989,0001,028,0002,113,536expected "74600294196621100 ", got "74534755779857749 "
4Apr 27, 2026 10:153,40040,888,84827,217,0001,008,0002,555,904
5Apr 27, 2026 10:153,40640,470,67727,261,0001,009,0002,490,368
6Apr 27, 2026 10:153,43345,025,93927,481,0001,017,0002,486,272
7Apr 27, 2026 10:153,46046,456,56827,698,0001,025,0002,482,176
8Apr 27, 2026 10:153,49147,429,54526,982,0001,998,0002,478,080
9Apr 27, 2026 10:153,52643,316,69128,263,0001,009,0002,551,808
10Apr 27, 2026 10:153,53448,103,38728,323,0001,011,0002,486,272
11Apr 27, 2026 10:153,63346,549,00828,147,0002,010,0002,330,624
12Apr 27, 2026 10:153,64548,116,49329,252,0001,008,0002,478,080