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 18:15Jack FrigaardJack FrigaardScore: 5,148Success
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 18:155,12370,033,95441,507,0001,012,0002,510,848
2Dec 30, 2022 18:155,12764,412,77541,541,0001,013,0002,523,136
3Dec 30, 2022 18:155,12968,944,71340,543,0002,027,0002,260,992
4Dec 30, 2022 18:155,13175,290,10640,561,0002,028,0002,519,040
5Dec 30, 2022 18:155,13669,001,49140,596,0002,029,0002,461,696
6Dec 30, 2022 18:155,13773,426,90040,605,0002,030,0002,260,992
7Dec 30, 2022 18:155,13976,635,74340,626,0002,031,0002,260,992
8Dec 30, 2022 18:155,14867,577,76939,749,0002,981,0002,449,408
9Dec 30, 2022 18:155,15969,694,32339,832,0002,987,0002,260,992
10Dec 30, 2022 18:155,20065,333,54441,153,0002,007,0002,277,376
11Dec 30, 2022 18:155,21763,994,48040,279,0003,020,0002,260,992
12Dec 30, 2022 18:155,22166,567,02141,321,0002,015,0002,453,504
13Dec 30, 2022 18:155,317104,120,85244,134,28702,211,840
14Dec 30, 2022 18:155,327111,838,36944,216,06202,211,840
15Dec 30, 2022 18:155,346110,401,16844,374,52602,211,840