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:06Jack FrigaardJack FrigaardScore: 4,920Success
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:064,85565,288,40237,272,0003,022,0002,523,136
2Dec 31, 2022 17:064,85664,339,13338,292,0002,015,0002,523,136
3Dec 31, 2022 17:064,85961,550,67437,302,0003,024,0002,453,504
4Dec 31, 2022 17:064,86063,495,93738,322,0002,016,0002,523,136
5Dec 31, 2022 17:064,87165,389,88737,400,0003,032,0002,523,136
6Dec 31, 2022 17:064,89871,690,02338,618,0002,032,0002,523,136
7Dec 31, 2022 17:064,91971,503,23337,837,0002,987,0002,449,408
8Dec 31, 2022 17:064,92072,681,12839,837,000995,0002,453,504
9Dec 31, 2022 17:064,92167,643,36538,855,0001,992,0002,301,952
10Dec 31, 2022 17:064,92763,611,80139,899,000997,0002,461,696
11Dec 31, 2022 17:064,92966,583,26439,916,000997,0002,449,408
12Dec 31, 2022 17:064,97265,479,38739,257,0002,013,0002,453,504
13Dec 31, 2022 17:065,014108,669,47041,613,00802,207,744
14Dec 31, 2022 17:065,016115,455,69141,635,83902,232,320
15Dec 31, 2022 17:065,106107,067,02642,383,14102,207,744