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:04Jack FrigaardJack FrigaardScore: 5,015Success
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:044,98863,850,39740,393,0001,009,0002,461,696
2Dec 31, 2022 17:044,99363,679,72339,420,0002,021,0002,445,312
3Dec 31, 2022 17:045,00160,405,56039,486,0002,024,0002,281,472
4Dec 31, 2022 17:045,00668,960,39039,524,0002,026,0002,457,600
5Dec 31, 2022 17:045,00764,800,41740,549,0001,013,0002,523,136
6Dec 31, 2022 17:045,00965,870,66439,544,0002,027,0002,523,136
7Dec 31, 2022 17:045,01270,538,96339,568,0002,029,0002,453,504
8Dec 31, 2022 17:045,01569,031,34339,596,0002,030,0002,523,136
9Dec 31, 2022 17:045,01667,057,11839,599,0002,030,0002,457,600
10Dec 31, 2022 17:045,07466,758,06440,107,0002,005,0002,523,136
11Dec 31, 2022 17:045,07966,513,59440,147,0002,007,0002,441,216
12Dec 31, 2022 17:045,105102,474,87342,374,60302,199,552
13Dec 31, 2022 17:045,107106,809,61942,388,77702,215,936
14Dec 31, 2022 17:045,11564,093,84541,448,0001,010,0002,523,136
15Dec 31, 2022 17:045,205102,806,36243,204,19002,236,416