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 listOct 31, 2023 12:25Serge SmirnovSerge SmirnovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2023 11:4000000Error: expected "53690647979663368 ", got "53690647977103368 "stderr
2Oct 31, 2023 12:2400000Error: expected "53680324538456105 ", got "53680324538430505 "stderr
3Oct 31, 2023 12:2400000Error: expected "53685332687605063 ", got "53685332687349063 "stderr
4Oct 31, 2023 11:4132,600329,950,272270,578,48502,289,664
5Oct 15, 2023 20:1732,603329,070,841270,606,67402,277,376
6Oct 31, 2023 11:4132,607339,602,325270,635,12002,285,568
7Oct 31, 2023 11:4132,609336,015,186270,656,40302,289,664
8Oct 31, 2023 12:2532,611340,774,869270,674,55502,293,760
9Oct 15, 2023 20:1732,625335,891,666270,788,62702,289,664
10Oct 15, 2023 20:1732,626339,393,902270,793,36502,285,568
11Oct 31, 2023 12:2532,665336,314,671271,117,84002,256,896
12Oct 31, 2023 12:2534,000362,381,249282,196,66202,285,568