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 listSep 12, 2022 04:45Yuriy 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
1Sep 12, 2022 04:4500000Error: expected "53682725937097751 ", got "53682725681097751 "
2Sep 12, 2022 04:4500000Error: expected "53681671067070728 ", got "53681645467070728 "
3Sep 12, 2022 04:467,01084,314,86154,169,0004,012,0002,351,104
4Sep 12, 2022 04:467,01282,673,59355,193,0003,010,0002,412,544
5Sep 12, 2022 04:467,03182,198,29654,335,0004,024,0002,461,696
6Sep 12, 2022 04:467,04582,185,79454,441,0004,032,0002,465,792
7Sep 12, 2022 04:467,05187,364,78655,497,0003,027,0002,486,272
8Sep 12, 2022 04:467,05685,618,29856,546,0002,019,0002,306,048
9Sep 12, 2022 04:467,08183,501,86053,791,0004,980,0002,428,928
10Sep 12, 2022 04:467,08790,855,47856,825,0001,993,0002,490,368
11Sep 12, 2022 04:467,09982,646,37056,924,0001,997,0002,428,928
12Sep 12, 2022 04:467,357127,849,19461,066,56902,240,512
13Sep 12, 2022 04:467,396118,952,73161,388,03602,306,048
14Sep 12, 2022 04:467,515114,770,60462,378,26802,293,760