QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#483337#7364. 回文ZhaoZiLong0 680ms215860kbC++201.2kb2024-07-18 15:55:482024-07-18 15:55:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 6060kb

input:

kmojliclywcyevunhgfnumdzvncnmzbkxjsrkzlyguvjwqmyamvwvidqvfcwnkoolupcrjhynrnlmncqwntqaqtnwqcnmlnrnyhjrcpulooknwcfvqdivwvmaymqwjvugylzkrsmlabbmjltopjasklgawfdbosdlmwahaygutogtvoenkxddmehwokwybkpireouiqqlsfbuqslxjlusnwkzgadxtagewjlchtcezugeguzecthcljwegatxdagzkwnsuljxlsqwlkpvoajknflirxpqcxmyhcgimr
293
...

output:

101
74
82
63
3
2
101
3
3
3
38
3
1
40
3
22
2
1
63
44
1
63
30
1
101
82
3
40
12
63
63
3
2
2
3
1
1
1
1
3
1
63
22
14
14
101
2
30
63
70
101
48
36
2
101
101
3
70
1
63
2
30
84
1
1
63
101
2
3
3
63
3
62
64
63
3
101
63
40
3
3
3
72
6
1
24
63
36
28
16
1
2
3
2
3
101
1
101
1
3
3
63
1
1
30
76
101
88
30
40
101
14
58...

result:

wrong answer 2nd lines differ - expected: '75', found: '74'

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 8168kb

input:

vesjaxxsumewkbahmdfohuzggavsskdplrjqgonwnvtqhqdvxwdvbbvdwxtostthmmzqckepyglcysblxcbcxlbsyclgylyqtthedcqvuoghiyfekmaycoiiumirusuzosmaijqpgrwgcnxtojzyxpnjzyzjnpxyzjotxncgwrgpqjiamsozusurimuiiocyamkefyihgouvpxqdkybihtpmfqfzlwzylmtpgzvzhcrygruvzztttbofobtttzzvurgyrchzvzgptmlyzwlzfqfmpthibykdqxpegpbglnzk...

output:

80
101
70
48
40
58
101
80
87
101
3
21
101
21
101
101
42
101
58
62
22
18
12
101
24
101
21
74
101
26
2
54
101
26
10
22
86
21
22
38
66
1
3
21
101
21
101
3
3
1
54
10
50
6
101
20
34
2
60
40
14
76
21
10
101
88
101
101
1
3
101
3
101
2
101
101
101
46
3
0
3
101
3
58
3
22
101
1
21
101
101
101
0
18
101
1
3
101...

result:

wrong answer 1st lines differ - expected: '81', found: '80'

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 10420kb

input:

anuahqplebjsacgumhxqolpgrxqcqzlhxrdthilfysevwdukoaksysixdggqzfjifopilugpdlrihgriaedgcjljuzdyqnyplpovdlvsitjcizogkcjkipzwnbdugpkkcghcpcioksqbnvfeggpzdfcxddppanaqnjdrtczcurvgdhnhuuxmktusuykwqrpjgauznlzcgxahiumnbeendsvdoflmuqaylnmsxgfdelfljnvlkeftwsvqhrxpnyjfwohdomcrqcxhvfvksfkjaihqiksfwdlopmwyhagelhju...

output:

5
1272
593
116
5
5
1666
5
1666
955
1666
5
1437
1666
1666
4
543
257
927
1666
3
5
3
669
5
1666
3
795
1666
4
1666
5
1666
3
1272
1666
745
1272
1666
861
435
589
288
1666
763
575
4
1505
5
1272
1325
637
5
1666
1272
5
3
1666
1063
605
163
751
1272
5
4
1666
803
1666
5
1272
3
5
1666
3
1666
79
5
4
5
1272
297
16...

result:

wrong answer 3rd lines differ - expected: '594', found: '593'

Test #4:

score: 0
Wrong Answer
time: 3ms
memory: 9280kb

input:

mfvckuykhckfuqmontrmfcfttxsqnaenocsvdxafpwkpftcwtqwgtsihvaquaudwebxmdijlcrenvivcwbwccmjyxmgmuhdkesgmkcbasghbbwlutayipathsvawcdkkmbdkdiurfsytgjasgsrebgtyjlclkycanipjqlpvxtusmetaxpkwvgilcqnspilinqanxofgxjwqzphraildqdewozyndxbekdknrvbdjgwwvulxfdaqpsziqmrtvlzcabcnouwilynyrbzktbfsfaepmyfjbwuuhvxihiyjicox...

output:

3
1192
698
127
856
3
698
902
5
1665
698
698
92
388
698
625
698
3
3
1665
4
3
1238
434
764
1665
75
536
1665
5
698
5
3
177
625
698
392
698
698
698
3
105
315
1032
650
625
712
1665
698
400
698
1304
1030
5
1096
3
1350
625
118
1392
698
3
625
5
193
698
698
698
320
625
3
420
698
3
698
698
746
1665
884
5
26
6...

result:

wrong answer 2nd lines differ - expected: '1193', found: '1192'

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 9824kb

input:

piliegnejflgljiidtifmgpcwttkfqexweatzcfecoyuyzpyayapbnenfvjbimyuttkjimtuzpoyhfugdivlxyebblrvgkwowzftkjxjopepbcdkcrioyjjscqnvycmaicuijcdkzizgtyskrkgyflmfvtntfnuikjqyblajyhygopbgpmxruwkkkuqszuuxhorfzsyzgpnxcuifrlvieeeavsrrgthetamjemxekupmclxitasqoqrokhtvomrjlksomhagdxyarqqoqhzuiqlhinhizujhkziqnabxnguz...

output:

4
96
1667
3
1667
1
791
791
602
3
3
1406
96
3
4
1667
582
4
318
756
1667
1318
791
562
724
1667
791
900
1667
1220
791
182
1667
1667
1667
1562
5
291
96
178
118
3
1044
4
1248
844
1667
1667
1667
752
96
8
1667
182
291
94
182
791
204
96
182
262
1667
1667
526
291
1444
1667
1667
1667
1
1667
791
280
291
1667
7...

result:

wrong answer 9th lines differ - expected: '603', found: '602'

Test #6:

score: 0
Wrong Answer
time: 3ms
memory: 10748kb

input:

syucmgkigdlpevdxsshewqirqqcdljqjgaugkvzplmidhvwxeuhuzmzscczopnaviqlgnavpezpquyupilccvjsqfxjmpcsefwerqlgfitezkaffvdwlyhilzflbjecsikzvyecgpjkucqukkrauolgzffotznjxmbvcmsuzrwstehxgqzygfjfybzmyuoxvshelxlpzfxwalgxzlwvhsbaikzsgjkzvzjmlbhgubzcunksleqdgulmysfjashpwjymspmtoxiwaiimcbdqbbudlwbptrusyumtszzwbpmgg...

output:

495
495
3
7
741
741
1541
1541
495
741
1230
186
7
5
741
5
741
1220
741
550
495
1541
495
741
1541
1050
741
495
1228
741
495
1541
1080
688
1541
276
1258
4
384
4
495
4
495
741
4
804
7
1092
546
741
4
842
741
741
741
7
1402
7
5
450
7
7
495
741
741
370
4
7
398
741
741
280
495
495
3
1541
4
3
4
741
576
4
3
1...

result:

wrong answer 11th lines differ - expected: '1231', found: '1230'

Test #7:

score: 0
Wrong Answer
time: 17ms
memory: 29564kb

input:

acfojkhxkvgskemxswoddjrxylgurlpfkpkhssmaqavonpjkhozprsffoslcluvabbpmynaucitshgbfrhilbxuyvdeilculqepksnsosdruqnzkrismdmpypuwigcwmlrynryysiazxaikbsvsxhwobtxuriupwxfmotimszqrfqqcfcukzmghijkeibpndndbodgzpuzqyznrjpzykhzmgrcxhexbsjmanfybqvojzbwpyttmrneejcpdncuzcjdmgxevqmbltpkotcywnfglumjpldxytuaahbgdcnges...

