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 8, 2023 13:13matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2023 13:1300000Error: expected "53692603784287152 ", got "53692578184287152 "stderr
2Dec 8, 2023 13:137,357140,564,10061,061,81202,244,608
3Dec 8, 2023 13:137,39186,605,73260,339,0001,005,0002,523,136
4Dec 8, 2023 13:137,412116,443,78961,515,72302,232,320
5Dec 8, 2023 13:137,452124,782,10361,851,08002,244,608
6Dec 8, 2023 13:137,47685,206,06260,047,0002,001,0002,478,080
7Dec 8, 2023 13:137,59086,746,39161,001,0002,000,0002,523,136
8Dec 8, 2023 13:137,60485,260,85362,111,0001,001,0002,523,136
9Dec 8, 2023 13:137,60693,008,13361,122,0002,004,0002,486,272
10Dec 8, 2023 13:137,61386,738,24161,181,0002,005,0002,490,368
11Dec 8, 2023 13:137,63391,429,78262,350,0001,005,0002,523,136
12Dec 8, 2023 13:137,63689,368,82563,380,00002,486,272
13Dec 8, 2023 13:137,64891,543,79162,475,0001,007,0002,486,272
14Dec 8, 2023 13:137,85087,675,94863,152,0002,004,0002,490,368
15Dec 8, 2023 13:137,87788,452,81863,366,0002,011,0002,482,176
16Dec 8, 2023 13:138,37392,770,15369,493,00002,523,136