QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#212385#7531. Hacking the ProjectwaifuSenpai#WA 5ms3868kbC++17763b2023-10-13 15:29:362023-10-13 15:29:37

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3624kb

input:

1
4
1 aaa
2 aaa aba
0
1 cxyxy
2 cxyxy czzzz

output:

query a 1
query a 3
query b 1
query c 1
query c 2
answer aaa aba cxyxy czzzz

result:

ok Ok in 8 k

Test #2:

score: 0
Accepted
time: 4ms
memory: 3692kb

input:

5
1000
1 a
3 a aajm aavfegkci
11 a aajm aavfegkci aavj abjc abnxwsy abzbr acvd adrvb af afbxpytbe
30 a aajm aavfegkci aavj abjc abnxwsy abzbr acvd adrvb af afbxpytbe afl afwsjfu aigwxskrks aimpdesf ajbq alsqmc alswxsm anmkcljvyy anwwyoosx aofpxw aoovrejhpb apunxuyp apyhw aqmqhmbkai aqqgzwyf ascsxa a...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
quer...

result:

ok Ok in 3019 k

Test #3:

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

input:

5
1000
1 acbd
3 acbd acgts acvdflmn
11 acbd acgts acvdflmn admkf aehzdl aepocjmc afaeqq afbqeawd afjb agrfnq ahrhdp
30 acbd acgts acvdflmn admkf aehzdl aepocjmc afaeqq afbqeawd afjb agrfnq ahrhdp aidg aimp aiqana ajb akwm alilyzhysa alkb amljwn amzkptt anbet anmkclj aoapjzkzn aptmpvlcny aq aqjdoi ar...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
quer...

result:

ok Ok in 3010 k

Test #4:

score: 0
Accepted
time: 0ms
memory: 3684kb

input:

5
1000
1 aaxqvzig
3 aaxqvzig abbaep actfxtivf
11 aaxqvzig abbaep actfxtivf adt adtl aer afa agfev agluptr ahci ahdfhfr
30 aaxqvzig abbaep actfxtivf adt adtl aer afa agfev agluptr ahci ahdfhfr aiympo ajjcvjb ajkux akq alnoiph alsq alxz amtx anbiypuziq anfvodtiok aonq aoovre aopvef aorppyffun aovq aqs...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
query f 30
quer...

result:

ok Ok in 3013 k

Test #5:

score: 0
Accepted
time: 0ms
memory: 3616kb

input:

5
1000
1 a
3 a aalilyz ac
11 a aalilyz ac acb adcogtni adroq aepocjm aevi af aguwuvh agxaaac
30 a aalilyz ac acb adcogtni adroq aepocjm aevi af aguwuvh agxaaac ahuwl ahxy aiafmv aisyr ajuqw ake amdjxnsmk amgcifdlj amvprza amzt anaztksn ane anfvodti aozdd appruokyw aqgvfd aqu aqzqif as
36 a aalilyz a...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
quer...

result:

ok Ok in 3009 k

Test #6:

score: 0
Accepted
time: 4ms
memory: 3616kb

input:

5
1000
1 abvmqw
3 abvmqw acgt acoogjx
11 abvmqw acgt acoogjx adrvbejoo ae aeqv af afb afdktn aggcwzid aibg
30 abvmqw acgt acoogjx adrvbejoo ae aeqv af afb afdktn aggcwzid aibg aimgcusle aiymp ajuqm al alk amklrwl amncorb anaztksn anelj aozddwx apyhw aqd atxbu aupv avpqato awcdivtl awd awmhiji awyque...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
quer...

result:

ok Ok in 2997 k

Test #7:

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

input:

5
1000
1 aavfeg
3 aavfeg abogkwk abpwnr
11 aavfeg abogkwk abpwnr abqlngdsc acbdx adgeed aerm aevi aexjyu afascs afbqeawdi
30 aavfeg abogkwk abpwnr abqlngdsc acbdx adgeed aerm aevi aexjyu afascs afbqeawdi afkxyfmcn afvmu agmm agwdwxsu aigw aimg aitmxp aiy aju ambz amnc anf ann anwp aofvrvc aoq apjft ...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
quer...

result:

ok Ok in 2945 k

Test #8:

score: 0
Accepted
time: 0ms
memory: 3836kb

input:

5
1000
1 a
3 a aaac aac
11 a aaac aac aadrvbej aay abwun abz acb acn acqx actyaovq
30 a aaac aac aadrvbej aay abwun abz acb acn acqx actyaovq acvdf adgeedjk af ahnzdw ahxylcgn aidvvi aisyr aivtmpqz al an anbiypuz apjzkzn aptmp aqclps aqe aqsa as ashcj asin
49 a aaac aac aadrvbej aay abwun abz acb ac...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
quer...

result:

ok Ok in 2938 k

Test #9:

score: 0
Accepted
time: 2ms
memory: 3832kb

input:

5
1000
1 aaciqgnc
3 aaciqgnc aawtbc aayipsoj
11 aaciqgnc aawtbc aayipsoj abqlngds acf acqrs actad adrv adxm aexjy agnn
30 aaciqgnc aawtbc aayipsoj abqlngds acf acqrs actad adrv adxm aexjy agnn agwdwxs ai aid aif aijelh aj ajrnwj akevsjo all alswxsm amdxa amklrw anow anw aoapj ap apt aslquo asz
43 aa...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query f 1
query f 3
query f 11
query f 30
quer...

result:

ok Ok in 3011 k

Test #10:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

5
1000
1 aagxaa
3 aagxaa abjc acg
11 aagxaa abjc acg aciqg acnhpzn acvdfl adtninwc aehz aek aeqqojyp aevibe
30 aagxaa abjc acg aciqg acnhpzn acvdfl adtninwc aehz aek aeqqojyp aevibe aexjyulg afbxp afl aguwuv ahcipz aijelhy aixws ajuldlwr amk amn andfq anokvb anw aoc aozd apbwd apqmilw aquud asi
39 a...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72
query f 1
query f 3
query f 11
quer...

result:

ok Ok in 2941 k

Test #11:

score: 0
Accepted
time: 2ms
memory: 3868kb

input:

5
1000
1 aadbd
3 aadbd aadbg aaemf
11 aadbd aadbg aaemf aaepzchvxg aapihz aaqjqvgx aazfccep aaznfe abakwq abbwcmdh abdhdofrs
30 aadbd aadbg aaemf aaepzchvxg aapihz aaqjqvgx aazfccep aaznfe abakwq abbwcmdh abdhdofrs abdjlpez abeaa abezgbabhd abgbpa abhkmvmahb abhtaev abicf absaa acaeaej acbphie acfkb...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72...

result:

ok Ok in 2744 k

Test #12:

score: 0
Accepted
time: 4ms
memory: 3616kb

input:

5
1000
1 aabwpote
3 aabwpote aaclnnc aadjkgs
11 aabwpote aaclnnc aadjkgs aaemccd aapihztr aavaacml aazdodzr abbaeuada abbriejjk abbzfui abcdocbn
30 aabwpote aaclnnc aadjkgs aaemccd aapihztr aavaacml aazdodzr abbaeuada abbriejjk abbzfui abcdocbn abicfcs abjcdznj abkcmdgj abrlkfgb abuesdgjja abzegbl a...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query e 1
query e 3
query e 11
query e 30
query e 72...

result:

ok Ok in 2780 k

Test #13:

score: 0
Accepted
time: 3ms
memory: 3692kb

input:

5
1000
1 aaaac
3 aaaac aabcfn aacafh
11 aaaac aabcfn aacafh aacklaael aacqahce aadaagbh aadneaeg aaeahnfag aaedi aaegsqcag aafbkbfcra
30 aaaac aabcfn aacafh aacklaael aacqahce aadaagbh aadneaeg aaeahnfag aaedi aaegsqcag aafbkbfcra aaffddb aagecekeae aaghla aagpa aajdhjlba aakbae aakcbfobaa aaldd aam...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query e 3
query e 11
query e 3...

