QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#755493#9552. The Chariotucup-team3634#WA 55ms10772kbPython31.0kb2024-11-16 17:29:292024-11-16 17:29:30

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 10ms
memory: 10700kb

input:

5
160 27 41 3 12 3
160 27 41 3 12 4
160 27 41 3 12 99
1 999 999 1 99 999
999 999 1 1 99 9999999999999999

output:

160
187
3226
999
10000000000099799

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 46ms
memory: 10704kb

input:

2077
63 88 64 47 55 88
4 75 38 53 33 41
41 1 28 6 13 100
57 88 77 35 5 48
100 36 97 24 93 87
57 25 26 84 62 18
29 11 33 88 86 71
33 16 7 4 73 68
50 65 72 14 43 78
15 31 72 42 39 29
31 10 76 58 35 89
39 55 99 11 16 82
21 18 57 44 80 16
38 31 99 58 59 69
24 22 69 76 14 83
96 40 56 31 14 36
75 84 27 57...

output:

126
4
310
114
400
57
29
561
300
15
62
312
21
76
48
192
150
130
97
636
76
32
112
180
39
138
36
605
30
23
88
76
285
20
330
325
174
128
32
36
1
36
30
24
192
170
17
88
83
102
140
86
52
81
25
44
8
21
180
49
51
145
55
82
31
85
156
70
158
21
84
48
156
51
145
174
156
86
2
73
83
5
200
117
44
6
152
58
122
26
...

result:

ok 2077 lines

Test #3:

score: 0
Accepted
time: 40ms
memory: 10584kb

input:

2077
4 2 6 3 5 3
6 6 9 5 1 4
6 5 6 8 7 8
5 6 2 6 5 9
3 6 4 7 7 6
10 6 4 9 3 8
8 2 7 1 2 9
9 10 1 5 7 3
10 7 10 2 5 9
10 8 6 10 7 7
2 3 2 9 9 2
8 5 6 8 6 2
6 9 2 10 2 6
3 5 10 5 2 5
5 2 4 5 4 4
2 8 6 10 4 4
6 7 3 10 2 8
5 3 3 9 6 7
5 3 9 4 7 3
8 10 8 10 4 4
4 9 7 9 3 10
9 9 8 4 1 1
9 10 8 6 7 1
6 5 1...

output:

4
6
6
10
3
10
36
9
47
10
2
8
6
3
5
2
6
5
5
8
8
9
9
6
13
10
28
13
3
10
9
4
8
32
9
23
27
11
16
4
19
10
15
3
5
8
3
20
1
8
5
1
73
6
7
5
9
9
16
20
6
9
1
1
2
1
3
24
2
7
12
3
30
12
9
8
25
14
10
21
10
6
4
8
5
9
10
3
14
10
8
17
8
10
2
6
5
4
18
1
13
6
10
2
14
3
4
10
24
3
8
7
9
1
9
6
4
10
4
4
20
10
6
2
4
14
2
...

result:

ok 2077 lines

Test #4:

score: 0
Accepted
time: 46ms
memory: 10580kb

input:

2077
1417 6409 9808 8816 7324 8530
5662 460 4915 2005 2448 7568
2364 6496 4478 9681 3398 4981
209 5212 2936 6744 841 7952
1624 4340 1128 7953 629 822
8548 8999 6702 1024 8649 3885
5481 6872 8501 3410 8413 7190
4763 2043 1656 4873 6240 1807
7865 5379 9761 4618 3415 3368
4091 5946 3144 3012 6738 4325
...

output:

1417
22648
2364
418
1624
34192
16443
4763
7865
8182
3254
7443
86816
7163
7657
34604
7606
3257
3033
18189
3225
17562
7560
14346
26664
14046
9261
29724
8342
5908
7590
17668
8738
8309
12168
7047
40800
9192
18648
9195
8935
8819
1969
6080
14334
6511
9074
419
7982
4578
9693
11504
20433
2097046
6050
3431
9...

result:

ok 2077 lines

Test #5:

score: 0
Accepted
time: 17ms
memory: 10588kb

input:

100
35536173063230675474372606727057241871490558788794679195579356708141439871609632246 61501577129508313030285232710985015233972816339881035444668942634613530833743277701 69977916214375545701616716206226956278311775009117120846318542023125616332108000926 10050605559008930496140983766520146625049146...

output:

