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 5, 2022 15:41Yuriy 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 5, 2022 15:4400000Error: expected "53690196292638594 ", got "53690145092638594 "stderr
2Dec 5, 2022 15:4400000Error: expected "53687428170355178 ", got "53687402570355178 "stderr
3Dec 5, 2022 15:4400000Error: expected "53689170721176646 ", got "53689170695576646 "stderr
4Dec 5, 2022 15:4300000Error: expected "53688285030030954 ", got "53688259430030954 "stderr
5Dec 5, 2022 15:4200000Error: expected "53686996749548200 ", got "323797540319656 "stderr
6Dec 5, 2022 15:4200000Error: expected "53691248758670410 ", got "713027754902090 "stderr
7Dec 5, 2022 15:457,05382,839,15254,503,0004,037,0002,289,664
8Dec 5, 2022 15:457,08784,739,60556,825,0001,993,0002,273,280
9Dec 5, 2022 15:457,12186,399,23455,099,0004,007,0002,355,200
10Dec 5, 2022 15:457,12986,163,38654,160,0005,014,0002,281,472
11Dec 5, 2022 15:457,15983,100,81756,397,0003,021,0002,301,952
12Dec 5, 2022 15:457,17188,832,49055,482,0004,035,0002,490,368
13Dec 5, 2022 15:457,21392,746,77955,806,0004,058,0002,535,424
14Dec 5, 2022 15:457,23383,114,10957,031,0003,001,0002,330,624
15Dec 5, 2022 15:417,272118,961,96060,357,21502,191,360
16Dec 5, 2022 15:417,341117,487,42760,929,44602,265,088
17Dec 5, 2022 15:457,345131,583,20660,961,55902,297,856
18Dec 5, 2022 15:457,378125,631,09961,239,99202,183,168
19Dec 5, 2022 15:417,404122,676,96361,455,04802,187,264
20Dec 5, 2022 15:457,419119,776,34161,573,73602,265,088
21Dec 5, 2022 15:457,76887,565,38961,450,0003,022,0002,498,560