QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212339#7531. Hacking the ProjectwaifuSenpai#WA 6ms3900kbC++20752b2023-10-13 14:55:262023-10-13 14:55:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1
4
2 aaa aba
0
2 cxyxy czzzz

output:

query a 4
query b 2
query c 2
answer aaa aba cxyxy czzzz

result:

ok Ok in 8 k

Test #2:

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

input:

5
1000
16 a aajm aavfegkci aavj abjc abnxwsy abzbr acvd adrvb af afbxpytbe afl afwsjfu aigwxskrks aimpdesf ajbq
32 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 aqq...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
que...

result:

ok Ok in 2769 k

Test #3:

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

input:

5
1000
16 acbd acgts acvdflmn admkf aehzdl aepocjmc afaeqq afbqeawd afjb agrfnq ahrhdp aidg aimp aiqana ajb akwm
32 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 arjoy...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
query j 16
query j 32
que...

result:

ok Ok in 2883 k

Test #4:

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

input:

5
1000
16 aaxqvzig abbaep actfxtivf adt adtl aer afa agfev agluptr ahci ahdfhfr aiympo ajjcvjb ajkux akq alnoiph
32 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 aqsoqgfp ...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
query j 16
que...

result:

ok Ok in 2847 k

Test #5:

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

input:

5
1000
16 a aalilyz ac acb adcogtni adroq aepocjm aevi af aguwuvh agxaaac ahuwl ahxy aiafmv aisyr ajuqw
32 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 asi...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
que...

result:

ok Ok in 2758 k

Test #6:

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

input:

5
1000
16 abvmqw acgt acoogjx adrvbejoo ae aeqv af afb afdktn aggcwzid aibg aimgcusle aiymp ajuqm al alk
32 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 awyquevh...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
que...

result:

ok Ok in 2818 k

Test #7:

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

input:

5
1000
16 aavfeg abogkwk abpwnr abqlngdsc acbdx adgeed aerm aevi aexjyu afascs afbqeawdi afkxyfmcn afvmu agmm agwdwxsu aigw
32 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 apjf...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
que...

result:

ok Ok in 2756 k

Test #8:

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

input:

5
1000
16 a aaac aac aadrvbej aay abwun abz acb acn acqx actyaovq acvdf adgeedjk af ahnzdw ahxylcgn
32 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 askqgl asyiwxmr
49 a aaac ...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query i 16
query i 32
query i 64
query j 16
que...

result:

ok Ok in 2768 k

Test #9:

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

input:

5
1000
16 aaciqgnc aawtbc aayipsoj abqlngds acf acqrs actad adrv adxm aexjy agnn agwdwxs ai aid aif aijelh
32 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 ato aucz
43 aaciq...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
query j 16
que...

result:

ok Ok in 2761 k

Test #10:

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

input:

5
1000
16 aagxaa abjc acg aciqg acnhpzn acvdfl adtninwc aehz aek aeqqojyp aevibe aexjyulg afbxp afl aguwuv ahcipz
32 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 as...

output:

query a 16
query a 32
query a 64
query b 16
query b 32
query b 64
query c 16
query c 32
query c 64
query d 16
query d 32
query d 64
query e 16
query e 32
query e 64
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 16
query h 32
query h 64
query i 16
query i 32
query i 64
que...

result:

ok Ok in 2760 k

Test #11:

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

input:

5
1000
16 aadbd aadbg aaemf aaepzchvxg aapihz aaqjqvgx aazfccep aaznfe abakwq abbwcmdh abdhdofrs abdjlpez abeaa abezgbabhd abgbpa abhkmvmahb
32 aadbd aadbg aaemf aaepzchvxg aapihz aaqjqvgx aazfccep aaznfe abakwq abbwcmdh abdhdofrs abdjlpez abeaa abezgbabhd abgbpa abhkmvmahb abhtaev abicf absaa acaea...

output:

query a 16
query a 32
query a 64
query a 128
query b 16
query b 32
query b 64
query b 128
query c 16
query c 32
query c 64
query c 128
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query f 64
query g 16
query g 32
query g 64
query h 1...

result:

ok Ok in 2664 k

Test #12:

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

input:

