QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#547626 | #6450. Apple Market | ucup-team1005 | AC ✓ | 47ms | 36252kb | C++20 | 3.5kb | 2024-09-05 00:22:16 | 2024-09-05 00:22:17 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 7468kb
input:
2 3 2 1 2 3 4 5 6 1 2 2 3 20 2 2 1 3 15
output:
20
result:
ok single line: '20'
Test #2:
score: 0
Accepted
time: 1ms
memory: 7988kb
input:
1 1 1 8501563 1 1 1 1 503479967
output:
8501563
result:
ok single line: '8501563'
Test #3:
score: 0
Accepted
time: 36ms
memory: 35112kb
input:
50 50 100000 7063209 978475 9080290 7345177 8698868 6046236 6755332 6486564 9708177 6099533 1030203 2112902 2110321 1179779 1621518 3508843 5133346 9260266 9150127 3876984 5283530 1627889 4135480 8942227 6895517 8254560 432609 2231619 8204769 3182673 3322788 6148348 3618884 7753221 1892946 233375 71...
output:
12354132211
result:
ok single line: '12354132211'
Test #4:
score: 0
Accepted
time: 33ms
memory: 34992kb
input:
50 50 100000 5714296 2373163 1039874 7336140 9723015 3378850 2738398 4803285 280141 9236321 6073440 2295488 1211733 7718005 1949267 8401310 7168021 203956 8688650 8297141 520644 6101631 1272538 1213243 5668961 3589987 7236935 8225244 6879770 8348847 1102951 2679601 4397193 9283593 1810472 6425289 64...
output:
12460490740
result:
ok single line: '12460490740'
Test #5:
score: 0
Accepted
time: 41ms
memory: 34616kb
input:
50 50 100000 5374853 4381138 8566286 3904849 1739893 8170975 1888900 6909566 4704417 3729669 2203706 5158072 2602136 6861637 617347 6675589 2545929 7075868 6221655 6104030 4044875 865805 7554050 6819767 7385200 8188943 3953874 6766541 2680543 9594165 7338708 3674236 9466838 9459846 7386029 9835987 2...
output:
12463035775
result:
ok single line: '12463035775'
Test #6:
score: 0
Accepted
time: 45ms
memory: 35460kb
input:
50 50 100000 9801897 2115286 5977631 408582 3945224 2688736 9817260 620545 1653499 8155187 6604469 4460359 8117864 3836358 3902546 2328483 7746989 8645639 7392947 1153567 491077 9592766 3241721 6902953 5553181 3032292 251892 5129822 1568323 4253682 8382919 4573286 3342574 4625169 3566563 3858290 418...
output:
12609569311
result:
ok single line: '12609569311'
Test #7:
score: 0
Accepted
time: 36ms
memory: 35988kb
input:
50 50 100000 6918676 633026 2115982 55613 7091192 1672877 6853768 1417474 8646847 9055988 3175095 3188397 5324314 2242295 9105183 4150110 4560979 9540163 3173623 2302542 8245236 8232666 6398610 4218272 898573 6994807 9561924 6741501 2244415 3114704 2810780 5809585 9440718 3198931 2071561 4940444 455...
output:
12246332739
result:
ok single line: '12246332739'
Test #8:
score: 0
Accepted
time: 44ms
memory: 35424kb
input:
50 50 100000 6988796 6422186 5749895 6240607 5061271 8991955 6129169 7856904 4223289 9286768 7033917 1545325 8063560 8699216 8865580 5891145 8417584 8150962 2350111 388359 5520047 41172 4290068 989971 2910883 9337287 8699296 7542154 753336 3674400 9114654 1688391 4875313 8026869 5463023 6212180 4081...
output:
12478301786
result:
ok single line: '12478301786'
Test #9:
score: 0
Accepted
time: 43ms
memory: 35352kb
input:
50 50 100000 98978 188207 3429417 5151921 8944954 3151187 7375773 8907158 514826 2657602 8918902 245359 167641 4548603 4121315 6357409 8584851 7601809 308940 9136189 9311039 887461 434118 9121799 2339178 9219992 6911227 224094 7761051 1152076 8381135 9007571 3350100 8320280 6091862 7922800 742295 28...
output:
12530410585
result:
ok single line: '12530410585'
Test #10:
score: 0
Accepted
time: 43ms
memory: 36024kb
input:
50 50 100000 3444960 5243829 2138922 5301493 9236831 9675079 4006464 3586669 5403767 7992626 1728696 7377499 8316830 187082 6412861 8485752 2869238 2757121 6327365 5144128 8775501 9166522 800861 7645809 1224794 6081199 3627885 4101384 7715849 9553244 8012417 722027 6529472 4677131 8693563 8090750 19...
output:
12565314203
result:
ok single line: '12565314203'
Test #11:
score: 0
Accepted
time: 40ms
memory: 35912kb
input:
50 50 100000 7847727 8469444 2501242 9708713 3339124 544766 308019 7317104 8599482 7348346 3911307 4330976 8503250 5176811 7040295 2639055 4840700 1020777 8769025 6853601 8963254 7389861 5726872 2716079 8792003 7144978 4204627 5282592 151374 8948051 3419429 105216 3567582 1202340 8688889 7833021 619...
output:
12530982232
result:
ok single line: '12530982232'
Test #12:
score: 0
Accepted
time: 42ms
memory: 34908kb
input:
50 50 100000 7498813 6193440 5944999 1370264 6538971 1586302 3065732 1173924 7632890 5946113 6208633 4205015 5398117 7531168 1271442 5345086 438212 775338 5450666 7845639 1817334 9431675 8508119 1747661 2416831 2984170 6086448 897354 773839 9926240 2301876 2813963 1218285 1204199 4336346 5756495 309...
output:
12557616108
result:
ok single line: '12557616108'
Test #13:
score: 0
Accepted
time: 46ms
memory: 36252kb
input:
50 50 100000 3017475 9921057 3042667 5590271 8546748 5207581 7839516 2430876 1434989 6609503 5820314 1195358 5645535 3285931 6088796 2716034 8825762 1198559 4705962 3832850 6590806 4673237 1446148 5810460 6692120 8561595 9040360 6328276 6331912 7931838 3369281 8705032 3310783 6560719 7593007 7798300...
output:
11895583969
result:
ok single line: '11895583969'
Test #14:
score: 0
Accepted
time: 41ms
memory: 35232kb
input:
50 50 100000 4010577 6242744 5882741 40596 9028388 1777154 8042248 6207078 5970288 93564 3178090 5788925 4677808 565006 965614 5128137 5951681 4374156 6958427 4886058 9180887 3697904 1362001 908698 8110302 2298903 6271073 9977081 2240980 1160722 9010830 9627269 6001537 2475214 5941810 8033635 413317...
output:
12160557247
result:
ok single line: '12160557247'
Test #15:
score: 0
Accepted
time: 35ms
memory: 34684kb
input:
50 50 100000 1275386 9815605 9816329 3697776 401268 5480750 9192608 2804485 8881078 4718020 3196002 4640489 9835066 8162272 470592 1805833 4922653 4681417 300778 3653904 3029095 9232729 1096931 4903711 4548907 6361295 5058372 8391411 6736305 3652612 1186189 2664650 5303752 7487308 2207409 1116235 63...
output:
12330645388
result:
ok single line: '12330645388'
Test #16:
score: 0
Accepted
time: 39ms
memory: 35296kb
input:
50 50 100000 6454257 1226998 6922606 767700 7774289 3082448 2515425 3914386 2835414 9367618 4374913 3920792 8243905 3980029 8913344 5546323 1334587 5491895 4415840 4809801 1026343 5705390 4990889 4204957 5933825 669038 8296185 6076591 7726907 8857931 6869038 6836085 5860182 9216917 1037227 8437241 3...
output:
12024063679
result:
ok single line: '12024063679'
Test #17:
score: 0
Accepted
time: 47ms
memory: 34708kb
input:
50 50 100000 918876 3613252 8411702 471499 3514945 8135803 4636405 471359 6184183 5015421 9903999 8797855 2521082 5667602 6415119 7431435 2497448 4188578 9221988 8221254 5978649 5670989 1707575 2276306 5096700 2874054 1934578 663910 2818642 2431810 753335 9916079 1011166 4602669 6302335 1985251 8383...
output:
12148283849
result:
ok single line: '12148283849'
Test #18:
score: 0
Accepted
time: 19ms
memory: 17560kb
input:
12 16 57094 6071620 8104102 914147 4861774 6067528 8173469 5029088 1333871 9369819 3927345 885654 8782360 4309055 1524043 434987 2184596 7944805 9339003 1287677 4615305 6159972 9342851 6920732 2392833 7696174 9499042 2215143 7609897 9189823 9365329 4150645 9022961 8253122 6541028 3371818 8734831 190...
output:
1016459740
result:
ok single line: '1016459740'
Test #19:
score: 0
Accepted
time: 22ms
memory: 24552kb
input:
42 35 60820 3219802 4195364 7067711 441155 8907626 4360402 9624815 8015911 4143012 2469752 8694723 6469231 8126295 9931659 5573525 1326593 3757447 7438858 1843088 5892071 1012186 7085749 7374996 1892634 1178411 8319469 3512336 2247318 6166895 4987586 3588455 6726151 9991949 5356429 5148619 9094093 8...
output:
7321574226
result:
ok single line: '7321574226'
Test #20:
score: 0
Accepted
time: 4ms
memory: 14308kb
input:
32 24 24234 3843337 603369 5045632 5278174 2433362 5422308 9829353 3157345 8179435 8002969 9791211 4676092 8318242 5930859 1316926 6107187 9822241 2984042 959570 1982559 6263210 617844 6487024 7181875 4322324 9001062 1072543 5769512 4644832 708791 7554918 434225 5168205 3002270 4193124 2161305 96502...
output:
3748108307
result:
ok single line: '3748108307'
Test #21:
score: 0
Accepted
time: 20ms
memory: 22332kb
input:
43 18 76474 3278808 1088206 921022 6745511 5469659 5933349 9139315 3616388 6905143 3700109 926243 8946240 3827771 3943270 6541078 3643408 4115811 2107468 2574764 2046758 5028041 7332315 1535324 6474681 5387962 334334 3059547 2476374 9461825 1852396 6383987 4783211 377487 7535291 100038 2395129 21700...
output:
3727841646
result:
ok single line: '3727841646'
Test #22:
score: 0
Accepted
time: 6ms
memory: 14412kb
input:
39 35 3067 9824479 5504765 3402974 4499785 3198521 8728786 2738721 2756270 9084365 42292 2285788 424760 3404366 598519 6660320 935581 8651730 1832086 3347890 8128297 2730801 5491336 6385181 568921 8786817 2364904 1062134 2495087 6290414 7915091 1772716 2433403 1114281 1173338 6258274 104441 6522458 ...
output:
6869517373
result:
ok single line: '6869517373'
Test #23:
score: 0
Accepted
time: 0ms
memory: 8296kb
input:
20 4 9327 5231664 9939938 1834402 3885617 9006912 4064309 4210876 8824113 2379548 6633073 5075261 1905364 72484 3254379 8729771 5016736 6101037 908726 6468121 977675 7906002 5053633 8857658 4019498 5342764 7775459 8376815 5658526 9395937 4023877 6950027 1999829 9557762 6765020 5441069 9434542 461943...
output:
431307807
result:
ok single line: '431307807'
Test #24:
score: 0
Accepted
time: 8ms
memory: 15296kb
input:
27 36 26622 32878 3200004 8657883 9355625 4148427 4344257 1756454 3312064 8544839 9683725 9312361 6766904 793133 7896309 1515340 9592559 4659150 3889516 6840832 1744811 6174926 2995391 1404870 3572944 6947384 7578288 8898260 5653442 6164166 7102973 1523971 4609088 4959861 7143379 4573504 9963 207214...
output:
4996422977
result:
ok single line: '4996422977'
Test #25:
score: 0
Accepted
time: 11ms
memory: 18004kb
input:
28 38 32027 4251872 4287146 4315682 563915 5898544 7428659 6324260 5099568 3854920 2053414 3790459 5379349 1046835 9304236 8191888 1411144 2198305 6542302 2442406 336743 8038783 3544427 3795157 5711074 5523583 1779892 5249065 8024814 5975130 3316487 5961670 1769892 4180325 78838 7578804 7007037 7556...
output:
5299401134
result:
ok single line: '5299401134'
Test #26:
score: 0
Accepted
time: 19ms
memory: 17988kb
input:
22 14 65111 7302308 7999452 3223473 2667527 3222655 7939316 89335 858183 5104688 6415553 9422117 93534 5716285 7307949 6334322 6668317 9470861 8548759 9559813 9683476 1379352 6609401 2939814 3743016 5327864 5569177 687513 5446987 2540671 1818096 546143 1495783 1262097 5839289 4969939 9110896 64257 7...
output:
1510002395
result:
ok single line: '1510002395'
Test #27:
score: 0
Accepted
time: 15ms
memory: 18644kb
input:
32 21 52825 1830461 5380905 4685626 149947 3009928 7973431 7530634 2051245 2367261 9216890 6848027 6537739 8313953 3255829 7126406 3045707 2662864 9049732 8246674 9546554 9461394 4393943 2870916 3575933 352524 2999405 3757990 7558404 3112310 3693531 8928510 6939151 1384054 9962027 6099140 4226418 25...
output:
3240859048
result:
ok single line: '3240859048'
Test #28:
score: 0
Accepted
time: 7ms
memory: 10088kb
input:
30 10 17409 5345244 1548065 1787035 2551719 3984010 164946 784452 6862457 8648419 8736887 803653 3984482 9553391 284319 6560574 4557765 4010843 1293694 9779741 3548589 3666539 3548230 9207067 1215392 9043205 5136611 3175051 9446866 3126541 598549 704336 6195390 5931890 8643622 5180807 2000186 774523...
output:
1544814283
result:
ok single line: '1544814283'
Test #29:
score: 0
Accepted
time: 19ms
memory: 20556kb
input:
29 28 62890 8468957 5331279 8207085 5093465 5024763 8324524 7490055 4942567 245616 7577241 2461307 5742400 2786860 579990 9922795 3065808 4890762 5663011 7746383 751266 3743161 9851973 5927135 8787171 2348428 4700193 8225418 1986166 6499741 6255615 7328410 3886130 2284946 3982559 9041165 7143023 278...
output:
4080015838
result:
ok single line: '4080015838'
Test #30:
score: 0
Accepted
time: 13ms
memory: 19576kb
input:
46 28 38017 853141 2157867 9132470 570975 517735 481743 8968243 28827 3865712 793091 7859662 4350455 7100792 2414354 2654965 5083235 7344688 930511 732904 2169409 24954 4055340 7850816 7232897 8310552 3022247 4122355 1805397 8639034 915139 8845279 1613980 6863762 1566428 6384560 7386798 7861244 8378...
output:
6421563231
result:
ok single line: '6421563231'
Test #31:
score: 0
Accepted
time: 22ms
memory: 19028kb
input:
15 43 58798 1269411 4173814 2170129 1294440 5043462 4239005 2493799 3135540 2239172 2163692 7695011 8844690 2773937 5675753 4176497 362634 3847759 7323474 8815226 4571448 6346679 2847361 9638437 4781916 2648230 8257847 1388412 8274412 6474398 7011534 6329720 2926688 3742648 6188612 4576005 5624817 9...
output:
3294725849
result:
ok single line: '3294725849'
Test #32:
score: 0
Accepted
time: 9ms
memory: 12292kb
input:
9 27 24972 9362695 9007884 2113805 5833835 525864 8494710 4109884 8030405 2245373 3056199 9517911 2965804 3804030 707911 6728771 3284388 218462 11039 8273610 145304 3604957 9228034 1057850 4276733 121763 7547200 1697976 7872143 6079959 9270640 5962550 44527 5844006 3754906 6989783 3076536 1180184 34...
output:
1156278131
result:
ok single line: '1156278131'
Test #33:
score: 0
Accepted
time: 31ms
memory: 28472kb
input:
47 39 75247 9383799 5882873 6740815 5855546 356242 8951385 1617728 6411082 8651598 539169 319909 9026486 6139373 9415209 6473534 3587615 4879082 469738 2103847 9043175 6965746 1719227 1785401 30185 6823429 896602 8709191 1675682 3714561 3278679 818545 8695584 3063165 1479347 2130797 2782543 1260969 ...
output:
9057295647
result:
ok single line: '9057295647'
Test #34:
score: 0
Accepted
time: 18ms
memory: 16992kb
input:
7 36 56423 2515172 833044 9649855 5486902 2103101 7444501 9816862 8892171 703525 8334945 8169970 8494749 5668315 5271421 3866576 6694862 5543958 6191119 3162900 9342188 5633850 8162954 4761359 5069794 9264467 461826 3103162 8803321 1203759 5013382 3921332 6131765 2292558 6117415 9918083 8118511 9322...
output:
1264392217
result:
ok single line: '1264392217'
Test #35:
score: 0
Accepted
time: 0ms
memory: 7740kb
input:
50 2 1125 7219285 4748225 4590226 3382591 5091753 5410536 3786368 9947884 2215023 306351 1038734 79744 4225559 7107237 3959234 2863311 8438062 864554 359242 8094453 3151605 8456717 2575248 4751768 4561732 4094573 7723943 9438201 45460 8644835 8632078 3933204 8423641 4220067 681246 6836396 4571061 40...
output:
501102869
result:
ok single line: '501102869'
Test #36:
score: 0
Accepted
time: 21ms
memory: 17784kb
input:
43 1 69209 6792193 3919531 1475793 4781534 7610788 3738704 3665360 5253261 9516271 3933269 9265452 6741490 86827 9135520 2020204 8138282 8921612 2713838 1686576 7939883 11960 6607961 4675690 1451649 9246564 4707159 1788450 2418771 389821 276537 2856333 3399749 5715939 911275 8714196 9564054 520570 7...
output:
204093579
result:
ok single line: '204093579'
Test #37:
score: 0
Accepted
time: 10ms
memory: 14844kb
input:
4 11 48168 5285637 1466296 2220485 5406288 9468550 7396851 248482 1445336 4791787 5781167 4411138 5207980 9361477 3085581 4582452 8627547 8027080 2681583 6921532 2059798 9562884 5491668 3164485 7930449 974422 9477077 6903070 1241978 2482743 3874387 2786762 5276848 4638303 303754 149444 1014090 84418...
output:
196830167
result:
ok single line: '196830167'
Test #38:
score: 0
Accepted
time: 7ms
memory: 15556kb
input:
45 1 46540 7785985 4739727 2075433 7030387 242603 1094268 5569715 5926431 6587873 2032356 6790758 251561 8150651 443615 3394793 702045 5762997 7385392 918340 8390221 2144686 1430474 677220 7827807 6605645 9664287 2362737 248876 8799968 7286888 9226137 6993498 9671595 40567 4378901 3223655 8106974 54...
output:
221432773
result:
ok single line: '221432773'
Test #39:
score: 0
Accepted
time: 11ms
memory: 13036kb
input:
18 33 27405 4286368 1114989 3437488 7454586 9129141 1058216 4861555 4456128 9710210 9587827 6324785 3880268 3995395 5190024 6469986 7623613 8785991 6822426 7631003 4365916 4360200 3218133 1383571 2505162 1124195 3816096 2615844 9691295 7151123 8843307 3871234 220522 4272431 5491053 724405 7846830 49...
output:
3013639483
result:
ok single line: '3013639483'
Test #40:
score: 0
Accepted
time: 0ms
memory: 7996kb
input:
16 10 5953 7089700 2453678 3807564 6243758 4190031 1653955 5882654 1667229 4299311 5024163 9363504 147682 5201725 8369794 8794018 1955455 5124202 1971363 5774881 1985431 6283845 4050501 4616459 1861854 1061027 6272049 952364 989227 3360910 9025164 1692237 9802935 3901567 820864 1009907 1128086 28714...
output:
739949853
result:
ok single line: '739949853'
Test #41:
score: 0
Accepted
time: 21ms
memory: 23168kb
input:
38 45 47529 9102644 1566987 4048527 3942877 7382592 9938890 3162549 6692574 9410622 2154033 3399524 1811625 157854 8910174 8754437 9989916 9068342 3154458 9140515 5885961 6262826 8943268 6315127 9859188 9174357 7030241 7052703 5767456 1757998 9233138 9641620 6761425 6896991 3662099 6551753 6363918 8...
output:
8514661187
result:
ok single line: '8514661187'
Test #42:
score: 0
Accepted
time: 12ms
memory: 12652kb
input:
12 24 30972 9129428 4200703 1310847 6774483 4129410 8532453 5339038 4569060 3024605 5760848 8622144 8546138 4305803 7032683 5086009 63130 5751570 5714422 7627836 5693146 4429302 7963312 4409917 1507617 3976053 5644450 1210171 1875937 1986439 397901 1796256 5244378 609615 5675252 2495822 3447074 3226...
output:
1443204721
result:
ok single line: '1443204721'
Test #43:
score: 0
Accepted
time: 30ms
memory: 25616kb
input:
41 31 74859 5898632 1984980 5619871 2181524 903472 7583065 4799611 7702231 2746412 9251968 9262364 9618997 7467226 4479344 4844426 5124486 5962601 3501165 1399244 7850137 8322811 4384460 5822418 1581562 704442 7156903 163103 3063661 7721281 8824825 7720110 4222113 3670044 5381584 2238709 2488279 240...
output:
6495712583
result:
ok single line: '6495712583'
Test #44:
score: 0
Accepted
time: 29ms
memory: 22208kb
input:
34 4 94321 1251453 9747211 4097068 256628 5826889 7508485 4016080 8145971 2016478 2958161 1614936 8807170 2911702 1728249 1767842 3367147 897585 419617 1677931 5774548 8340546 779912 2932787 9996810 2406493 349195 9306682 9078797 1302578 3847314 4657820 9079137 2023741 1469498 2309296 3041850 313459...
output:
651134494
result:
ok single line: '651134494'
Test #45:
score: 0
Accepted
time: 11ms
memory: 13340kb
input:
2 20 32388 1027310 6160690 5621727 9656950 9110773 434717 5351262 1385249 4714627 3185524 5612752 2986413 7849831 5412868 3219817 1485978 3067197 7031449 7058825 3390145 2925261 9735826 7826903 5956066 2058296 5637388 4567875 2931950 1470264 6325089 2425264 4061165 2927219 2565949 6856067 5243151 96...
output:
193908850
result:
ok single line: '193908850'
Test #46:
score: 0
Accepted
time: 11ms
memory: 15764kb
input:
1 30 55020 1418952 936443 7888366 5261690 7071384 9113050 2403161 9766237 3455479 7749505 6814553 6576403 5810939 602277 4145813 4323635 6066788 2934558 1866787 3309243 159310 6443946 9505516 9869258 5742630 719818 9523655 4197560 6971855 2319707 1 1 17 26 544326485 1 1 29 30 504986227 1 1 4 7 36925...
output:
152968518
result:
ok single line: '152968518'
Test #47:
score: 0
Accepted
time: 15ms
memory: 18088kb
input:
8 27 58128 3331720 5398941 897988 717520 2234132 8073777 383802 9346695 8354990 1228945 8236278 5031907 7323674 1314560 3394120 6385301 6890608 6189224 1625881 8160370 166719 756372 6516181 8244487 3196357 7349912 5660583 8327952 2419920 1211248 7064236 4452658 6338932 4373802 8357778 9760098 728345...
output:
1090274825
result:
ok single line: '1090274825'
Test #48:
score: 0
Accepted
time: 32ms
memory: 26116kb
input:
32 31 92657 4764718 2243268 4202320 1457570 7199323 2040161 2343282 3339817 2172832 23844 6470500 3255471 8562410 1822598 7802880 6950708 9071128 904835 6372984 536648 7562 8824857 9953473 3032984 9860587 5300273 2052079 454478 2123326 8132173 667801 7007116 6181098 3458222 5806185 9786476 3433695 6...
output:
4956042212
result:
ok single line: '4956042212'
Test #49:
score: 0
Accepted
time: 4ms
memory: 11728kb
input:
41 5 19256 2040001 7319067 2514783 4154207 9321908 9664893 2023652 5907182 8170105 5976845 2502410 1848068 6909298 5697936 8340899 9376743 107219 4808505 649460 9967321 9617826 3356441 1091940 7462578 8983306 30715 7088039 9556652 5067671 2136659 1078620 6687200 5708594 486862 3775344 1563392 334385...
output:
1001164172
result:
ok single line: '1001164172'
Test #50:
score: 0
Accepted
time: 9ms
memory: 18148kb
input:
28 30 51554 7254664 1671591 6674546 109689 2508214 4362153 7346942 8963491 8732207 9380394 9246747 2321441 3269701 1418675 3647065 8332902 1107834 1434276 5454910 2766044 7296140 9691441 273081 5164813 7186358 605739 7471761 6444105 8657562 741591 9260958 9168442 8741727 5438151 1911952 7220151 8092...
output:
4283789303
result:
ok single line: '4283789303'
Test #51:
score: 0
Accepted
time: 7ms
memory: 16512kb
input:
33 50 15986 6308498 7595365 7453827 6579596 1408979 6931760 3399311 8239282 251279 393645 6505386 4264147 5478427 2326812 4599657 9185872 9903048 3731721 1898789 8368071 1325707 8121083 9550252 1837814 4556674 9021778 6936992 3053101 3888863 3394571 6339219 9567413 4461164 2044937 929620 1447420 111...
output:
8149628392
result:
ok single line: '8149628392'