output:

5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
5768
...

result:

wrong answer 1st lines differ - expected: '5769', found: '5768'

Test #8:

score: 0
Wrong Answer
time: 27ms
memory: 31544kb

input:

aaxvxlcltrlilgqvklenrxdcqzouiizataquwymdxtkzyenpdefayzmwugrysrxpwznxpesvcglwqokoajclkeiadelfupalmwhpceexzuzethlcuidgwekhrzvacntvtfmlqptdszlphlewmmwzwcdmjwpefntdlcdrrhejjhakjpkglpbyooqkdhkzrswpmlseuqobyzrquhtdqlbfegkolncwaqoyxrmelvysykpsschwcghzecwneoklalscjqgxoqilbisabofjebktbbzomfupjqcupolpowbtazlq...

output:

3296
12041
5
7
11676
1436
12041
5
86
14908
138
5
9
12041
15138
1156
5
12041
14912
12742
16665
7
16665
12041
5
3
7
5400
7
16665
16665
12041
8958
12041
5
5
11758
12041
7312
16665
12041
16665
4494
2954
11104
16665
7854
8510
12041
2954
1350
14138
2954
12041
16665
5
6632
4970
13326
7
2954
16472
5
16665
1...

result:

wrong answer 1st lines differ - expected: '3297', found: '3296'

Test #9:

score: 0
Wrong Answer
time: 27ms
memory: 29420kb

input:

bydjourdrgeaxhanforissxtcbtoqpcslsmsuipplgpyitlspqplflboqptqnahqwzchrjhifexlgnmbsehwkwjzojfwvhmmuatwkozdvqwxcorhmhirdgzkztmzegneseslmxuuoifnakuwsycrcgkzpnspyvvfrcbutiknycrvsqgglsvritrrmilxhhrtclxzslysblwsimexxkodgizphdapogypdudlssdispudgxhnfidsyivbvgamsujzzelovuilauyzmstgpgqipmhnbqskffrjjfnzhotbnlzk...

output:

10654
5
9090
6
16665
7
9294
12693
6
6
16665
16665
6
5008
2037
750
12693
12693
2186
7340
6
16665
8430
12693
3686
7
12693
16665
7470
7
7
9286
12693
12693
4786
4786
12693
16665
4786
16665
3184
16665
10380
6
4786
12693
12278
2474
7
5
12693
3922
12693
6
4786
886
5424
5
6
16665
12693
11702
4680
4786
16665...

result:

wrong answer 1st lines differ - expected: '10655', found: '10654'

Test #10:

score: 0
Wrong Answer
time: 29ms
memory: 27240kb

input:

hsfcfbhlqerzkkwsyslalaslnahwpqqhkflavreluedfhcprzyfaipqyzaupdypfannefsdhimxnxoxbaqfktuqcgkjhskocyzeyyvbimybpixxgygccyqjcysqsylrhqrblfqrvheoolimkvqejywdjeuzbhhqdafuybfkarmacprqkqadbrfsrehhthtginqqhwdukdzjfrtgyepxmrnpmrokehpzxtnbigekjlvwkeofqrayiodxshtdbiisdyrboacqktisjtdkfuzmuzrmhgdqewukdcufjrqtskxjk...

output:

10615
8341
978
13843
6129
152
978
978
7181
7
9919
8060
5
152
12437
7
11893
5
978
152
5509
6383
5
7170
16664
5
1355
978
5
16664
13081
978
7866
6077
5
5
5
16664
152
11515
5
11355
16664
7
5
14119
13921
2549
2262
5
3862
978
8341
14291
7
1144
4
5
6339
8341
4
5
13621
5
16664
8341
152
16664
3185
978
5
5
11...