5
1000
16 aabwpote aaclnnc aadjkgs aaemccd aapihztr aavaacml aazdodzr abbaeuada abbriejjk abbzfui abcdocbn abicfcs abjcdznj abkcmdgj abrlkfgb abuesdgjja
32 aabwpote aaclnnc aadjkgs aaemccd aapihztr aavaacml aazdodzr abbaeuada abbriejjk abbzfui abcdocbn abicfcs abjcdznj abkcmdgj abrlkfgb abuesdgjja a...

output:

query a 16
query a 32
query a 64
query a 128
query b 16
query b 32
query b 64
query b 128
query c 16
query c 32
query c 64
query c 128
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query f 64
query f 128
query g 16
query g 32
query g ...

result:

ok Ok in 2732 k

Test #13:

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

input:

5
1000
16 aaaac aabcfn aacafh aacklaael aacqahce aadaagbh aadneaeg aaeahnfag aaedi aaegsqcag aafbkbfcra aaffddb aagecekeae aaghla aagpa aajdhjlba
32 aaaac aabcfn aacafh aacklaael aacqahce aadaagbh aadneaeg aaeahnfag aaedi aaegsqcag aafbkbfcra aaffddb aagecekeae aaghla aagpa aajdhjlba aakbae aakcbfob...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query b 16
query b 32
query b 64
query b 128
query c 16
query c 32
query c 64
query c 128
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query f 64
query g 16
query g 32
query g ...

result:

ok Ok in 2774 k

Test #14:

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

input:

5
1000
16 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji aadcaoscc aadcbqgafi aaeizjcec aafaedcb aafbefhcab aafbygbcc aagobdhafb aajhdbdlm aakbaezd aakcbfob aalddlb aapbkagbc
32 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji aadcaoscc aadcbqgafi aaeizjcec aafaedcb aafbefhcab aafbygbcc aagobdhafb aajhdbdlm aakbaez...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query b 16
query b 32
query b 64
query b 128
query c 16
query c 32
query c 64
query c 128
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query f 64
query f 128
query g 16
query g...

result:

ok Ok in 2805 k

Test #15:

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

input:

5
1000
16 aaaaaibb aaabaa aaabceaid aaabf aaagbba aaagpabe aaahcab aaamdca aabhbhbf aabhdl aabicbiaa aabjcngb aacafh aacdcaca aacia aaclg
32 aaaaaibb aaabaa aaabceaid aaabf aaagbba aaagpabe aaahcab aaamdca aabhbhbf aabhdl aabicbiaa aabjcngb aacafh aacdcaca aacia aaclg aadbb aadfqjoead aadhbkb aaeabd...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query b 16
query b 32
query b 64
query b 128
query b 256
query c 16
query c 32
query c 64
query c 128
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query f 64
query f 128
query ...

result:

ok Ok in 2759 k

Test #16:

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

input:

5
1000
16 aaabfdi aaabied aaacbfg aaaeebaf aaafbeabii aaagbbabh aaaqpbb aaaudai aabaabge aabbbdc aabcehac aabeabfacb aabedfk aacaeaaeac aaccfdc aacgdicaa
32 aaabfdi aaabied aaacbfg aaaeebaf aaafbeabii aaagbbabh aaaqpbb aaaudai aabaabge aabbbdc aabcehac aabeabfacb aabedfk aacaeaaeac aaccfdc aacgdicaa...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query b 16
query b 32
query b 64
query b 128
query b 256
query c 16
query c 32
query c 64
query c 128
query c 256
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query f 64
query ...

result:

ok Ok in 3022 k

Test #17:

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

input:

5
1000
16 aaaab aaaad aaaaeddca aaabceaed aaabf aaacbaa aaaedfecd aaafd aaafdegda aaamaab aaanae aabaacfca aabajbdbda aabak aabbgddaaa aabca
32 aaaab aaaad aaaaeddca aaabceaed aaabf aaacbaa aaaedfecd aaafd aaafdegda aaamaab aaanae aabaacfca aabajbdbda aabak aabbgddaaa aabca aabcbacdc aabhbhbf aabjga...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query b 16
query b 32
query b 64
query b 128
query b 256
query c 16
query c 32
query c 64
query c 128
query c 256
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query f 64
query ...

result:

ok Ok in 3119 k

Test #18:

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

input:

