QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#378759#8576. Symphony in c++ majorucup-team1005#ML 1480ms262108kbC++203.5kb2024-04-06 14:31:582024-04-06 14:31:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 8ms
memory: 261656kb

input:

8 10
eldorado
? 1 3
? 1 8
# 6 7 it
? 1 8
# 3 3 t
? 1 8
# 1 8 streamer
? 1 8
# 1 8 symphony
? 1 8

output:

3
4
6
6
6
6

result:

ok 6 numbers

Test #2:

score: 0
Accepted
time: 1404ms
memory: 262108kb

input:

500000 300000
rfsraltzititrofomloldlaefikdemaddaafmimiioiuaueiaedifacmxamttiiitaaltiiireexeafsaaraedosotlaioootaiosizlifiioadhnxiofsasaflleaiisstaotdlliulilxatrpdaraaraaoiaeoooiumwuumarlifesroloistedoaaieolisaoatamsredorrfiifaaidfeassfioaiasmstomasallsftsrfaiiirteomaeiirefldmlaoaofrxlaeuilioirafotoa...

output:

122151
133262
96922
55212
91547
148150
73505
4097
300798
54037
56741
265921
127608
170707
79236
209443
84732
83219
184042
77169
94062
172946
202750
97798
92449
67243
171524
145772
53856
165837
104913
179165
35068
55893
17287
74510
319355
244761
118810
162815
175172
136079
43107
237581
112894
48610
1...

result:

ok 259513 numbers

Test #3:

score: 0
Accepted
time: 1321ms
memory: 262012kb

input:

500000 300000
lotlidiecoletemimaaoaieraollaootuletelsaoasaooouafffomoiiadlaaoialmiaohrteruirstasoiroeoiadeaitimliimlaoiuaeslfosyfisiiimooottmfamirdoliaalmmeimmiodaouafyomaadoioroafeeuerommodsdleiofatiumuaososoeeldemimoeealoifioaooieiolloiqltfeacsmstjliliteddvdtiooeltaaddorieeatdriseotiooaooffmaldtti...

output:

47592
52818
241877
176764
27498
150113
14836
51092
9558
225258
201572
264107
109170
71964
84756
115631
110279
135193
106534
133703
185514
74911
95984
4681
69107
147124
166099
99175
108179
28042
208879
175112
16110
59221
84912
152966
78464
112642
31867
10884
116218
225278
141566
269148
65227
17079
18...

result:

ok 252049 numbers

Test #4:

score: 0
Accepted
time: 1379ms
memory: 262064kb

input:

500000 300000
iaeoeoieoeaioaeeoeeooeeiiaiiodaeikaaaaoiiaioieioaiaoiaiaoaafaeoeeeaeiieieaaoaaaooeoaiooiaeaiieooiooeiioeieaoeaieieaeieeiaaaieiooeoaiaeeeooiaaeoeaioaaeeoeaeoaieeeeoiaiaaoeoeaoaeaoaaaieaieaaiaaieoioiiioaiiioooiaaeaoioeiaeiieioeeaiiaoeoaeoaeeaeaooiaeoeeeaeeieeeoaieeioeeeieboeiooieooeaiaai...

output:

155664
273837
139845
16745
209259
88451
160434
169710
329924
215057
243772
4084
207120
80591
7576
371931
44628
68519
237892
115478
13174
263235
81210
25739
190523
95252
265302
287547
272144
65242
68551
417351
256956
67992
134544
58333
37243
335458
229829
258731
259804
111703
163824
818
334444
154340...

result:

ok 259639 numbers

Test #5:

score: 0
Accepted
time: 1386ms
memory: 262020kb

input:

500000 300000
mfldmtsdrrrdsmdsmssmddtsfstsfssrlmlrmslorsdtfffmlffflrftddfrttrtelftdtrsrstsrmddseftlmrrtfmlfmmrfdrsmmmtstmfdtmddlmlrldsfdmfstrfifrmtmsmtllrfstmdlttldfllfsmtdrlfrrfffdrmtsforddrtssldmsmslffftssrdlcdmrdrrlmlfrlmrffddmrddrsmdtrltmdrmdltmsssltttdsfdsdtrmmdrtmrstorrffmrftfssmsdmllltrrsflrf...

output:

170615
247842
73399
454147
266865
54003
27279
65510
174723
184626
159949
23029
203052
169738
278963
82792
346300
15256
9231
33253
39362
189106
58738
24996
20987
158695
116975
45334
178698
213764
214955
31665
21659
24427
125495
59410
275000
63449
113696
57040
388491
419930
333741
370485
149329
163203...

result:

ok 259629 numbers

Test #6:

score: 0
Accepted
time: 1291ms
memory: 262024kb

input:

500000 300000
czpyuxvyjqnxxgvjkgcucuqhwovqgubbkwvwwnvgcybzzuqbgxvzxqvqbnkzguwcncnyzxxkunchbnubbvbqyxzwbwvgunbbvgppkbzgjwyhqhlhpxqvbwxywhbxnkyxuhvhgckuvkyyqkghhkqgzjpnpuwqwpbxkbjqcycyqvgukpjqcwbbucwwbuzqywqwbzpufxcwqyqpgnqycbhqwxpyhjjpbyuhkugunywzpxwjvxjnpkyqyukycuhbqcbvvgjbcxqpzbhwpxvpgkzvkbcxywqzuc...

output:

252806
247101
133249
312511
114341
73663
40589
19639
408077
146060
263530
16361
112488
256479
43210
14991
39252
125475
173653
413028
52929
298538
119913
49669
170516
178708
96160
69247
191681
442952
185294
368877
36983
97493
303846
160379
368975
160873
237029
166745
270367
43050
63804
130632
215542
...

result:

ok 259840 numbers

Test #7:

score: 0
Accepted
time: 1480ms
memory: 262024kb

input:

500000 300000
amsdoiofrraaioimifstsiyiimreorktolsiiiduofiatidlldliaoifmfdaeaesopeuriilaoafooefulietmoadrafoidsmalrlaeiftfmoaddrsflsntmisiaitmiftdearlsifsdmfmfomiriaoilidoaeftieoaietlomftqeioleoaoieemddltiifwaroaosidoomoismslaamrmemesftomiaomofdkaisitariidmsiielatmdaaigdrmomiagomyitoaafodsralotoorefa...

output:

223011
244099
31549
75130
154921
44925
209959
101993
282634
127723
99737
50446
81230
116844
78698
97497
110433
80488
165468
22675
262802
157063
219488
127253
147503
59704
53826
293093
288620
61987
45835
155711
23954
242875
247121
234463
49947
255051
119167
284400
306083
256546
155392
242605
4545
211...

result:

ok 299993 numbers

Test #8:

score: -100
Memory Limit Exceeded

input:

500000 300000
sframtdrsmoosriamldrfmommrilliarsimrratmaersltllitseadkdasoeirreiaaoaiesesaooaoaoddsooioioalftseadifaeotmfddaarassldotaoftldsdrsoitaoaioapilfarsrftivtsrhxlirmlytrdswmiismrfctmaormiooolilafdlforraaisftttellmasiloimrserotianslotmooevfiaoafdaraotisoirodomaerrmftaidaaafatoaaomimfoiaoloeaal...

output:

277612
157353
76818
252490
143568
48930
33261
264593
13910
29655
244387
33023
251154
39474
140414
77265
204309
130191
165359
176962
25055
142229
291636
211276
33126
114028
129436
212380
65758
179755
124526
93940
163685
50456
246610
198842
17334
131827
246450
44098
192458
109098
182124
20026
217819
6...

result: