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 16:54Jack FrigaardJack FrigaardScore: 5,135Success
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 16:545,10064,419,95140,318,0002,015,0002,445,312
2Dec 31, 2022 16:545,10569,363,31739,346,0003,026,0002,523,136
3Dec 31, 2022 16:545,10568,189,84441,366,0001,008,0002,260,992
4Dec 31, 2022 16:545,11465,051,49039,418,0003,032,0002,260,992
5Dec 31, 2022 16:545,12167,360,25340,478,0002,023,0002,260,992
6Dec 31, 2022 16:545,13073,837,96240,548,0002,027,0002,260,992
7Dec 31, 2022 16:545,13472,579,95840,585,0002,029,0002,260,992
8Dec 31, 2022 16:545,13580,726,98640,589,0002,029,0002,461,696
9Dec 31, 2022 16:545,13674,227,54540,597,0002,029,0002,457,600
10Dec 31, 2022 16:545,20267,629,77341,167,0002,008,0002,457,600
11Dec 31, 2022 16:545,20366,449,59441,174,0002,008,0002,449,408
12Dec 31, 2022 16:545,21071,301,86641,234,0002,011,0002,449,408
13Dec 31, 2022 16:545,315120,744,94644,118,55102,207,744
14Dec 31, 2022 16:545,317114,928,26544,129,50502,195,456
15Dec 31, 2022 16:545,344113,935,31644,353,40102,220,032