5
1000
16 aaaadbaab aaaagbae aaabhab aaacakhd aaacbcbaqe aaadacda aaadfagae aaaeaaaebr aaaeaekea aaaebbdfe aaajbbb aabaabgd aabaeefbfa aabakfbeb aabbaaai aabbbbcfbj
32 aaaadbaab aaaagbae aaabhab aaacakhd aaacbcbaqe aaadacda aaadfagae aaaeaaaebr aaaeaekea aaaebbdfe aaajbbb aabaabgd aabaeefbfa aabakfb...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query a 512
query b 16
query b 32
query b 64
query b 128
query b 256
query c 16
query c 32
query c 64
query c 128
query c 256
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query...

result:

ok Ok in 3195 k

Test #19:

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

input:

5
1000
16 aaaaaedd aaaab aaaabb aaaabc aaaadda aaaaeabb aaabaa aaabbcaabh aaabbncfba aaabd aaabeda aaabi aaacaad aaackaaee aaadbaab aaadbc
32 aaaaaedd aaaab aaaabb aaaabc aaaadda aaaaeabb aaabaa aaabbcaabh aaabbncfba aaabd aaabeda aaabi aaacaad aaackaaee aaadbaab aaadbc aaaddb aaafbfdkd aaafdf aabaa...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query a 512
query b 16
query b 32
query b 64
query b 128
query b 256
query c 16
query c 32
query c 64
query c 128
query c 256
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query...

result:

ok Ok in 2961 k

Test #20:

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

input:

5
1000
16 aaaaaaakf aaaaaadda aaaaacf aaaacaabc aaaadbaa aaaafaia aaaafeaeeb aaabbcaa aaabceaaa aaabdbb aaabeda aaabiaagh aaacbcbaqe aaacbdf aaaceaa aaadacaa
32 aaaaaaakf aaaaaadda aaaaacf aaaacaabc aaaadbaa aaaafaia aaaafeaeeb aaabbcaa aaabceaaa aaabdbb aaabeda aaabiaagh aaacbcbaqe aaacbdf aaaceaa ...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query a 512
query b 16
query b 32
query b 64
query b 128
query b 256
query c 16
query c 32
query c 64
query c 128
query c 256
query d 16
query d 32
query d 64
query d 128
query e 16
query e 32
query e 64
query e 128
query f 16
query f 32
query...

result:

ok Ok in 2961 k

Test #21:

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

input:

1
1000
0
16 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd baxomczwvf bbcczeqbln bbfivcdxcq bbkdokgwfw bbmbmkokgs bbvoexrygb bcaymppyki bcmiphiusu bcmxmroxcd bdbyzxwgsz bdldfhxemz bdrmxzkoqg
32 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd baxomczwvf bbcczeqbln bbfivcdxcq bbkdokgwfw bbmbmkokgs bbvoexrygb...

output:

query a 16
query b 16
query b 32
query b 64
query b 128
query c 16
query d 16
query e 16
query f 16
query g 16
query h 16
query i 16
query i 32
query i 64
query i 128
query j 16
query k 16
query l 16
query m 16
query m 32
query m 64
query m 128
query m 256
query n 16
query o 16
query p 16
query q 16...

result:

ok Ok in 2260 k

Test #22:

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

input:

1
1000
0
16 babuzeiopu baekaudviq baerbtrcoo bajklhxyid bajxsdfnaz bakbkywipe bakwsjgopl bamuoeesxn bamvowdurh bapdftjwal baspeslstz batmiwceso bbcbfvdhfu bbdzcicloo bbepavivkn bbeqqubtse
32 babuzeiopu baekaudviq baerbtrcoo bajklhxyid bajxsdfnaz bakbkywipe bakwsjgopl bamuoeesxn bamvowdurh bapdftjwal...

output:

query a 16
query b 16
query b 32
query b 64
query b 128
query b 256
query b 512
query c 16
query d 16
query d 32
query d 64
query d 128
query d 256
query d 512
query e 16
query f 16
query f 32
query f 64
query g 16
query h 16
query i 16
query j 16
query k 16
query l 16
query m 16
query n 16
query o ...

result:

ok Ok in 3680 k

Test #23:

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

input:

1
1000
16 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs abeysgmdvz abkhygxbld abyfnocctt acboavgdvp acrpgutmfc adaavgwzbu adkpbomane adpyjhbwrv aekrlovqls aermhtyecx aewbmuirzf aexqszegdv
32 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs abeysgmdvz abkhygxbld abyfnocctt acboavgdvp acrpgutmfc adaavgwzbu a...

output:

query a 16
query a 32
query a 64
query a 128
query b 16
query b 32
query b 64
query b 128
query c 16
query c 32
query c 64
query c 128
query d 16
query e 16
query f 16
query g 16
query g 32
query g 64
query g 128
query h 16
query i 16
query i 32
query i 64
query i 128
query i 256
query i 512
query i...

result:

ok Ok in 3523 k

Test #24:

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

input:

1
1000
8 adwrfxvqth akykuvdgif aosgchfnkc apmnedzewx arjntqhinl arkgjayddx avjczjvyww awvoeoenja
16 bariprplmb bbdehlqkie bbdnupnpqe bbfsesqaia bbjsjspkdx bbmbtvfccp bbpjihbaao bbpqdncdxz bbwecpjqre bcevvengui bcihgrfqtl bcssplotuz bcuiajcrwt bcxbxpqamo bddwoyurai bdhlnzkmlj
32 bariprplmb bbdehlqkie...

output:

query a 16
query b 16
query b 32
query b 64
query b 128
query c 16
query c 32
query d 16
query e 16
query e 32
query e 64
query e 128
query e 256
query f 16
query f 32
query g 16
query g 32
query h 16
query i 16
query i 32
query i 64
query i 128
query j 16
query j 32
query k 16
query l 16
query m 16...

result:

ok Ok in 2270 k

Test #25:

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

input:

1
1000
0
0
16 cbepuznjbc cbilnwqszh cbnhflckuo cbrqmcwarn cbrwvaeoqj cbuvzuspvx cbvbibnvnn cdjdgylqpc cdplbcgtyo cduoxeltku cdzalgjsmw cejvnqvmhl celaublikb cerewvvqgh cessnvlrjn cesxiflbyh
32 cbepuznjbc cbilnwqszh cbnhflckuo cbrqmcwarn cbrwvaeoqj cbuvzuspvx cbvbibnvnn cdjdgylqpc cdplbcgtyo cduoxelt...

output:

query a 16
query b 16
query c 16
query c 32
query c 64
query d 16
query e 16
query f 16
query g 16
query h 16
query i 16
query j 16
query j 32
query k 16
query l 16
query l 32
query l 64
query l 128
query l 256
query l 512
query m 16
query n 16
query o 16
query p 16
query p 32
query p 64
query p 128...

result:

ok Ok in 2123 k

Test #26:

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

input:

1
1000
0
16 babktgvctu bacckliudy badycnijil baetozsvwo bafkjjimwe bahqwfghge bakdzdncvx bakxnjuted balwwpmrvk bamtkbtrfg baomixiagc baoqpmlyvb bapyoakqbf bapyticavb barehblwyd bashpgkanw
32 babktgvctu bacckliudy badycnijil baetozsvwo bafkjjimwe bahqwfghge bakdzdncvx bakxnjuted balwwpmrvk bamtkbtrfg...

output:

query a 16
query b 16
query b 32
query b 64
query b 128
query b 256
query b 512
query b 1000
query c 16
query c 32
query c 64
query d 16
query e 16
query f 16
query g 16
query h 16
query i 16
query j 16
query k 16
query l 16
query m 16
query n 16
query o 16
query p 16
query p 32
query p 64
query p 1...

result:

ok Ok in 3767 k

Test #27:

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

input:

1
1000
1 anpmcjtvhc
16 babqiytdti backovxsdu bacnnmlgfv badvigqcqh bafemlfuaz bafvsugtiw bagguxpimu bagwdcjohm bahoawcolg balfvfqttv balnimeoft banmitywys banvduixxg bapymnchsz bapzhdkqbt baqebyoopv
32 babqiytdti backovxsdu bacnnmlgfv badvigqcqh bafemlfuaz bafvsugtiw bagguxpimu bagwdcjohm bahoawcolg...

output:

query a 16
query b 16
query b 32
query b 64
query b 128
query b 256
query b 512
query c 16
query d 16
query e 16
query e 32
query e 64
query e 128
query e 256
query e 512
query e 675
query f 16
query g 16
query h 16
query i 16
query j 16
query k 16
query l 16
query m 16
query n 16
query o 16
query p...

