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 27, 2024 13:41GraceGraceScore: 6,976Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:416,90485,115,63956,302,0001,005,0002,285,568
2May 27, 2024 13:416,90981,107,11456,338,0001,006,0002,285,568
3May 27, 2024 13:416,92884,157,75556,494,0001,008,0002,285,568
4May 27, 2024 13:416,93483,645,28856,542,0001,009,0002,265,088
5May 27, 2024 13:416,93483,696,14356,540,0001,009,0002,285,568
6May 27, 2024 13:416,93688,030,73256,562,0001,010,0002,269,184
7May 27, 2024 13:416,94383,710,76756,619,0001,011,0002,260,992
8May 27, 2024 13:416,94485,589,70256,623,0001,011,0002,273,280
9May 27, 2024 13:416,94586,934,90757,646,00002,285,568
10May 27, 2024 13:416,96585,525,69555,820,0001,993,0002,285,568
11May 27, 2024 13:416,96584,545,69255,817,0001,993,0002,285,568
12May 27, 2024 13:416,96687,915,41756,825,000996,0002,285,568
13May 27, 2024 13:416,96682,053,55855,822,0001,993,0002,269,184
14May 27, 2024 13:416,96788,114,80657,824,00002,285,568
15May 27, 2024 13:416,97181,347,70755,868,0001,995,0002,285,568
16May 27, 2024 13:416,97685,325,62056,902,000998,0002,285,568
17May 27, 2024 13:416,97984,431,76055,930,0001,997,0002,285,568
18May 27, 2024 13:417,06185,164,25758,603,00002,277,376
19May 27, 2024 13:417,662123,785,79063,598,67902,293,760
20May 27, 2024 13:417,670137,370,34163,663,89702,289,664
21May 27, 2024 13:417,836135,548,37665,036,22602,297,856
22May 27, 2024 13:417,848127,311,69465,141,59102,289,664
23May 27, 2024 13:417,851134,696,97065,165,67802,297,856
24May 27, 2024 13:417,868143,727,15365,305,20802,297,856
25May 27, 2024 13:418,48995,122,58469,450,0001,006,0002,285,568
26May 27, 2024 13:418,49593,181,98269,502,0001,007,0002,265,088
27May 27, 2024 13:418,56092,789,51169,043,0002,001,0002,285,568
28May 27, 2024 13:418,56195,568,67769,059,0002,001,0002,285,568
29May 27, 2024 13:418,56993,231,03169,119,0002,003,0002,260,992
30May 27, 2024 13:418,578100,265,82570,199,0001,002,0002,277,376