result:

ok Ok in 2732 k

Test #14:

score: 0
Accepted
time: 2ms
memory: 3692kb

input:

5
1000
1 aabbhcc
3 aabbhcc aabfaakbdp aabpmcgoa
11 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji aadcaoscc aadcbqgafi aaeizjcec aafaedcb aafbefhcab aafbygbcc aagobdhafb
30 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji aadcaoscc aadcbqgafi aaeizjcec aafaedcb aafbefhcab aafbygbcc aagobdhafb aajhdbdlm aakbaezd aak...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query e 3
query e 11
query e 3...

result:

ok Ok in 2687 k

Test #15:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

5
1000
1 aaaaaibb
3 aaaaaibb aaabaa aaabceaid
11 aaaaaibb aaabaa aaabceaid aaabf aaagbba aaagpabe aaahcab aaamdca aabhbhbf aabhdl aabicbiaa
30 aaaaaibb aaabaa aaabceaid aaabf aaagbba aaagpabe aaahcab aaamdca aabhbhbf aabhdl aabicbiaa aabjcngb aacafh aacdcaca aacia aaclg aadbb aadfqjoead aadhbkb aaea...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query a 333
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query ...

result:

ok Ok in 2888 k

Test #16:

score: 0
Accepted
time: 4ms
memory: 3624kb

input:

5
1000
1 aaabfdi
3 aaabfdi aaabied aaacbfg
11 aaabfdi aaabied aaacbfg aaaeebaf aaafbeabii aaagbbabh aaaqpbb aaaudai aabaabge aabbbdc aabcehac
30 aaabfdi aaabied aaacbfg aaaeebaf aaafbeabii aaagbbabh aaaqpbb aaaudai aabaabge aabbbdc aabcehac aabeabfacb aabedfk aacaeaaeac aaccfdc aacgdicaa aacgebfcba ...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query a 333
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query e 3
query e ...

result:

ok Ok in 2843 k

Test #17:

score: 0
Accepted
time: 2ms
memory: 3684kb

input:

5
1000
1 aaaab
3 aaaab aaaad aaaaeddca
11 aaaab aaaad aaaaeddca aaabceaed aaabf aaacbaa aaaedfecd aaafd aaafdegda aaamaab aaanae
30 aaaab aaaad aaaaeddca aaabceaed aaabf aaacbaa aaaedfecd aaafd aaafdegda aaamaab aaanae aabaacfca aabajbdbda aabak aabbgddaaa aabca aabcbacdc aabhbhbf aabjga aablhadhai ...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query a 333
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query ...

result:

ok Ok in 2799 k

Test #18:

score: 0
Accepted
time: 3ms
memory: 3668kb

input:

5
1000
1 aaaadbaab
3 aaaadbaab aaaagbae aaabhab
11 aaaadbaab aaaagbae aaabhab aaacakhd aaacbcbaqe aaadacda aaadfagae aaaeaaaebr aaaeaekea aaaebbdfe aaajbbb
30 aaaadbaab aaaagbae aaabhab aaacakhd aaacbcbaqe aaadacda aaadfagae aaaeaaaebr aaaeaekea aaaebbdfe aaajbbb aabaabgd aabaeefbfa aabakfbeb aabbaa...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query a 333
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query ...

result:

ok Ok in 2703 k

Test #19:

score: 0
Accepted
time: 0ms
memory: 3688kb

input:

5
1000
1 aaaaaedd
3 aaaaaedd aaaab aaaabb
11 aaaaaedd aaaab aaaabb aaaabc aaaadda aaaaeabb aaabaa aaabbcaabh aaabbncfba aaabd aaabeda
30 aaaaaedd aaaab aaaabb aaaabc aaaadda aaaaeabb aaabaa aaabbcaabh aaabbncfba aaabd aaabeda aaabi aaacaad aaackaaee aaadbaab aaadbc aaaddb aaafbfdkd aaafdf aabaaaf aa...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query a 333
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query ...

result:

ok Ok in 2481 k

Test #20:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

5
1000
1 aaaaaaakf
3 aaaaaaakf aaaaaadda aaaaacf
11 aaaaaaakf aaaaaadda aaaaacf aaaacaabc aaaadbaa aaaafaia aaaafeaeeb aaabbcaa aaabceaaa aaabdbb aaabeda
30 aaaaaaakf aaaaaadda aaaaacf aaaacaabc aaaadbaa aaaafaia aaaafeaeeb aaabbcaa aaabceaaa aaabdbb aaabeda aaabiaagh aaacbcbaqe aaacbdf aaaceaa aaad...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query a 333
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query e 1
query ...

result:

ok Ok in 2562 k

Test #21:

score: 0
Accepted
time: 0ms
memory: 3620kb

input:

1
1000
0
1 bagaoguesy
3 bagaoguesy bajdjjxkus bamxlzqrbg
11 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd baxomczwvf bbcczeqbln bbfivcdxcq bbkdokgwfw bbmbmkokgs bbvoexrygb bcaymppyki
30 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd baxomczwvf bbcczeqbln bbfivcdxcq bbkdokgwfw bbmbmkokgs bbvoexrygb bcaymp...

output:

query a 1
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query c 1
query d 1
query e 1
query f 1
query g 1
query h 1
query i 1
query i 3
query i 11
query i 30
query i 72
query i 160
query j 1
query k 1
query l 1
query m 1
query m 3
query m 11
query m 30
query m 72
query m 160
query...

result:

ok Ok in 2292 k

Test #22:

score: 0
Accepted
time: 1ms
memory: 3624kb

input:

1
1000
0
1 babuzeiopu
3 babuzeiopu baekaudviq baerbtrcoo
11 babuzeiopu baekaudviq baerbtrcoo bajklhxyid bajxsdfnaz bakbkywipe bakwsjgopl bamuoeesxn bamvowdurh bapdftjwal baspeslstz
30 babuzeiopu baekaudviq baerbtrcoo bajklhxyid bajxsdfnaz bakbkywipe bakwsjgopl bamuoeesxn bamvowdurh bapdftjwal baspes...

output:

query a 1
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query c 1
query d 1
query d 3
query d 11
query d 30
query d 72
query d 160
query d 333
query e 1
query f 1
query f 3
query f 11
query f 30
query f 72
query g 1
query h 1
query i 1
query j 1
query k 1
query l 1
que...

result:

ok Ok in 2298 k

Test #23:

score: 0
Accepted
time: 0ms
memory: 3680kb

input:

1
1000
1 aahisutiku
3 aahisutiku aakxjvgzfg aamvtdufhl
11 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs abeysgmdvz abkhygxbld abyfnocctt acboavgdvp acrpgutmfc adaavgwzbu adkpbomane
30 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs abeysgmdvz abkhygxbld abyfnocctt acboavgdvp acrpgutmfc adaavgwzbu adkpboma...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query b 1
query b 3
query b 11
query b 30
query b 72
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query e 1
query e 3
query f 1
query g 1
query g 3
query g 11
query g 30
query g 72
query h 1
query i 1
query i 3
query i 11
query i...

result:

ok Ok in 2125 k

Test #24:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

1
1000
1 adwrfxvqth
3 adwrfxvqth akykuvdgif aosgchfnkc
8 adwrfxvqth akykuvdgif aosgchfnkc apmnedzewx arjntqhinl arkgjayddx avjczjvyww awvoeoenja
1 bariprplmb
3 bariprplmb bbdehlqkie bbdnupnpqe
11 bariprplmb bbdehlqkie bbdnupnpqe bbfsesqaia bbjsjspkdx bbmbtvfccp bbpjihbaao bbpqdncdxz bbwecpjqre bcevv...