result:

ok Ok in 3133 k

Test #28:

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

input:

1
1000
0
0
16 cadaytkjkd cafzgsqgfu caqlhlglip casxpxqqoa catxklbkrn caxsnclszq cayihgbkpv cbbdesifkj cbggreijir cbghfxiqvo cblngggqxz cbnnrjgzpl cbtsxigphe cbycfnbeum ccfxoopuqo cchkurujux
32 cadaytkjkd cafzgsqgfu caqlhlglip casxpxqqoa catxklbkrn caxsnclszq cayihgbkpv cbbdesifkj cbggreijir cbghfxiq...

output:

query a 16
query b 16
query c 16
query c 32
query c 64
query c 128
query c 256
query d 16
query e 16
query e 32
query e 64
query e 128
query e 256
query f 16
query g 16
query h 16
query i 16
query j 16
query k 16
query k 32
query k 64
query l 16
query l 32
query l 64
query l 128
query l 256
query l ...

result:

ok Ok in 3204 k

Test #29:

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

input:

1
1000
0
7 bbebxtglxm bdzpwcbwvo bfurjatycr bmfsbdoxww bpfvjcmlct bpmixrqzfb bylpzqlgxq
0
0
0
0
0
0
16 iabmdmtywa iaemjvkjdy iakpsrcnhb iaowsmpxps iawwchhbue iaxooljbux ibdlngpkgx ibduaemqdw ibpyleayhq ibqcxdtrxb ibvcvkeoso ibweqgpydz ibzcpdhcnl icaumkdpku icnartozlb icrhtjovji
32 iabmdmtywa iaemjvk...

output:

query a 16
query b 16
query c 16
query d 16
query e 16
query f 16
query g 16
query h 16
query i 16
query i 32
query i 64
query i 128
query i 256
query j 16
query k 16
query l 16
query l 32
query l 64
query m 16
query n 16
query o 16
query p 16
query q 16
query q 32
query q 64
query q 128
query q 256...

result:

ok Ok in 3538 k

Test #30:

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

input:

1
1000
0
0
0
1 dkthhcxrcq
16 eakgfiehic eaqjfngdky ebgxwpmnxx ebidmjgczs ebubwrmjdc ecdjuyzyjs ecmzzanhuc ecsnhvefww ectepkuesj ecxteexpsq edamjdhdsc edclhhotsr edcnkbnygo edncewmebd edvzdthtre eenmevmrpj
32 eakgfiehic eaqjfngdky ebgxwpmnxx ebidmjgczs ebubwrmjdc ecdjuyzyjs ecmzzanhuc ecsnhvefww ecte...

output:

query a 16
query b 16
query c 16
query d 16
query e 16
query e 32
query e 64
query e 128
query f 16
query g 16
query h 16
query i 16
query j 16
query j 32
query j 64
query k 16
query k 32
query k 64
query l 16
query m 16
query n 16
query o 16
query o 32
query o 64
query o 128
query o 256
query o 512...

result:

ok Ok in 2317 k

Test #31:

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

input:

5
1000
16 aaaiqwexnq aadjcquqdq aafaldvvzr aaflmsydwu aafwzaqmhr aafypzoakd aahtirtmve aaitvirspt aajkhyjujl aajwmyiykc aamnvriles aamotubelz aanjhaxtjv aanpnufnlu aanxeqwcui aaorahdigy
32 aaaiqwexnq aadjcquqdq aafaldvvzr aaflmsydwu aafwzaqmhr aafypzoakd aahtirtmve aaitvirspt aajkhyjujl aajwmyiykc a...

output:

query a 16
query a 32
query a 64
query a 128
query a 256
query a 512
query a 1000
answer aaaiqwexnq aadjcquqdq aafaldvvzr aaflmsydwu aafwzaqmhr aafypzoakd aahtirtmve aaitvirspt aajkhyjujl aajwmyiykc aamnvriles aamotubelz aanjhaxtjv aanpnufnlu aanxeqwcui aaorahdigy aapdnumytf aarbiaepor aarnjuiyeu aa...

result:

wrong answer Exceeded sum of K values: 3808