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 14, 2026 02:29wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 6, 2026 20:34Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2026 20:34037,359,81528,435,0001,084,0002,113,536expected "74600294196621100 ", got "72476048480906284 "
2Jul 6, 2026 20:34037,165,49228,037,0001,108,0002,113,536expected "74600294196621100 ", got "72127091970199084 "
3Jul 6, 2026 20:34037,459,26628,271,0001,110,0002,113,536expected "74600294196621100 ", got "72237884467971628 "
4Apr 14, 2026 02:314,02553,757,71732,399,0001,012,0002,277,376
5Apr 14, 2026 02:324,03352,509,43432,463,0001,014,0002,277,376
6Apr 14, 2026 02:314,03956,142,43732,511,0001,015,0002,277,376
7Apr 14, 2026 02:324,04659,489,08432,563,0001,017,0002,277,376
8Apr 14, 2026 02:304,05065,667,13532,593,0001,018,0002,498,560
9Apr 14, 2026 02:304,05859,663,61232,664,0001,020,0002,482,176
10Apr 14, 2026 02:304,09761,706,85532,002,0002,000,0002,277,376
11Apr 14, 2026 02:314,10161,867,97032,034,0002,002,0002,535,424
12Apr 14, 2026 02:294,11454,637,93232,135,0002,008,0002,490,368
13Apr 14, 2026 02:304,14557,595,73833,391,0001,011,0002,494,464
14Apr 14, 2026 02:324,16363,411,54133,533,0001,016,0002,498,560
15Apr 14, 2026 02:314,19862,395,75032,853,0001,991,0002,498,560
16Apr 14, 2026 02:314,20361,912,11532,893,0001,993,0002,277,376
17Apr 14, 2026 02:294,22159,177,49033,035,0002,002,0002,486,272
18Apr 14, 2026 02:294,23457,265,31233,134,0002,008,0002,502,656
19Apr 14, 2026 02:304,27157,901,42434,438,0001,012,0002,277,376
20Apr 14, 2026 02:304,27458,962,40434,458,0001,013,0002,277,376
21Apr 14, 2026 02:314,27754,984,36434,487,0001,014,0002,277,376