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 listDec 30, 2022 16:20Jack FrigaardJack FrigaardScore: 5,164Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 16:205,09165,927,48939,239,0003,018,0002,285,568
2Dec 30, 2022 16:205,09468,878,88539,261,0003,020,0002,293,760
3Dec 30, 2022 16:205,10068,765,18439,305,0003,023,0002,285,568
4Dec 30, 2022 16:205,10465,558,66140,343,0002,017,0002,285,568
5Dec 30, 2022 16:205,11267,852,08540,410,0002,020,0002,285,568
6Dec 30, 2022 16:205,12763,943,47540,530,0002,026,0002,289,664
7Dec 30, 2022 16:205,13675,152,73339,584,0003,044,0002,293,760
8Dec 30, 2022 16:205,16468,327,94342,864,00002,285,568
9Dec 30, 2022 16:205,17170,794,18339,928,0002,994,0002,285,568
10Dec 30, 2022 16:205,21167,830,08841,242,0002,011,0002,289,664
11Dec 30, 2022 16:205,21970,623,46141,304,0002,014,0002,285,568
12Dec 30, 2022 16:205,23670,931,10441,440,0002,021,0002,285,568
13Dec 30, 2022 16:205,30496,700,29144,021,15302,293,760
14Dec 30, 2022 16:205,325127,250,67644,196,82302,306,048
15Dec 30, 2022 16:205,346115,912,77244,369,85302,306,048