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 15, 2024 20: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
1Jul 15, 2024 20:0200000Error: expected "53688656465381723 ", got "53688630865381723 "stderr
2Jul 15, 2024 20:0200000Error: expected "53681901211358021 ", got "53681875611358021 "stderr
3Jul 15, 2024 20:0200000Error: expected "53689859296441798 ", got "53689833696441798 "stderr
4Jul 15, 2024 20:0100000Error: expected "53681590560281192 ", got "53681564960281192 "stderr
5Jul 15, 2024 20:0100000Error: expected "53684719062337441 ", got "53684693462337441 "stderr
6Jul 15, 2024 20:037,02284,159,59256,273,0002,009,0002,347,008
7Jul 15, 2024 20:037,02980,765,49657,334,0001,005,0002,490,368
8Jul 15, 2024 20:037,03084,309,12656,341,0002,012,0002,514,944
9Jul 15, 2024 20:037,08282,048,83754,798,0003,985,0002,494,464
10Jul 15, 2024 20:037,08791,249,72754,836,0003,988,0002,396,160
11Jul 15, 2024 20:037,08784,954,89953,841,0004,985,0002,326,528
12Jul 15, 2024 20:037,08986,087,27355,850,0002,991,0002,453,504
13Jul 15, 2024 20:037,09282,807,44456,869,0001,995,0002,514,944
14Jul 15, 2024 20:027,096129,432,76958,894,10202,195,456
15Jul 15, 2024 20:037,12080,355,33357,090,0002,003,0002,486,272
16Jul 15, 2024 20:037,13381,233,10255,187,0004,013,0002,424,832
17Jul 15, 2024 20:037,14681,822,73256,293,0003,015,0002,314,240
18Jul 15, 2024 20:037,160122,316,68459,424,14602,256,896
19Jul 15, 2024 20:037,16686,313,55255,446,0004,032,0002,347,008
20Jul 15, 2024 20:037,18191,104,87655,562,0004,040,0002,322,432
21Jul 15, 2024 20:037,20789,672,33356,831,0002,991,0002,338,816
22Jul 15, 2024 20:037,207127,301,19259,817,70902,260,992
23Jul 15, 2024 20:037,216127,142,84059,890,82902,297,856
24Jul 15, 2024 20:027,217131,865,13759,902,10002,306,048
25Jul 15, 2024 20:027,262122,752,11760,271,02702,187,264
26Jul 15, 2024 20:037,27481,511,15454,338,0006,037,0002,502,656
27Jul 15, 2024 20:037,27586,123,28257,367,0003,019,0002,306,048
28Jul 15, 2024 20:037,28787,941,86656,454,0004,032,0002,310,144
29Jul 15, 2024 20:037,30786,592,87458,626,0002,021,0002,306,048
30Jul 15, 2024 20:037,363122,300,08661,116,88002,293,760
31Jul 15, 2024 20:037,377141,790,50661,232,25202,236,416
32Jul 15, 2024 20:037,378119,354,27261,240,35202,207,744