result:

wrong answer 1st lines differ - expected: '10616', found: '10615'

Test #11:

score: 0
Wrong Answer
time: 30ms
memory: 29624kb

input:

uqgylihdxuhtoedyzgzsnwjfaxxdrbadecbkxhbwvzztggrcvorlbgdobvnlswamdnehzepqdqeajrhfwkavapzqvbivztnsqtqnjxjejpgokdyyfxrsuxblzpftwbdkxvrczcerpjadlkqxieyslegpwgwuvzixavdbbtzcvuvnyjpjqvzfzcdnypukljhlspedodczoamlqokdljxdwtonfavmwxemmwicpfbcxfriiqymwizfjghzskzsxyzpluyjwvwyjjzjdddhoflaizakyjzmjmucfxrowqmiiiqp...

output:

5369
6
6
3
10493
14089
3
5
9803
2461
5
17758
5
17758
17758
17758
6686
12529
17758
16619
5
5
13893
299
5
17758
17758
17758
12581
15745
6686
5
1633
17758
1261
12771
5
5
5
977
17758
4
5
17758
491
12485
17758
5
7245
5
5
17758
5
5
1785
5
5
5
2527
17758
5
2057
5723
387
5
839
17758
6686
5
5
5
17758
17758
1...

result:

wrong answer 1st lines differ - expected: '5370', found: '5369'

Test #12:

score: 0
Wrong Answer
time: 31ms
memory: 29712kb

input:

senpfhuxjnjduvkehgshpecrhtmrsjqaeosajatkkrtdwodqmsfmvoxyipcqjddyxbrroqpkhujinzclqudwqhehxvbpsdqnxzhkjoipcqkqddetmordwjpsuqzoerllzmzbwuorrbmwbzjoycmpeyotbhcwdxygeeqgxbwcqlrywyruatywmmvgckvaowvjpeegwhzarnabqopxpkbtrkhyqauthnzkdmmfdxxfawxygtuzmmbdzhxhstkgtjgzaprjstmssfpczmyyqryfxycoimzobpbihnnmsocfegkc...

output:

5
7
8595
12103
5
7
7
5
7
5
13533
7567
2649
5
5
22961
7
4
5
8621
7
5
11325
5
5
7
5
3641
16367
5
7
7633
15867
7
10215
5
7
7
7
7
7
11441
5
383
23389
5
22919
24996
5
7
6481
8235
11559
5
7
7
6
7
6441
7
6
7
5
7
4279
7
5
683
13155
5
3001
5
7
7
7
14063
5
5
5
5417
5
14085
2899
5
5
7
7113
5
19687
8097
5
5
192...

result:

wrong answer 3rd lines differ - expected: '8596', found: '8595'

Test #13:

score: 0
Wrong Answer
time: 30ms
memory: 32108kb

input:

nwsiebavjnlnjifvaylnhfzybafysczcmrzplqehpgkavzaddjbltazcotufbdzxetxrwhshlxgoqdvbwrkeqkhsbujudbcjhahwkbluvnvdvdxnwocvdkjilwcziqdivzvdlbfwzdenmqlienvoqveubtdoszndqutfsguooniomoyblyxteyhpwommzvnumpwmzqafvfgmnokjwwnkdofoikamvlrxrfkvmrxmsrknmojvaumkrsrlgnpriipbnsbqvglegyhjdefpjngwtbknuivlyftjlsxgffnsjvib...

output:

5
2502
5830
2502
10753
2502
10753
759
9946
3989
2502
2502
4986
2502
10753
3722
10753
3488
759
7
10753
5
5830
5830
7
5
5830
7516
7
5830
2502
5
2427
10753
10753
10753
2502
10753
10753
2502
832
7298
5
6370
2502
5
10753
10753
5
2
5830
5
10753
6890
10753
5
7
5830
10753
10753
5480
5
2502
3013
8618
2502
25...

result:

