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:28Jack FrigaardJack FrigaardScore: 4,919Success
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:284,793109,933,80739,782,05702,207,744
2Dec 31, 2022 17:284,797107,111,23139,813,33102,215,936
3Dec 31, 2022 17:284,869101,783,41940,415,49502,207,744
4Dec 31, 2022 17:284,91767,867,00337,825,0002,986,0002,523,136
5Dec 31, 2022 17:284,91869,871,16838,827,0001,991,0002,523,136
6Dec 31, 2022 17:284,91868,330,43537,836,0002,987,0002,523,136
7Dec 31, 2022 17:284,91867,891,92037,834,0002,986,0002,523,136
8Dec 31, 2022 17:284,91972,012,86139,829,000995,0002,441,216
9Dec 31, 2022 17:284,92068,186,29337,848,0002,988,0002,523,136
10Dec 31, 2022 17:284,92167,006,91637,858,0002,988,0002,457,600
11Dec 31, 2022 17:284,95363,986,98838,103,0003,008,0002,523,136
12Dec 31, 2022 17:284,95667,082,04339,125,0002,006,0002,453,504
13Dec 31, 2022 17:284,96662,357,41439,204,0002,010,0002,519,040
14Dec 31, 2022 17:285,03667,626,68239,812,0001,990,0002,293,760
15Dec 31, 2022 17:285,04269,553,48639,859,0001,992,0002,441,216