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 listJun 4, 2024 21:28GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 21:4000000Error: expected "53691958221901686 ", got "53691957559988086 "
2Jun 4, 2024 21:4000000Error: expected "53683807951609312 ", got "53683807296249312 "
3Jun 4, 2024 21:3900000Error: expected "53688150764030207 ", got "53688085228030207 "
4Jun 4, 2024 21:3300000Error: expected "53689050376501835 ", got "53689050376436299 "
5Jun 4, 2024 21:2900000Error: expected "53685448670802064 ", got "53685448015442064 "
6Jun 4, 2024 21:2900000Error: expected "53679563800793358 ", got "53679563800727822 "
7Jun 4, 2024 21:394,74960,146,33239,413,00002,404,352
8Jun 4, 2024 21:394,75166,352,03139,433,00002,273,280
9Jun 4, 2024 21:284,75665,956,93138,464,0001,012,0002,273,280
10Jun 4, 2024 21:284,75660,586,06639,472,00002,392,064
11Jun 4, 2024 21:394,75760,368,71439,480,00002,404,352
12Jun 4, 2024 21:394,75867,858,60838,476,0001,012,0002,273,280
13Jun 4, 2024 21:284,75866,830,60839,495,00002,273,280
14Jun 4, 2024 21:284,76065,955,42239,507,00002,273,280
15Jun 4, 2024 21:284,76061,848,19439,512,00002,273,280
16Jun 4, 2024 21:394,76161,266,78939,516,00002,392,064
17Jun 4, 2024 21:394,76164,002,17338,507,0001,013,0002,408,448
18Jun 4, 2024 21:284,76365,119,60638,518,0001,013,0002,396,160
19Jun 4, 2024 21:284,76373,518,87539,531,00002,510,848
20Jun 4, 2024 21:284,76462,238,21238,530,0001,013,0002,273,280
21Jun 4, 2024 21:394,76560,790,51038,534,0001,014,0002,273,280
22Jun 4, 2024 21:394,76562,692,98339,547,00002,265,088
23Jun 4, 2024 21:284,76765,926,06638,555,0001,014,0002,404,352
24Jun 4, 2024 21:284,76765,971,39339,567,00002,273,280
25Jun 4, 2024 21:284,76866,190,73539,576,00002,273,280
26Jun 4, 2024 21:284,76866,183,67339,575,00002,392,064
27Jun 4, 2024 21:284,76969,040,03138,568,0001,014,0002,273,280
28Jun 4, 2024 21:394,77064,928,06338,573,0001,015,0002,392,064
29Jun 4, 2024 21:284,77063,589,69539,591,00002,404,352
30Jun 4, 2024 21:284,77166,265,34739,599,00002,273,280
31Jun 4, 2024 21:394,77168,585,55439,598,00002,273,280
32Jun 4, 2024 21:394,77173,555,42838,584,0001,015,0002,273,280
33Jun 4, 2024 21:394,77265,225,99939,608,00002,400,256
34Jun 4, 2024 21:394,77263,009,57139,606,00002,273,280
35Jun 4, 2024 21:284,77267,376,92038,616,000990,0002,498,560
36Jun 4, 2024 21:284,77267,352,55038,591,0001,015,0002,273,280
37Jun 4, 2024 21:394,77467,181,42739,621,00002,273,280
38Jun 4, 2024 21:394,77470,842,51638,610,0001,016,0002,273,280
39Jun 4, 2024 21:394,77466,384,56239,628,00002,273,280
40Jun 4, 2024 21:394,77564,456,59138,618,0001,016,0002,400,256
41Jun 4, 2024 21:284,77566,050,67438,620,0001,016,0002,396,160
42Jun 4, 2024 21:394,77663,924,15838,623,0001,016,0002,396,160
43Jun 4, 2024 21:394,79969,842,00037,837,0001,991,0002,400,256
44Jun 4, 2024 21:284,80071,839,05537,850,0001,992,0002,273,280
45Jun 4, 2024 21:394,80069,761,62739,842,00002,273,280
46Jun 4, 2024 21:394,80163,812,81637,854,0001,992,0002,396,160
47Jun 4, 2024 21:284,80472,693,15337,881,0001,993,0002,273,280
48Jun 4, 2024 21:284,80862,665,42237,909,0001,995,0002,273,280
49Jun 4, 2024 21:284,970123,195,52341,254,10202,297,856
50Jun 4, 2024 21:334,976116,012,87541,300,07102,256,896
51Jun 4, 2024 21:394,976108,573,16041,301,93302,297,856
52Jun 4, 2024 21:334,979113,363,73241,324,93002,252,800
53Jun 4, 2024 21:394,979122,967,38741,325,74302,289,664
54Jun 4, 2024 21:394,979104,706,22741,321,67302,285,568
55Jun 4, 2024 21:284,983106,732,49241,357,50602,281,472
56Jun 4, 2024 21:394,984113,174,47541,366,76802,285,568
57Jun 4, 2024 21:394,984111,532,94241,368,03302,277,376
58Jun 4, 2024 21:284,984100,085,95441,371,14802,285,568
59Jun 4, 2024 21:394,986107,459,01441,383,65602,285,568
60Jun 4, 2024 21:334,988121,357,33641,402,76102,281,472
61Jun 4, 2024 21:394,988104,750,38041,396,68502,277,376
62Jun 4, 2024 21:284,995108,495,37141,457,01402,289,664
63Jun 4, 2024 21:284,998117,632,07241,480,23502,281,472
64Jun 4, 2024 21:285,00092,674,69341,495,85002,277,376
65Jun 4, 2024 21:295,002114,853,13641,514,73702,281,472
66Jun 4, 2024 21:395,007103,068,03341,558,88202,281,472
67Jun 4, 2024 21:395,008104,750,01341,570,04502,285,568
68Jun 4, 2024 21:395,012104,345,48341,596,56602,277,376
69Jun 4, 2024 21:395,01399,516,56241,607,58702,297,856
70Jun 4, 2024 21:395,013104,752,40641,607,70002,285,568
71Jun 4, 2024 21:395,023115,995,63141,691,22802,281,472
72Jun 4, 2024 21:395,026106,857,31241,714,29502,277,376
73Jun 4, 2024 21:295,046115,834,37641,885,59502,289,664
74Jun 4, 2024 21:395,061103,523,23942,002,21002,289,664
75Jun 4, 2024 21:295,303106,174,98944,016,80602,277,376