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:01Yuriy 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:0100000Error: expected "53687522776625530 ", got "53687522774065530 "stderr
2Jan 10, 2022 07:0111,353119,601,79293,232,0001,002,0002,289,664
3Jan 10, 2022 07:0111,354125,092,92892,233,0002,005,0002,289,664
4Jan 10, 2022 07:0111,356119,391,84893,251,0001,002,0002,277,376
5Jan 10, 2022 07:0111,356118,506,22793,256,0001,002,0002,289,664
6Jan 10, 2022 07:0111,357121,174,15694,260,00002,289,664
7Jan 10, 2022 07:0111,357121,874,99792,255,0002,005,0002,281,472
8Jan 10, 2022 07:0111,360120,282,20893,283,0001,003,0002,289,664
9Jan 10, 2022 07:0111,360117,677,47193,282,0001,003,0002,289,664
10Jan 10, 2022 07:0111,373115,579,06093,396,0001,004,0002,367,488
11Jan 10, 2022 07:0111,897162,043,51598,743,92202,277,376
12Jan 10, 2022 07:0111,905164,870,02698,811,92502,281,472
13Jan 10, 2022 07:0111,905168,457,14398,810,51702,277,376