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 listOct 13, 2023 20:24Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2023 20:2200000Error: expected "53683677600456543 ", got "53683677574856543 "stderr
2Oct 13, 2023 20:2200000Error: expected "53687573935199788 ", got "53687571375199788 "stderr
3Oct 13, 2023 20:2400000Error: expected "53689319226890912 ", got "53689316666890912 "stderr
4Oct 13, 2023 20:2700000Error: expected "53682681206358194 ", got "53682681206102194 "stderr
5Oct 13, 2023 20:2700000Error: expected "53690849359316895 ", got "53690846799316895 "stderr
6Oct 13, 2023 20:2800000Error: expected "53690530189034481 ", got "53690527629034481 "stderr
7Oct 13, 2023 20:2800000Error: expected "53684134346152250 ", got "53684134343592250 "stderr
8Oct 13, 2023 20:2832,495324,014,538269,710,65302,293,760
9Oct 13, 2023 20:2232,600330,339,179270,580,03502,285,568
10Oct 13, 2023 20:2432,608359,925,163270,644,29002,285,568
11Oct 13, 2023 20:2232,614350,192,737270,697,92802,281,472
12Oct 13, 2023 20:2832,620343,994,708270,747,02302,252,800
13Oct 13, 2023 20:2432,667335,932,000271,136,98102,289,664
14Oct 13, 2023 20:2432,672341,387,606271,174,34302,289,664
15Oct 13, 2023 20:2834,001341,865,766282,211,72902,285,568
16Oct 13, 2023 20:2234,012343,863,166282,298,69102,285,568