output:

query a 1
query a 3
query a 11
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query c 1
query c 3
query c 11
query c 30
query d 1
query e 1
query e 3
query e 11
query e 30
query e 72
query e 160
query e 333
query f 1
query f 3
query f 11
query f 30
query g 1
query g 3
query g 11
qu...

result:

ok Ok in 2360 k

Test #25:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

1
1000
0
0
1 cbepuznjbc
3 cbepuznjbc cbilnwqszh cbnhflckuo
11 cbepuznjbc cbilnwqszh cbnhflckuo cbrqmcwarn cbrwvaeoqj cbuvzuspvx cbvbibnvnn cdjdgylqpc cdplbcgtyo cduoxeltku cdzalgjsmw
30 cbepuznjbc cbilnwqszh cbnhflckuo cbrqmcwarn cbrwvaeoqj cbuvzuspvx cbvbibnvnn cdjdgylqpc cdplbcgtyo cduoxeltku cdza...

output:

query a 1
query b 1
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query e 1
query f 1
query g 1
query h 1
query i 1
query j 1
query j 3
query j 11
query j 30
query j 72
query k 1
query l 1
query l 3
query l 11
query l 30
query l 72
query l 160
query l 333
query l 655
query m 1
query...

result:

ok Ok in 2434 k

Test #26:

score: 0
Accepted
time: 1ms
memory: 3588kb

input:

1
1000
0
1 babktgvctu
3 babktgvctu bacckliudy badycnijil
11 babktgvctu bacckliudy badycnijil baetozsvwo bafkjjimwe bahqwfghge bakdzdncvx bakxnjuted balwwpmrvk bamtkbtrfg baomixiagc
30 babktgvctu bacckliudy badycnijil baetozsvwo bafkjjimwe bahqwfghge bakdzdncvx bakxnjuted balwwpmrvk bamtkbtrfg baomix...

output:

query a 1
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query b 655
query c 1
query c 3
query c 11
query c 30
query c 72
query d 1
query e 1
query f 1
query g 1
query h 1
query i 1
query j 1
query k 1
query l 1
query m 1
query n 1
query o 1
query o 3
query p 1
query p ...

result:

ok Ok in 2319 k

Test #27:

score: 0
Accepted
time: 1ms
memory: 3692kb

input:

1
1000
1 anpmcjtvhc
1 anpmcjtvhc
1 babqiytdti
3 babqiytdti backovxsdu bacnnmlgfv
11 babqiytdti backovxsdu bacnnmlgfv badvigqcqh bafemlfuaz bafvsugtiw bagguxpimu bagwdcjohm bahoawcolg balfvfqttv balnimeoft
30 babqiytdti backovxsdu bacnnmlgfv badvigqcqh bafemlfuaz bafvsugtiw bagguxpimu bagwdcjohm baho...

output:

query a 1
query a 3
query b 1
query b 3
query b 11
query b 30
query b 72
query b 160
query b 333
query c 1
query c 3
query d 1
query e 1
query e 3
query e 11
query e 30
query e 72
query e 160
query e 333
query e 655
query f 1
query g 1
query h 1
query i 1
query i 3
query j 1
query k 1
query l 1
quer...

result:

ok Ok in 2122 k

Test #28:

score: 0
Accepted
time: 1ms
memory: 3624kb

input:

1
1000
0
0
1 cadaytkjkd
3 cadaytkjkd cafzgsqgfu caqlhlglip
11 cadaytkjkd cafzgsqgfu caqlhlglip casxpxqqoa catxklbkrn caxsnclszq cayihgbkpv cbbdesifkj cbggreijir cbghfxiqvo cblngggqxz
30 cadaytkjkd cafzgsqgfu caqlhlglip casxpxqqoa catxklbkrn caxsnclszq cayihgbkpv cbbdesifkj cbggreijir cbghfxiqvo cbln...

