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 30, 2022 15:53Jack FrigaardJack FrigaardScore: 5,114Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 15:535,10071,019,12940,318,0002,015,0002,285,568
2Dec 30, 2022 15:535,10875,024,89039,372,0003,028,0002,293,760
3Dec 30, 2022 15:535,10965,209,04839,375,0003,028,0002,285,568
4Dec 30, 2022 15:535,11172,052,29539,393,0003,030,0002,506,752
5Dec 30, 2022 15:535,11365,201,53838,397,0004,041,0002,285,568
6Dec 30, 2022 15:535,11469,550,69538,405,0004,042,0002,277,376
7Dec 30, 2022 15:535,11467,010,92339,412,0003,031,0002,289,664
8Dec 30, 2022 15:535,11465,558,21040,426,0002,021,0002,285,568
9Dec 30, 2022 15:535,12063,832,22238,449,0004,047,0002,285,568
10Dec 30, 2022 15:535,21270,151,81839,234,0004,024,0002,285,568
11Dec 30, 2022 15:535,23266,783,79141,404,0002,019,0002,289,664
12Dec 30, 2022 15:535,29071,635,54541,911,0001,995,0002,285,568
13Dec 30, 2022 15:535,306107,596,86544,036,30002,285,568
14Dec 30, 2022 15:535,318122,822,75044,139,94602,301,952
15Dec 30, 2022 15:535,333104,780,60844,263,81102,297,856