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 6, 2023 03:02Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2023 14:5200000Error: expected "53691677734175762 ", got "53691652134175762 "stderr
2Dec 29, 2023 14:5200000Error: expected "53682669066048481 ", got "53682666506048481 "stderr
3Dec 6, 2023 03:026,90285,217,35753,264,0004,019,0002,428,928
4Dec 6, 2023 03:026,97383,232,86954,881,0002,993,0002,314,240
5Dec 6, 2023 03:026,98781,338,48152,990,0004,999,0002,383,872
6Dec 6, 2023 03:026,98785,234,66954,994,0002,999,0002,408,448
7Dec 6, 2023 03:026,99783,182,99752,070,0006,008,0002,375,680
8Dec 6, 2023 03:027,02280,181,66154,261,0004,019,0002,486,272
9Dec 6, 2023 03:027,02390,658,68355,278,0003,015,0002,363,392
10Dec 6, 2023 03:027,05186,267,77654,487,0004,036,0002,514,944
11Dec 6, 2023 03:027,101121,812,04258,937,41602,293,760
12Dec 6, 2023 03:027,125125,072,06259,135,36102,269,184
13Dec 6, 2023 03:027,14180,367,05852,236,0007,031,0002,371,584
14Dec 6, 2023 03:127,202141,563,47959,778,82902,252,800
15Dec 6, 2023 03:027,263132,164,98260,286,55002,277,376
16Dec 6, 2023 03:127,274127,409,65060,370,38402,191,360
17Dec 6, 2023 03:127,295133,227,62160,547,11602,191,360