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:08Jack FrigaardJack FrigaardScore: 5,201Success
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:085,17065,319,88040,914,0001,995,0002,465,792
2Dec 30, 2022 18:085,17468,048,14239,946,0002,995,0002,523,136
3Dec 30, 2022 18:085,17567,169,48339,958,0002,996,0002,465,792
4Dec 30, 2022 18:085,18167,532,87640,000,0003,000,0002,523,136
5Dec 30, 2022 18:085,18769,846,96741,053,0002,002,0002,523,136
6Dec 30, 2022 18:085,19868,020,12040,132,0003,009,0002,453,504
7Dec 30, 2022 18:085,19867,493,08540,135,0003,010,0002,523,136
8Dec 30, 2022 18:085,20168,526,28840,158,0003,011,0002,523,136
9Dec 30, 2022 18:085,22365,915,12140,323,0003,024,0002,465,792
10Dec 30, 2022 18:085,233123,464,25843,432,99202,215,936
11Dec 30, 2022 18:085,238116,655,77643,476,29102,207,744
12Dec 30, 2022 18:085,266118,597,31843,708,35502,211,840
13Dec 30, 2022 18:085,28366,379,87541,814,0002,039,0002,519,040
14Dec 30, 2022 18:085,28467,806,18742,862,000996,0002,523,136
15Dec 30, 2022 18:085,28769,393,49841,887,0001,994,0002,449,408