319825557569076079269353460543515176843415029099152112760214210373272958844486690214
450560525702174822675186703542069011573945860191648382960759195841400159544341224669
95330623252648094277257142015852094363067783723454076033290618532125267190925051
1777633606276319797578182384890019944082898623010...

result:

ok 100 lines

Test #6:

score: 0
Accepted
time: 12ms
memory: 10628kb

input:

100
27617223436350200283167612380427755086919233236220002664283192538263695236207991904 24208495979381798085875453581540557535168142482714452392350977196830285412065557639 58564524392293912103986330932367021242171363180777480593317714805582101784998460630 76615895837656212115270200095047400796915042...

output:

27617223436350200283167612380427755086919233236220002664283192538263695236207991904
87292880408308830696242450650003813718392417734570796139825586196653804148504332324
2243643448060891488969234170818908126849228932280094041884548577352094675056317608
6865459361426655168544467745969250961734474493686...

result:

ok 100 lines

Test #7:

score: 0
Accepted
time: 50ms
memory: 10524kb

input:

2077
4860 9866 1167 236 7596 3197
4841 3579 8767 6961 1376 6810
9064 9416 6529 7179 7687 5921
5891 483 7844 4300 6619 1692
9091 3274 7728 9861 6360 3561
7750 4744 2863 9293 4259 3631
7838 5643 2250 972 3922 2905
2776 470 2103 9431 6128 4521
2244 8597 8546 9802 715 6745
4589 2626 4956 6382 9098 8342
...

output:

68040
4841
9064
5891
9091
7750
23514
2776
2244
9178
1191
8970
15234
2416
16486
4504
190
1526
5658
13210
5763
4604
894
3305
6806
6086
8197
66220
842
62220
11602
27207
401
12384
4911
7390
8172
7552
4646
8345
9696
9255
1445
7013
962000
12070
7178
6434
106800
11097
4916
18786
4708
191912
6747
25700
9512...

result:

ok 2077 lines

Test #8:

score: 0
Accepted
time: 27ms
memory: 10644kb

input:

755
3929471836 62694 62695 62677 5808 20545488
848791 4613 4615 184 67808 128804
1712405854 91504 91506 18714 11361 9394425
1333207361 89405 89406 14912 59861 64977749
4168649572 76662 76660 54377 18493 7939044
7470761760 76482 76484 97680 3098 89084152
7427490330 77327 77329 96053 42847 111536698
5...

output:

1288078824018
594172152
859627464198
5809335650215
608607258778
6813334113264
8624798245085
516154678076
1554543417367
679601914588
1225389951605
74935221524
3695533644224
3800878040617
2470941963256
3628010083143
7377949269202
299612721670
1806371323009
1356913708574
4917313846071
1405638747628
201...

result:

ok 755 lines

Test #9:

score: 0
Accepted
time: 20ms
memory: 10528kb

input:

395
55744175100770010491 6349026815 6349026815 8779955846 4797632528 316078410444
21275756610054382673 2221625425 2221625427 9576662371 612911704 4807484510239
34302889979011935427 4783299425 4783299426 7171386721 5977114900 5321168946972
1143510247013975246 357293224 357293223 3200481202 9827516961...

output:

2006790303551532055861
10680429818240635225573
25452744364379023091910
4543099882037006617001
15218474509280131302227
17592562880580601901777
6647451067852558390522
75616010137513228624262
5052394147013299602742
77208643845618963483496
4584577740653838902644
4554471434932323799572
810959745735396611...

result:

ok 395 lines

Test #10:

score: 0
Accepted
time: 20ms
memory: 10608kb

input:

202
507126494418065393401357456690895351758 8819719604997617151 8819719604997617149 57499162913377267760 43910206553632799941 30474556344089951912795
8873908215533543066594337566156302744853 91984589256404286481 91984589256404286479 96471683868672716455 31323431856094084132 48428785302073703660407
5...

output:

268777042041574658441929059498903664656855
4454701924197838619333479524069996891338125
817211918074502648589873857193301418973696
9302117332015610822376046866250247132470096
86843338407130487906622834666176800715282
9105245869528230787680995008103761494033949
3193716823003648600336777439786910400800...

result:

ok 202 lines

Test #11:

score: 0
Accepted
time: 9ms
memory: 10728kb

input:

4
4338481318474030632417267104746824384342652333365162056394908957106139115480409624657653232265326571790489153902676703119139282462831828046766981301596739355264412026922803979802766956783274062884477586821837751268936093008499550337317983179543298654569396641523737631737178333088847214497379053319...

output:

321137295120906741714788469665696011467701551958835295060276472620103579938145411290154710923795234519840012022836844758784546153376898350212518357932129474943872464078172947148435997685199680589888246018188073610835130980258078408116918752698485233467675367668373772808661295171713144137042662600775...

result:

ok 4 lines

Test #12:

score: 0
Accepted
time: 16ms
memory: 10648kb

input:

4
1338322677990333737935546163712818993314016363460483758470888123904967199401736018146323126032790678003641993668435890770076004836205244503876361411534302658357834009122573485032598524741673633237841390599186330444712718855608391563134782840589515420395207524908355858865988880404687808299771369513...

output:

816182811118939399925095125739528147206092696075159060014144666293432773246812182951115538455994812892540291819549088238756655829687761787697947299021978494230312632924249846956992925206003275784649827956499434261465729177909544542191334270624624948359384599753222891217946321171874630522992621188474...

result:

ok 4 lines

Test #13:

score: 0
Accepted
time: 17ms
memory: 10772kb

input:

5
999 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

999
99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok 5 lines

Test #14:

score: 0
Accepted
time: 5ms
memory: 10604kb

input:

1
100 10 5 100 1 202

output:

215

result:

ok single line: '215'

Test #15:

score: 0
Accepted
time: 44ms
memory: 10608kb

input:

1919
805 126 252 352 760 680
745 948 597 309 983 506
371 665 953 110 945 702
327 887 232 135 371 415
828 664 421 918 286 731
832 863 669 47 506 762
248 637 376 409 485 157
72 406 718 551 789 583
295 628 326 138 737 301
959 180 370 996 22 950
659 608 383 415 184 769
713 596 780 272 207 140
986 701 20...

output:

1610
1490
2597
1308
828
14144
248
144
885
959
1318
713
986
392
558
415
425
1869
32
1332
325
1988
9152
587
1092
1042
566
1365
338
355
182
83
874
558
806
973
1836
1182
366
720
714
2844
1347
23
8721
674
474
4752
786
1650
1464
348
1058
3848
24
800
914
2778
581
265
98782
201
412
852
120
45
572
1308
202
1...

result:

ok 1919 lines

Test #16:

score: 0
Accepted
time: 26ms
memory: 10584kb

input:

832
100 10 5 100 1 202
100 10 5 100 1 203
100 10 5 100 2 202
100 10 5 100 2 203
100 10 5 101 1 202
100 10 5 101 1 203
100 10 5 101 2 202
100 10 5 101 2 203
100 10 6 100 1 202
100 10 6 100 1 203
100 10 6 100 2 202
100 10 6 100 2 203
100 10 6 101 1 202
100 10 6 101 1 203
100 10 6 101 2 202
100 10 6 10...

output:

215
220
220
225
200
210
200
210
216
222
220
226
200
210
200
210
216
221
222
227
200
211
200
211
217
223
222
228
200
211
200
211
217
222
222
227
202
212
202
212
218
224
222
228
202
212
202
212
218
223
224
229
202
213
202
213
219
225
224
230
202
213
202
213
3440
3460
3460
3480
3400
3420
3420
3440
3444...

result:

ok 832 lines

Test #17:

score: -100
Wrong Answer
time: 55ms
memory: 10636kb

input:

2077
1218 750 4547 3158 4790 4980
4658 2777 4476 4482 1752 4975
1045 1694 4881 2411 73 4959
2781 2874 1493 966 3793 4947
2360 790 4140 4466 3735 4998
2454 1865 3639 4833 1049 4907
1260 1653 2108 3628 2465 4960
4948 1970 4533 949 1206 4973
3594 40 3782 2816 2754 4993
4148 975 2656 1363 1460 4960
758 ...

output:

2436
9316
3135
16686
4720
4908
2520
29688
7188
16592
2274
1702
1029
2976
2994
9594
16095
8940
1830
8892
14208
26325
6400
1634
3336
7664
10809
1815
7882
5750
9016
32396
10521
8832
10584
10088
8784
23723
8120
11919
4205
6942
9118
27188
4584
14517
47709
36410
6920
6566
4260
9946
13704
20910
8421
30624
...

result:

wrong answer 848th lines differ - expected: '118654', found: '118864'