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 15:45Jack FrigaardJack FrigaardScore: 5,134Success
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 15:455,11072,097,76240,394,0002,019,0002,519,040
2Dec 31, 2022 15:455,11070,884,42742,416,00002,523,136
3Dec 31, 2022 15:455,11163,449,07440,404,0002,020,0002,523,136
4Dec 31, 2022 15:455,11964,727,44042,489,00002,461,696
5Dec 31, 2022 15:455,12368,385,44941,512,0001,012,0002,523,136
6Dec 31, 2022 15:455,12566,679,51640,513,0002,025,0002,523,136
7Dec 31, 2022 15:455,13470,936,09342,609,00002,457,600
8Dec 31, 2022 15:455,13475,212,53740,582,0002,029,0002,523,136
9Dec 31, 2022 15:455,14470,759,24439,717,0002,978,0002,465,792
10Dec 31, 2022 15:455,157122,355,37642,800,09902,215,936
11Dec 31, 2022 15:455,169110,033,19142,901,89002,199,552
12Dec 31, 2022 15:455,171115,242,55842,917,18902,207,744
13Dec 31, 2022 15:455,20064,712,83840,149,0003,011,0002,523,136
14Dec 31, 2022 15:455,20366,814,29140,172,0003,012,0002,523,136
15Dec 31, 2022 15:455,22067,024,91441,312,0002,015,0002,457,600