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:21Jack FrigaardJack FrigaardScore: 5,180Success
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:215,10068,906,43040,317,0002,015,0002,260,992
2Dec 30, 2022 16:215,10465,651,02739,341,0003,026,0002,269,184
3Dec 30, 2022 16:215,11368,218,67941,428,0001,010,0002,260,992
4Dec 30, 2022 16:215,11968,197,12839,452,0003,034,0002,260,992
5Dec 30, 2022 16:215,12471,369,81539,493,0003,037,0002,260,992
6Dec 30, 2022 16:215,13670,936,82839,582,0003,044,0002,260,992
7Dec 30, 2022 16:215,16366,713,71940,863,0001,993,0002,260,992
8Dec 30, 2022 16:215,18065,368,61139,992,0002,999,0002,359,296
9Dec 30, 2022 16:215,21566,428,59841,269,0002,013,0002,519,040
10Dec 30, 2022 16:215,22065,522,92240,302,0003,022,0002,260,992
11Dec 30, 2022 16:215,324119,365,55744,188,13202,236,416
12Dec 30, 2022 16:215,336109,958,85744,285,88802,281,472
13Dec 30, 2022 16:215,369108,856,03744,565,66502,285,568
14Dec 30, 2022 16:215,49971,096,52445,644,00002,494,464
15Dec 30, 2022 16:215,55372,519,23844,087,0002,003,0002,523,136