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:03Jack FrigaardJack FrigaardScore: 5,160Success
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:035,10566,810,05840,353,0002,017,0002,523,136
2Dec 31, 2022 17:035,10669,934,49442,381,00002,523,136
3Dec 31, 2022 17:035,11364,340,85340,418,0002,020,0002,514,944
4Dec 31, 2022 17:035,11563,786,65639,425,0003,032,0002,273,280
5Dec 31, 2022 17:035,12872,105,81642,566,00002,523,136
6Dec 31, 2022 17:035,13473,378,88540,587,0002,029,0002,519,040
7Dec 31, 2022 17:035,16081,417,92039,839,0002,987,0002,523,136
8Dec 31, 2022 17:035,16069,333,58141,835,000996,0002,449,408
9Dec 31, 2022 17:035,18468,732,24341,029,0002,001,0002,523,136
10Dec 31, 2022 17:035,19772,791,50941,127,0002,006,0002,449,408
11Dec 31, 2022 17:035,22966,688,68340,376,0003,028,0002,453,504
12Dec 31, 2022 17:035,253116,109,08343,600,33702,207,744
13Dec 31, 2022 17:035,269113,152,55243,729,43802,215,936
14Dec 31, 2022 17:035,28169,555,61141,843,0001,992,0002,523,136
15Dec 31, 2022 17:035,284114,028,38043,855,38602,211,840