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:19Jack FrigaardJack FrigaardScore: 5,094Success
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:195,04473,360,54839,869,0001,993,0002,461,696
2Dec 31, 2022 17:195,04868,138,96840,901,000997,0002,523,136
3Dec 31, 2022 17:195,04970,833,82838,910,0002,993,0002,514,944
4Dec 31, 2022 17:195,06868,354,71139,059,0003,004,0002,457,600
5Dec 31, 2022 17:195,07466,200,50439,106,0003,008,0002,523,136
6Dec 31, 2022 17:195,07570,423,83339,113,0003,008,0002,523,136
7Dec 31, 2022 17:195,08470,319,63340,185,0002,009,0002,523,136
8Dec 31, 2022 17:195,09463,842,51040,266,0002,013,0002,457,600
9Dec 31, 2022 17:195,114100,814,17942,445,70302,199,552
10Dec 31, 2022 17:195,126127,597,54442,549,18902,199,552
11Dec 31, 2022 17:195,13169,752,82641,574,0001,014,0002,445,312
12Dec 31, 2022 17:195,13971,527,62840,626,0002,031,0002,449,408
13Dec 31, 2022 17:195,144119,370,47442,697,75702,215,936
14Dec 31, 2022 17:195,14568,530,43640,670,0002,033,0002,514,944
15Dec 31, 2022 17:195,16267,191,26141,828,0001,020,0002,461,696