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:50Jack FrigaardJack FrigaardScore: 5,356Success
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:505,31668,109,48342,115,0002,005,0002,461,696
2Dec 31, 2022 16:505,32172,613,17241,153,0003,011,0002,449,408
3Dec 31, 2022 16:505,32567,503,50841,183,0003,013,0002,523,136
4Dec 31, 2022 16:505,33573,067,18241,262,0003,019,0002,465,792
5Dec 31, 2022 16:505,34070,952,84442,308,0002,014,0002,453,504
6Dec 31, 2022 16:505,34167,244,81141,305,0003,022,0002,523,136
7Dec 31, 2022 16:505,34767,750,86641,357,0003,026,0002,523,136
8Dec 31, 2022 16:505,35669,172,33541,421,0003,030,0002,523,136
9Dec 31, 2022 16:505,35668,199,69942,436,0002,020,0002,523,136
10Dec 31, 2022 16:505,374124,142,26444,602,07502,203,648
11Dec 31, 2022 16:505,378106,648,00344,634,26402,211,840
12Dec 31, 2022 16:505,397129,221,49544,795,65902,199,552
13Dec 31, 2022 16:505,41168,396,91341,920,0002,994,0002,445,312
14Dec 31, 2022 16:505,42268,732,90643,005,0002,000,0002,453,504
15Dec 31, 2022 16:505,49772,388,53044,611,0001,013,0002,523,136