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 17:11Jack FrigaardJack FrigaardScore: 5,007Success
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 17:114,967117,503,84441,230,20202,215,936
2Dec 31, 2022 17:114,968100,330,30341,233,35302,195,456
3Dec 31, 2022 17:114,98266,030,65838,323,0003,025,0002,523,136
4Dec 31, 2022 17:114,99666,481,66838,432,0003,034,0002,523,136
5Dec 31, 2022 17:114,99673,718,23439,443,0002,022,0002,523,136
6Dec 31, 2022 17:114,99664,086,07438,434,0003,034,0002,453,504
7Dec 31, 2022 17:115,00264,741,66140,504,0001,012,0002,445,312
8Dec 31, 2022 17:115,00768,452,61440,543,0001,013,0002,514,944
9Dec 31, 2022 17:115,01067,608,72139,554,0002,028,0002,523,136
10Dec 31, 2022 17:115,01271,320,25140,589,0001,014,0002,523,136
11Dec 31, 2022 17:115,038105,087,77041,813,34502,199,552
12Dec 31, 2022 17:115,08264,790,36539,167,0003,012,0002,449,408
13Dec 31, 2022 17:115,08669,271,52639,198,0003,015,0002,523,136
14Dec 31, 2022 17:115,12069,654,07041,485,0001,011,0002,523,136
15Dec 31, 2022 17:115,14068,605,58742,666,00002,449,408