wrong answer 9th lines differ - expected: '9947', found: '9946'

Test #14:

score: 0
Wrong Answer
time: 31ms
memory: 27116kb

input:

uoqxubtwiuvrweemnisntsggdzuataqgegovblspuctnszgscxridxjlgibfbtdetqrhkfzzvbkbufeisycazjudefsyvgraenfjynszhdjtzidepogsvltustouvnviyrdsncubobnlkruzcsxsabwayfldakyslzfprixpbgpzlfneokxjtnmgtwipkddbmmeahowhndbnuymxryrkgolobkenugcpyfcelqpnpwwphnufpjcxwjyxlcsutfogqlepvyfcjohvhqivjefwtkwubjgtlsabqnpdpixgnrvw...

output:

5
5
1761
5
5271
1428
104
6189
3087
3087
6145
5
3087
3087
3087
4420
3087
1612
5
5
5
4
5
3087
3087
6266
5271
5271
3087
5271
3256
104
5
104
1364
5
3087
3087
5
3087
7
3087
4403
2088
15
3087
3087
3087
5
5271
6123
5
5
5271
3087
3087
3087
5271
5
4
5271
5
5271
3087
3087
4668
4
3087
1738
4
104
2088
3720
3087...

result:

wrong answer 3rd lines differ - expected: '1762', found: '1761'

Test #15:

score: 0
Wrong Answer
time: 670ms
memory: 215856kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaakkeiauuzvxheynhjstrlmdjuyadlukikotjzhqkfxlyabcfwkdyqkgsrkeqcpingbwuhlvlqcwrnotohwdcteumlrepoccfdfznrdltjbjkjzqkdiglyqxwbukxvlivpbhdtzdxsiaqyoqsykspneectkcrlupikmvnqqtbvicmjgwzonahfpytentjnwqunjlpalkwpcskwlqcarzzlktnklalcmplozonpmfpysuyqviwslsfhnzcbplzhyhs...

output:

6414
87364
63378
101786
32697
51102
112675
68004
32697
15238
112675
112675
113200
112675
32697
6
131991
112675
131991
131991
112675
81802
16619
112675
7920
32697
44194
9
23035
7
7
32291
68004
112675
68004
131991
131991
78274
131991
7
6
112675
53842
112675
112675
112675
32697
32697
89748
22390
131991...

result:

wrong answer 1st lines differ - expected: '6415', found: '6414'

Test #16:

score: 0
Wrong Answer
time: 680ms
memory: 215680kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaytvhrajhtxhttnnlmeqimzzsjscccivbyritmiznnvgksdehrtmiwacnbixkxnjytuzimzssogvxaemlcpkdtimzfxqreghsbnsqpkwcfepbisgnmispquhyzeqapvpjdfjelclvezqsdjxndhuwxloghiljexxirocvfcpgrilpxspmzjkvhyifkptzguxohzyyjuxqahbblayluiktzmrsgrhthdypkigvjqngfuwkchfepqfvhyuyunfrhluvcdyhvbpktdfoyy...

output:

1180
166667
37260
91053
161106
60810
26966
166667
91053
134750
5
7
92132
7
25521
5886
91053
91053
91053
9451
1808
8
8
138550
91053
7
9451
26966
109626
8
8169
91053
26966
8
139410
91053
26966
112668
26976
95388
4480
12705
7
7
166667
91053
91053
141686
7
136178
9451
7
7
15757
237
19318
1180
46692
1666...

result:

wrong answer 3rd lines differ - expected: '37261', found: '37260'

Test #17:

score: 0
Wrong Answer
time: 642ms
memory: 215860kb

input:

aaaazkvsgnabokhungreeglngwrtynocgzehwlqgkiiiqdloxdezdcdbhriugyqfqhhaproemijuhymtacrerxmwdzzputjzucaygdskcwpvxdvuafnpfttarbksdowftsieylqlmpcvyrvhtdorechiduhgxkicaicbrcploefuuzmucorweejnscoepoijalirxzxrxbkksvuimwavmhxhhwndfkwocguaojzgtpxwtjmlrkbpbwvjtcilnyjjkmymvwaylhgmobosditopkpmmsawqlricifwcnwvxqac...

