QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83821#2996. 字符串问题slime100 ✓2072ms283356kbC++145.5kb2023-03-03 16:28:562023-03-03 16:28:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 13ms
memory: 38804kb

input:

39
feyqwovxbehhhyykvnpmukgbaxtvurzvefkdodefqcefjeargabaccbawcaccbcbbbaacbfabbabaqacabaabbbbacczabcbabcbacacccapacabbccabaabaaacaaacabbcacbbbbbccbcabcccbbabbbacabbccaabababcabaaabbcbcbcabaccacaabaaaaaaaacbcacccbcbbbbaababcaccbbcabbcccbcccacabbcabacbcbbbaacabbabababcbcabcacbaccbcaaaaabbaacacbccacbacab...

output:

-1
-1
-1
190
-1
164
166
124
143
-1
-1
-1
77
-1
130
128
-1
93
-1
141
155
166
90
-1
126
140
157
147
172
211
173
125
-1
135
-1
-1
150
-1
94

result:

ok 39 lines

Test #2:

score: 10
Accepted
time: 580ms
memory: 165760kb

input:

30
glhfabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaabglhfabbaabbabaababbabaabbaababbaa...

output:

520
11636
8316
-1
396669
-1
350903
-1
15905
72960
36798
17488
42761
39434
26279
32797
-1
32042
-1
27408
19823
24985
32314
-1
37908
31169
22963
39115
28035
47216

result:

ok 30 lines

Test #3:

score: 10
Accepted
time: 622ms
memory: 165056kb

input:

29
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

-1
7400
11278
-1
-1
208692
474219
227871
33959
46213
44661
16603
32041
38509
31999
36344
16953
14347
44406
38540
16170
14572
15839
29668
25281
50172
-1
-1
-1

result:

ok 29 lines

Test #4:

score: 10
Accepted
time: 1430ms
memory: 233012kb

input:

10
hwjtltzilyfsusnhgiiocavujiaordjtgmtvfacaoiwrypgvtpcjddonbncqqwbxnoajiysnijzabynekoyknnlhvnfjtzcjmfmaknqprfuvtajlbgyqiybpohfvvtarjmuersynvppjrrdapgclodkbvzueeasqsyqhtbwmqauxjcqnsacpvnhsexsswvefricteedsenmlixgvozclwsvjeijvmwmlybjrlafknhdbgpirovdddrwkyiiwwarkpcbezbrjutwwporlbngviuhurixhqdlageggeauvz...

output:

-1
-1
-1
199914
199929
199873
-1
199905
-1
199957

result:

ok 10 lines

Test #5:

score: 10
Accepted
time: 1335ms
memory: 250428kb

input:

51
wwwgrmskhauxztuyflowbcqctyplrcbyqyqptvnsptwnyptlymjrlglmhevhpiazuryqespxskopjkadwcbxeidlvipouzfdpnbwafvkgxvlsqsekspqftipymojxlwgprreagzbeasigcjbudvnzsnvohnuplllsnyucexakvbxbmxodrcpdhhyawbolwxlyifppayhzzeckibvvlpogxqmucyuzcahvnvoskwinuuqkkwmqqqxfkorzsiwrripxkjvstxbxhmkwwwqyjqjqicphgajewwxqwrvticen...

output:

94331
104718
96829
106368
-1
7495
3097
-1
-1
-1
-1
369
-1
384
-1
-1
-1
-1
128
-1
353
-1
335
-1
-1
111
-1
176
-1
-1
242
-1
-1
-1
-1
311
-1
-1
302
-1
-1
-1
-1
-1
-1
315
171
-1
308
-1
-1

result:

ok 51 lines

Test #6:

score: 10
Accepted
time: 1366ms
memory: 252232kb

input:

44
ixhuitywihrcjeipcicrhkxxolouyjwnlcbgjqleiyxlrjsgupohhyvlmtaqesonoyrhsyulmtbegrqvtvsfxjnjlgjekqyaqzpfmwyouavubxmcxrzhjabaodkawfkajdsraxcptqsyleeymvfxqkdrjktonfezutfkkzfxcrtqolaahthrbulyjaffspdotvgdbjvennbintmrqnkjqndrilksjrakgkhcglfmanjplbhedebdmkgxolwrpydcsstptezgxrjgyirrtwxywwoyrghrztlpzkeprwhvm...

output:

110089
98880
100758
104230
-1
4378
4495
4898
-1
-1
-1
-1
282
263
196
-1
-1
-1
-1
421
283
303
224
-1
-1
-1
223
331
-1
-1
-1
181
336
-1
-1
-1
469
-1
252
-1
-1
-1
-1
355

result:

ok 44 lines

Test #7:

score: 10
Accepted
time: 1629ms
memory: 223304kb

input:

100
glhfabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabba...

output:

131080
213027672
200450529
201721754
203425350
59784340
62075296
59178758
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
55
-1
-1
107
15
-1
-1
-1
54
-1
-1
-1
-1
-1
-1
15
61
107
86
131
30
-1
-1
-1
-1
39
85
44
26
-1
-1
-1
26
-1
-1
35
110
28
-1
-1
-1
-1
16
-1
-1
-1
68
91
59
-1
-1
-1
-1
111
86
-1
-1
-1
85
-1...

result:

ok 100 lines

Test #8:

score: 10
Accepted
time: 1521ms
memory: 219440kb

input:

100
hggafwsdmxivpnfcjwubzgvaomzilopymnekzlqijbtgujdxpwowbkciohxtkjgmrodlbqsjfnxnynzexbndxukjegrfyiuvktvzxaidfvvgxqwhxxwroprmrtxmbhrulqzerqehjmxzthuirnwhuswqnhysgbjwrbadqraltvkkbbnkfdjyvwuvszcgooizqtjwkbzzosnoututkmeqbynrbbhbjliveufgbfjnwsucnopjdkcfxpcjoptbwgmordieneuaduynfxddisexmcnbinmeyeolobrmfdqz...

output:

-1
208905485
205523915
202863858
206244046
60152261
59695786
63478009
-1
-1
-1
-1
-1
-1
97
-1
-1
-1
25
10
-1
-1
-1
-1
-1
16
-1
112
-1
185
46
26
-1
-1
61
-1
-1
-1
-1
-1
142
-1
-1
-1
35
93
-1
55
-1
-1
71
46
-1
35
-1
-1
-1
10
36
-1
-1
-1
-1
-1
68
74
-1
-1
-1
-1
5
-1
-1
56
-1
-1
-1
-1
-1
-1
14
-1
-1
-1
...

result:

ok 100 lines

Test #9:

score: 10
Accepted
time: 1875ms
memory: 242232kb

input:

100
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

20000100000
62516258
58379078
203874157
200936649
650929
-1
1666983
96590
106367
136970
83485
-1
106132
98111
60799
93680
55617
1076
457
413
602
303
436
419
104
325
-1
494
202
-1
288
-1
429
600
324
286
370
390
477
272
627
495
1319
671
509
208
280
184
71
537
407
380
452
327
-1
773
205
247
-1
430
441
...

result:

ok 100 lines

Test #10:

score: 10
Accepted
time: 2072ms
memory: 283356kb

input:

100
boicmuspttnwpilgnszaafnuxghguuqaxdoeoispntpabpmhtozzqzzzmzzzzzzzzzzzrzzzzzzzzzzzzzzzzzzxzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzznzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

19570070095
56191677
57572613
201905229
201099444
689056
-1
-1
140456
94558
53299
112449
62781
74284
-1
-1
57230
-1
148
548
-1
666
651
-1
305
412
616
592
291
235
463
253
461
-1
621
168
-1
808
-1
560
134
354
215
88
226
548
169
570
663
302
-1
115
234
299
171
525
600
549
170
347
414
300
461
313
-1
442
...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed