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:10Jack FrigaardJack FrigaardScore: 4,977Success
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:104,91666,732,86538,813,0001,990,0002,301,952
2Dec 31, 2022 17:104,92069,023,93439,843,000996,0002,514,944
3Dec 31, 2022 17:104,92273,513,65537,864,0002,989,0002,523,136
4Dec 31, 2022 17:104,92465,666,82637,882,0002,990,0002,523,136
5Dec 31, 2022 17:104,93262,799,21037,940,0002,995,0002,453,504
6Dec 31, 2022 17:104,95369,707,15039,102,0002,005,0002,465,792
7Dec 31, 2022 17:104,95664,234,87639,129,0002,006,0002,457,600
8Dec 31, 2022 17:104,97761,166,60338,289,0003,022,0002,449,408
9Dec 31, 2022 17:104,997119,744,57841,479,21102,215,936
10Dec 31, 2022 17:105,004122,983,10341,536,93302,199,552
11Dec 31, 2022 17:105,01068,548,37141,581,00002,449,408
12Dec 31, 2022 17:105,01297,943,75041,599,16302,207,744
13Dec 31, 2022 17:105,04269,751,61639,855,0001,992,0002,523,136
14Dec 31, 2022 17:105,04364,951,71838,864,0002,989,0002,523,136
15Dec 31, 2022 17:105,06168,390,71540,984,0001,024,0002,453,504