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, 2022 14:00Yuriy 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 6, 2022 14:0100000Error: expected "53681585133796808 ", got "53681559533796808 "stderr
2Dec 6, 2022 14:0100000Error: expected "53692753087042425 ", got "53692753061442425 "stderr
3Dec 6, 2022 14:0000000Error: expected "53689546673545319 ", got "53689521073545319 "stderr
4Dec 6, 2022 14:0000000Error: expected "53689108823676851 ", got "53689083223676851 "stderr
5Dec 6, 2022 14:017,50883,614,27358,298,0004,020,0002,392,064
6Dec 6, 2022 14:017,51386,696,63859,343,0003,017,0002,424,832
7Dec 6, 2022 14:027,53791,174,75159,534,0003,027,0002,281,472
8Dec 6, 2022 14:017,54789,039,96558,602,0004,041,0002,428,928
9Dec 6, 2022 14:017,54994,108,27360,639,0002,021,0002,412,544
10Dec 6, 2022 14:017,56994,158,92558,835,0003,988,0002,387,968
11Dec 6, 2022 14:017,57094,527,09057,846,0004,986,0002,297,856
12Dec 6, 2022 14:027,57386,046,76357,869,0004,988,0002,351,104
13Dec 6, 2022 14:017,58884,294,82857,979,0004,998,0002,297,856
14Dec 6, 2022 14:017,61288,295,54760,169,0003,008,0002,404,352
15Dec 6, 2022 14:027,61385,472,92359,179,0004,012,0002,269,184
16Dec 6, 2022 14:017,61386,875,12459,175,0004,011,0002,490,368
17Dec 6, 2022 14:027,61788,025,79558,200,0005,017,0002,379,776
18Dec 6, 2022 14:017,617128,510,64163,222,15102,269,184
19Dec 6, 2022 14:017,618124,883,29763,226,57802,301,952
20Dec 6, 2022 14:027,62185,217,40160,245,0003,012,0002,334,720
21Dec 6, 2022 14:017,628127,051,24863,315,65902,236,416
22Dec 6, 2022 14:027,65495,895,48058,488,0005,042,0002,523,136
23Dec 6, 2022 14:027,65589,434,03460,511,0003,025,0002,318,336
24Dec 6, 2022 14:027,66196,322,83856,520,0007,065,0002,265,088
25Dec 6, 2022 14:027,69887,777,34661,899,0001,996,0002,449,408
26Dec 6, 2022 14:027,704166,899,62863,946,11102,310,144
27Dec 6, 2022 14:027,720123,936,68464,078,03102,199,552
28Dec 6, 2022 14:027,780123,822,71164,572,81202,191,360