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:54Jack FrigaardJack FrigaardScore: 5,162Success
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:545,11370,107,64540,419,0002,020,0002,260,992
2Dec 31, 2022 16:545,11664,677,05041,455,0001,011,0002,523,136
3Dec 31, 2022 16:545,13272,974,28741,583,0001,014,0002,260,992
4Dec 31, 2022 16:545,13970,615,82541,637,0001,015,0002,519,040
5Dec 31, 2022 16:545,14268,283,48740,645,0002,032,0002,453,504
6Dec 31, 2022 16:545,16169,367,25740,843,0001,992,0002,260,992
7Dec 31, 2022 16:545,16171,144,84840,797,0002,039,0002,523,136
8Dec 31, 2022 16:545,16275,172,79840,852,0001,992,0002,457,600
9Dec 31, 2022 16:545,18065,430,86739,997,0002,999,0002,461,696
10Dec 31, 2022 16:545,20166,358,85941,161,0002,007,0002,519,040
11Dec 31, 2022 16:545,21167,802,74341,241,0002,011,0002,449,408
12Dec 31, 2022 16:545,23467,087,19041,425,0002,020,0002,453,504
13Dec 31, 2022 16:545,314115,368,09444,108,01802,211,840
14Dec 31, 2022 16:545,319110,739,98244,149,79502,207,744
15Dec 31, 2022 16:545,341115,393,21844,331,20302,199,552