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 listDec 6, 2023 02:45Yuriy 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
1Dec 6, 2023 02:5000000Error: expected "53681578733489590 ", got "53681553133233590 "stderr
2Dec 6, 2023 02:4700000Error: expected "53689445442067930 ", got "53689419586067930 "stderr
3Dec 6, 2023 02:4700000Error: expected "53682074356494384 ", got "53682074074638384 "stderr
4Dec 6, 2023 02:4600000Error: expected "53683209792034436 ", got "53683184192034436 "stderr
5Dec 6, 2023 02:4600000Error: expected "53689801699945021 ", got "53689776099945021 "stderr
6Dec 6, 2023 02:4600000Error: expected "53689120403881332 ", got "53689120403881076 "stderr
7Dec 6, 2023 02:4500000Error: expected "53685066050927632 ", got "53685037865327632 "stderr
8Dec 6, 2023 02:497,02182,660,21555,261,0003,014,0002,301,952
9Dec 6, 2023 02:497,03585,103,28756,375,0002,013,0002,531,328
10Dec 6, 2023 02:497,08788,320,94654,838,0003,988,0002,363,392
11Dec 6, 2023 02:497,14380,904,03655,267,0004,019,0002,494,464
12Dec 6, 2023 02:497,15281,317,97856,346,0003,018,0002,514,944
13Dec 6, 2023 02:497,15585,710,15456,365,0003,019,0002,510,848
14Dec 6, 2023 02:497,15886,028,16056,394,0003,021,0002,465,792
15Dec 6, 2023 02:457,16085,089,07458,421,0001,007,0002,359,296
16Dec 6, 2023 02:497,17685,886,54757,579,0001,985,0002,269,184
17Dec 6, 2023 02:497,183122,662,04459,619,46502,297,856
18Dec 6, 2023 02:457,20391,307,90954,806,0004,982,0002,510,848
19Dec 6, 2023 02:457,22982,510,34556,003,0004,000,0002,416,640
20Dec 6, 2023 02:497,250121,590,91160,177,71302,248,704
21Dec 6, 2023 02:457,25482,820,63855,193,0005,017,0002,465,792
22Dec 6, 2023 02:497,281134,220,54260,428,36302,183,168
23Dec 6, 2023 02:457,29089,390,36757,483,0003,025,0002,392,064
24Dec 6, 2023 02:457,29089,368,12557,485,0003,025,0002,412,544
25Dec 6, 2023 02:457,29388,500,41457,505,0003,026,0002,338,816
26Dec 6, 2023 02:497,30192,480,49256,557,0004,039,0002,461,696
27Dec 6, 2023 02:487,311116,272,66660,681,68502,281,472
28Dec 6, 2023 02:477,322121,586,88760,769,20402,277,376
29Dec 6, 2023 02:457,331126,209,51460,850,17202,256,896
30Dec 6, 2023 02:477,351120,595,95461,011,71502,310,144
31Dec 6, 2023 02:457,36086,040,48058,085,0003,004,0002,424,832
32Dec 6, 2023 02:457,36484,397,68559,121,0002,004,0002,465,792
33Dec 6, 2023 02:487,370133,637,28461,174,54002,207,744
34Dec 6, 2023 02:477,381116,652,22161,258,86702,228,224
35Dec 6, 2023 02:457,382119,724,86861,273,57502,248,704
36Dec 6, 2023 02:457,399121,692,85261,413,10602,248,704
37Dec 6, 2023 02:487,436123,265,54161,722,52102,179,072