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 listJan 10, 2022 07:37Yuriy 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
1Jan 10, 2022 07:3700000Error: expected "53684044020859622 ", got "53684044018299622 "stderr
2Jan 10, 2022 07:3700000Error: expected "53682631997843465 ", got "53682631972243465 "stderr
3Jan 10, 2022 07:3700000Error: expected "53683453806950890 ", got "53683453806694890 "stderr
4Jan 10, 2022 07:3711,342119,866,11292,134,0002,002,0002,392,064
5Jan 10, 2022 07:3711,343115,745,82593,142,0001,001,0002,269,184
6Jan 10, 2022 07:3711,343116,785,48093,147,0001,001,0002,289,664
7Jan 10, 2022 07:3711,350116,513,57992,205,0002,004,0002,281,472
8Jan 10, 2022 07:3711,355125,730,57393,245,0001,002,0002,289,664
9Jan 10, 2022 07:3711,357116,964,66893,265,0001,002,0002,269,184
10Jan 10, 2022 07:3711,358119,815,82193,267,0001,002,0002,289,664
11Jan 10, 2022 07:3711,358116,707,17793,271,0001,002,0002,289,664
12Jan 10, 2022 07:3711,362120,505,06892,295,0002,006,0002,289,664
13Jan 10, 2022 07:3711,890155,721,06698,683,63502,285,568
14Jan 10, 2022 07:3711,894161,025,40498,721,00202,269,184
15Jan 10, 2022 07:3711,898160,084,75098,752,82802,277,376