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 28, 2022 13:59Robert BurkeRobert BurkeScore: 8,289Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 13:598,224100,669,44166,251,0002,007,0002,424,832
2Dec 28, 2022 13:598,25089,703,30867,467,0001,006,0002,428,928
3Dec 28, 2022 13:598,25089,919,88368,477,00002,519,040
4Dec 28, 2022 13:598,26491,969,41667,598,000994,0002,433,024
5Dec 28, 2022 13:598,26897,637,96067,614,0001,009,0002,510,848
6Dec 28, 2022 13:598,27191,141,15668,651,00002,510,848
7Dec 28, 2022 13:598,28997,283,19667,802,000997,0002,539,520
8Dec 28, 2022 13:598,28997,974,61167,804,000997,0002,437,120
9Dec 28, 2022 13:598,29093,685,63566,812,0001,994,0002,514,944
10Dec 28, 2022 13:598,29197,133,07668,816,00002,424,832
11Dec 28, 2022 13:598,29296,519,91068,820,00002,539,520
12Dec 28, 2022 13:598,29592,763,86267,853,000997,0002,428,928
13Dec 28, 2022 13:598,972123,180,88474,463,73802,293,760
14Dec 28, 2022 13:598,983129,187,27674,559,42502,301,952
15Dec 28, 2022 13:598,992134,493,32674,635,03802,297,856