output:

query a 1
query b 1
query c 1
query c 3
query c 11
query c 30
query c 72
query c 160
query d 1
query e 1
query e 3
query e 11
query e 30
query e 72
query e 160
query f 1
query g 1
query g 3
query h 1
query i 1
query j 1
query k 1
query k 3
query k 11
query k 30
query k 72
query l 1
query l 3
query l...

result:

ok Ok in 2155 k

Test #29:

score: 0
Accepted
time: 1ms
memory: 3656kb

input:

1
1000
0
1 bbebxtglxm
3 bbebxtglxm bdzpwcbwvo bfurjatycr
7 bbebxtglxm bdzpwcbwvo bfurjatycr bmfsbdoxww bpfvjcmlct bpmixrqzfb bylpzqlgxq
0
0
0
0
0
0
1 iabmdmtywa
3 iabmdmtywa iaemjvkjdy iakpsrcnhb
11 iabmdmtywa iaemjvkjdy iakpsrcnhb iaowsmpxps iawwchhbue iaxooljbux ibdlngpkgx ibduaemqdw ibpyleayhq ib...

output:

query a 1
query b 1
query b 3
query b 11
query c 1
query d 1
query e 1
query f 1
query g 1
query h 1
query i 1
query i 3
query i 11
query i 30
query i 72
query i 160
query j 1
query k 1
query k 3
query k 11
query l 1
query l 3
query l 11
query l 30
query l 72
query m 1
query n 1
query o 1
query p 1
...

result:

ok Ok in 2306 k

Test #30:

score: 0
Accepted
time: 1ms
memory: 3688kb

input:

1
1000
0
0
0
1 dkthhcxrcq
1 dkthhcxrcq
1 eakgfiehic
3 eakgfiehic eaqjfngdky ebgxwpmnxx
11 eakgfiehic eaqjfngdky ebgxwpmnxx ebidmjgczs ebubwrmjdc ecdjuyzyjs ecmzzanhuc ecsnhvefww ectepkuesj ecxteexpsq edamjdhdsc
30 eakgfiehic eaqjfngdky ebgxwpmnxx ebidmjgczs ebubwrmjdc ecdjuyzyjs ecmzzanhuc ecsnhvefw...

output:

query a 1
query b 1
query c 1
query d 1
query d 3
query e 1
query e 3
query e 11
query e 30
query e 72
query e 160
query f 1
query f 3
query g 1
query h 1
query h 3
query i 1
query i 3
query j 1
query j 3
query j 11
query j 30
query j 72
query k 1
query k 3
query k 11
query k 30
query k 72
query l 1...

result:

ok Ok in 2400 k

Test #31:

score: -100
Wrong Answer
time: 1ms
memory: 3572kb

input:

5
1000
1 aaaiqwexnq
3 aaaiqwexnq aadjcquqdq aafaldvvzr
11 aaaiqwexnq aadjcquqdq aafaldvvzr aaflmsydwu aafwzaqmhr aafypzoakd aahtirtmve aaitvirspt aajkhyjujl aajwmyiykc aamnvriles
30 aaaiqwexnq aadjcquqdq aafaldvvzr aaflmsydwu aafwzaqmhr aafypzoakd aahtirtmve aaitvirspt aajkhyjujl aajwmyiykc aamnvril...

output:

query a 1
query a 3
query a 11
query a 30
query a 72
query a 160
query a 333
query a 655
query a 1000
answer aaaiqwexnq aadjcquqdq aafaldvvzr aaflmsydwu aafwzaqmhr aafypzoakd aahtirtmve aaitvirspt aajkhyjujl aajwmyiykc aamnvriles aamotubelz aanjhaxtjv aanpnufnlu aanxeqwcui aaorahdigy aapdnumytf aarb...

result:

wrong answer Exceeded sum of K values: 3810