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 31, 2022 17:20Jack FrigaardJack FrigaardScore: 5,085Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:205,04075,969,46838,843,0002,987,0002,523,136
2Dec 31, 2022 17:205,04373,040,77539,868,0001,993,0002,453,504
3Dec 31, 2022 17:205,04469,337,74338,875,0002,990,0002,523,136
4Dec 31, 2022 17:205,04664,245,55538,887,0002,991,0002,523,136
5Dec 31, 2022 17:205,04868,309,90638,908,0002,992,0002,523,136
6Dec 31, 2022 17:205,08170,114,72639,164,0003,012,0002,457,600
7Dec 31, 2022 17:205,083112,067,04942,187,31802,199,552
8Dec 31, 2022 17:205,08573,086,82839,190,0003,014,0002,457,600
9Dec 31, 2022 17:205,08967,132,70039,222,0003,017,0002,457,600
10Dec 31, 2022 17:205,08967,270,75440,227,0002,011,0002,523,136
11Dec 31, 2022 17:205,09262,290,53339,243,0003,018,0002,449,408
12Dec 31, 2022 17:205,13065,776,19841,570,0001,013,0002,523,136
13Dec 31, 2022 17:205,140105,806,98342,658,29902,203,648
14Dec 31, 2022 17:205,17766,935,85440,974,0001,998,0002,523,136
15Dec 31, 2022 17:205,204105,571,12443,191,51902,195,456