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:40Jack FrigaardJack FrigaardScore: 5,162Success
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:405,11366,982,50839,409,0003,031,0002,523,136
2Dec 31, 2022 16:405,11564,104,83241,445,0001,010,0002,514,944
3Dec 31, 2022 16:405,11972,463,84140,468,0002,023,0002,523,136
4Dec 31, 2022 16:405,13468,756,55440,580,0002,029,0002,523,136
5Dec 31, 2022 16:405,13571,664,27241,606,0001,014,0002,461,696
6Dec 31, 2022 16:405,13973,395,51141,640,0001,015,0002,523,136
7Dec 31, 2022 16:405,16170,001,13139,849,0002,988,0002,523,136
8Dec 31, 2022 16:405,16267,515,97640,853,0001,992,0002,457,600
9Dec 31, 2022 16:405,163116,061,81442,856,71602,215,936
10Dec 31, 2022 16:405,17466,251,48240,944,0001,997,0002,453,504
11Dec 31, 2022 16:405,177110,126,48842,970,95402,215,936
12Dec 31, 2022 16:405,18998,410,27243,066,83202,203,648
13Dec 31, 2022 16:405,22469,879,89940,335,0003,025,0002,523,136
14Dec 31, 2022 16:405,23968,519,24841,464,0002,022,0002,449,408
15Dec 31, 2022 16:405,28371,128,30540,863,0002,990,0002,523,136