output:

7
108750
4
108750
25987
1744
45889
157572
102271
24331
29725
46689
84931
97702
69075
10619
24873
7
1744
7
88257
108750
8
12187
6
157572
65203
63343
20775
63339
81075
1744
33463
108750
9
118777
4649
8
8
133527
8
132559
66663
13253
108750
157572
7
137209
140693
117625
79787
77817
105377
97702
7
97702
...

result:

wrong answer 5th lines differ - expected: '25988', found: '25987'

Test #18:

score: 0
Wrong Answer
time: 642ms
memory: 215820kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaebhhrvkfkvewwgcwzupqagltrbvbpsmrzhqqrzpphdatdovtqcskottjjaijncilycjoqvhjbvaorrczwefumogmkipliwrjgjcmcksniyjpowbzpezlmkkiivhadolbahzjlelwurmdhfktndmcqndtbimufcsilykijsbmlqrxlfkimnzghkxgtqgznzgcgmrkygvzbdizbraghkncugpszudehqyuhkywdzdbitixbamapwgzbzknwypluul...

output:

166667
166667
7
34768
7
166667
24818
76848
166667
46448
48104
108560
4533
86702
46252
149296
7
7
68286
27048
166667
44129
166667
6
112090
64754
166667
7
7
162108
44129
7
32986
146664
166667
5
7
7
142776
7
4533
47362
7
7
7
163332
161802
7
52176
166667
73870
119292
166667
7
35454
7
22300
7
30598
67516...

result:

wrong answer 4th lines differ - expected: '34769', found: '34768'

Test #19:

score: 0
Wrong Answer
time: 650ms
memory: 215824kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalvgbspddxrtwkccxskalmiaahvuaaevjkzxskmumnesqsjfqlgkanmmdinkbiabnrmvocequrnicjqzdatwwdzpgyoumwymnsjnklvbjrswytpqejlgxcmoaqqvpihlghjrsyvcoxhvprkfusafjsdrgopnfufkoopyqetppxuciqcwjxldgtwcthdepfcxdvrrhxcxdmsjnukgpdgkknnwzwmtavzvynhsapujivwmjlsaybeuaftemhzpmuexavqmhvpfou...

output:

21966
106289
111777
8
132222
34379
30545
138936
30545
47964
61240
165946
63748
99507
13660
6
166667
30545
166667
6313
158616
7
151112
166667
132222
132222
7
96225
5
5
30545
132454
30977
132222
6
166667
28294
132540
86885
30545
8
7
46687
8
166667
30545
30545
113060
30545
166667
13696
7
7
132222
42145...

result:

wrong answer 1st lines differ - expected: '21967', found: '21966'

Test #20:

score: 0
Wrong Answer
time: 675ms
memory: 215800kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaairvzomrstpfklvpyiboqxtnqbjazhstswwhmrdgbzsstvkrtencmmeqjfclkztnlsrrghcfrfrivxfrrpnwehishsneqljlmqwkugitnkuotmncikpvxzvgxcvdppekdbomsvqupgpjdcowzqfoxcivupvucxstsjlrlylvlzmqcxtqdwztpxmzetubgxllckejlkwjytrvdwmimdencuffcdifrllsoihxnbhoyy...

output:

7
5
7
133041
6060
55837
133041
55837
7
55837
61640
53008
5
30552
133041
133041
115560
133041
132636
7
133041
55837
44822
1541
133041
133041
1550
6
1541
64616
33700
5
4012
132118
6
133041
1541
44822
44822
36610
55837
133041
90090
133041
1541
1541
1541
9
2510
133041
133041
82998
6
133041
7
55837
5
133...

result:

wrong answer 5th lines differ - expected: '6061', found: '6060'