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 03:55Yuriy 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:4600000Error: expected "53680076081612807 ", got "53680050481612807 "
2Sep 12, 2022 03:5600000Error: expected "53688276892006653 ", got "53688200092006653 "
3Sep 12, 2022 03:557,05890,717,41056,563,0002,020,0002,506,752
4Sep 12, 2022 03:557,08690,880,98853,829,0004,984,0002,301,952
5Sep 12, 2022 03:557,09882,784,64454,921,0003,994,0002,408,448
6Sep 12, 2022 03:557,11685,528,57553,057,0006,006,0002,486,272
7Sep 12, 2022 03:557,11784,157,88857,068,0002,002,0002,400,256
8Sep 12, 2022 03:557,13986,826,88655,237,0004,017,0002,338,816
9Sep 12, 2022 03:557,16380,365,24654,414,0005,038,0002,297,856
10Sep 12, 2022 03:557,16980,062,88053,454,0006,051,0002,301,952
11Sep 12, 2022 03:557,18685,888,94656,611,0003,032,0002,400,256
12Sep 12, 2022 03:557,208124,622,67559,829,30202,195,456
13Sep 12, 2022 03:557,211129,203,09759,850,53902,277,376
14Sep 12, 2022 04:277,230123,013,38160,010,77602,297,856
15Sep 12, 2022 03:557,261125,600,07460,265,24202,183,168
16Sep 12, 2022 04:477,286119,589,61460,474,71102,256,896
17Sep 12, 2022 04:477,286136,596,53160,473,35502,183,168
18Sep 12, 2022 04:277,353117,624,49761,031,44902,285,568
19Sep 12, 2022 04:477,386127,396,14361,300,61402,244,608
20Sep 12, 2022 04:277,415123,050,89461,541,92002,289,664