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 listJul 20, 2023 20:30gchebanovgchebanovScore: 8,760Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 20:357,81793,995,44362,882,0001,996,0002,478,080
2Jul 20, 2023 20:357,83397,748,69363,010,0002,000,0002,486,272
3Jul 20, 2023 20:357,88586,305,66465,442,00002,449,408
4Jul 20, 2023 20:358,31793,459,75667,033,0002,001,0002,457,600
5Jul 20, 2023 20:308,31891,534,43666,040,0003,001,0002,277,376
6Jul 20, 2023 20:308,33195,674,23467,146,0002,004,0002,441,216
7Jul 20, 2023 20:358,338100,015,80066,196,0003,008,0002,363,392
8Jul 20, 2023 20:308,34195,857,68366,223,0003,010,0002,490,368
9Jul 20, 2023 20:358,34197,164,66467,225,0002,006,0002,465,792
10Jul 20, 2023 20:358,351101,991,45767,304,0002,009,0002,465,792
11Jul 20, 2023 20:358,38798,576,54968,600,0001,008,0002,461,696
12Jul 20, 2023 20:358,41498,335,66967,842,0001,995,0002,461,696
13Jul 20, 2023 20:358,441101,726,17269,057,0001,000,0002,359,296
14Jul 20, 2023 20:358,487102,224,58269,434,0001,006,0002,367,488
15Jul 20, 2023 20:358,60899,675,42469,438,0002,012,0002,375,680
16Jul 20, 2023 20:358,760131,789,41272,705,20802,256,896
17Jul 20, 2023 20:358,789141,919,47172,946,65302,252,800
18Jul 20, 2023 20:358,802136,885,44873,055,58602,256,896
19Jul 20, 2023 20:308,84595,058,17771,400,0002,011,0002,363,392
20Jul 20, 2023 20:308,84797,460,38470,413,0003,017,0002,469,888
21Jul 20, 2023 20:308,84896,327,76272,431,0001,005,0002,527,232
22Jul 20, 2023 20:308,88499,452,67169,749,0003,985,0002,469,888
23Jul 20, 2023 20:308,88596,589,81970,759,0002,989,0002,473,984
24Jul 20, 2023 20:308,89097,246,84771,789,0001,994,0002,461,696
25Jul 20, 2023 20:308,91197,044,40070,961,0002,998,0002,498,560
26Jul 20, 2023 20:308,91797,023,65271,013,0003,000,0002,273,280
27Jul 20, 2023 20:308,93296,710,50871,133,0003,005,0002,473,984
28Jul 20, 2023 20:309,127159,500,07275,750,44902,285,568
29Jul 20, 2023 20:309,169131,085,65376,100,19602,289,664
30Jul 20, 2023 20:309,204135,725,03976,390,24402,191,360