QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#742973#7531. Hacking the Projectucup-team2172#RE 9ms3904kbC++231.6kb2024-11-13 17:46:422024-11-13 17:46:47

詳細信息

Test #1:

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

input:

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

output:

query a 1
query a 2
query a 4
query b 1
query c 1
query c 2
query c 3
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 p 1
query q 1
query r 1
query s 1
query t 1
query u 1
query v 1
query w 1
query x 1
query y 1
query z 1
...

result:

ok Ok in 37 k

Test #2:

score: 0
Accepted
time: 9ms
memory: 3904kb

input:

5
1000
1 a
2 a aajm
4 a aajm aavfegkci aavj
8 a aajm aavfegkci aavj abjc abnxwsy abzbr acvd
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 ajb...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e ...

result:

ok Ok in 3160 k

Test #3:

score: 0
Accepted
time: 7ms
memory: 3628kb

input:

5
1000
1 acbd
2 acbd acgts
4 acbd acgts acvdflmn admkf
8 acbd acgts acvdflmn admkf aehzdl aepocjmc afaeqq afbqeawd
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...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e 1
query e 2...

result:

ok Ok in 3274 k

Test #4:

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

input:

5
1000
1 aaxqvzig
2 aaxqvzig abbaep
4 aaxqvzig abbaep actfxtivf adt
8 aaxqvzig abbaep actfxtivf adt adtl aer afa agfev
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 ai...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e 1
query e 2...

result:

ok Ok in 3238 k

Test #5:

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

input:

5
1000
1 a
2 a aalilyz
4 a aalilyz ac acb
8 a aalilyz ac acb adcogtni adroq aepocjm aevi
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 amg...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e ...

result:

ok Ok in 3149 k

Test #6:

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

input:

5
1000
1 abvmqw
2 abvmqw acgt
4 abvmqw acgt acoogjx adrvbejoo
8 abvmqw acgt acoogjx adrvbejoo ae aeqv af afb
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...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e ...

result:

ok Ok in 3209 k

Test #7:

score: 0
Accepted
time: 7ms
memory: 3696kb

input:

5
1000
1 aavfeg
2 aavfeg abogkwk
4 aavfeg abogkwk abpwnr abqlngdsc
8 aavfeg abogkwk abpwnr abqlngdsc acbdx adgeed aerm aevi
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 a...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e ...

result:

ok Ok in 3147 k

Test #8:

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

input:

5
1000
1 a
2 a aaac
4 a aaac aac aadrvbej
8 a aaac aac aadrvbej aay abwun abz acb
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 anbi...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e ...

result:

ok Ok in 3159 k

Test #9:

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

input:

5
1000
1 aaciqgnc
2 aaciqgnc aawtbc
4 aaciqgnc aawtbc aayipsoj abqlngds
8 aaciqgnc aawtbc aayipsoj abqlngds acf acqrs actad adrv
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 ag...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e ...

result:

ok Ok in 3152 k

Test #10:

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

input:

5
1000
1 aagxaa
2 aagxaa abjc
4 aagxaa abjc acg aciqg
8 aagxaa abjc acg aciqg acnhpzn acvdfl adtninwc aehz
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 afb...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query e ...

result:

ok Ok in 3151 k

Test #11:

score: 0
Accepted
time: 7ms
memory: 3560kb

input:

5
1000
1 aadbd
2 aadbd aadbg
4 aadbd aadbg aaemf aaepzchvxg
8 aadbd aadbg aaemf aaepzchvxg aapihz aaqjqvgx aazfccep aaznfe
16 aadbd aadbg aaemf aaepzchvxg aapihz aaqjqvgx aazfccep aaznfe abakwq abbwcmdh abdhdofrs abdjlpez abeaa abezgbabhd abgbpa abhkmvmahb
32 aadbd aadbg aaemf aaepzchvxg aapihz aaqj...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query d 1
query d 2
query d 4
query d 8
query...

result:

ok Ok in 3023 k

Test #12:

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

input:

5
1000
1 aabwpote
2 aabwpote aaclnnc
4 aabwpote aaclnnc aadjkgs aaemccd
8 aabwpote aaclnnc aadjkgs aaemccd aapihztr aavaacml aazdodzr abbaeuada
16 aabwpote aaclnnc aadjkgs aaemccd aapihztr aavaacml aazdodzr abbaeuada abbriejjk abbzfui abcdocbn abicfcs abjcdznj abkcmdgj abrlkfgb abuesdgjja
32 aabwpot...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query d 1
query d 2
query d 4
query d 8
query...

result:

ok Ok in 3107 k

Test #13:

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

input:

5
1000
1 aaaac
2 aaaac aabcfn
4 aaaac aabcfn aacafh aacklaael
8 aaaac aabcfn aacafh aacklaael aacqahce aadaagbh aadneaeg aaeahnfag
16 aaaac aabcfn aacafh aacklaael aacqahce aadaagbh aadneaeg aaeahnfag aaedi aaegsqcag aafbkbfcra aaffddb aagecekeae aaghla aagpa aajdhjlba
32 aaaac aabcfn aacafh aacklaa...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query d 1
query d 2
query d 4
que...

result:

ok Ok in 3053 k

Test #14:

score: 0
Accepted
time: 7ms
memory: 3824kb

input:

5
1000
1 aabbhcc
2 aabbhcc aabfaakbdp
4 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji
8 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji aadcaoscc aadcbqgafi aaeizjcec aafaedcb
16 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji aadcaoscc aadcbqgafi aaeizjcec aafaedcb aafbefhcab aafbygbcc aagobdhafb aajhdbdlm aakbaezd aakc...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query d 1
query d 2
query d 4
que...

result:

ok Ok in 3084 k

Test #15:

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

input:

5
1000
1 aaaaaibb
2 aaaaaibb aaabaa
4 aaaaaibb aaabaa aaabceaid aaabf
8 aaaaaibb aaabaa aaabceaid aaabf aaagbba aaagpabe aaahcab aaamdca
16 aaaaaibb aaabaa aaabceaid aaabf aaagbba aaagpabe aaahcab aaamdca aabhbhbf aabhdl aabicbiaa aabjcngb aacafh aacdcaca aacia aaclg
32 aaaaaibb aaabaa aaabceaid aaa...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query b 256
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query d 1
query d 2
q...

result:

ok Ok in 2955 k

Test #16:

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

input:

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

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query b 256
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query c 256
query d 1...

result:

ok Ok in 3201 k

Test #17:

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

input:

5
1000
1 aaaab
2 aaaab aaaad
4 aaaab aaaad aaaaeddca aaabceaed
8 aaaab aaaad aaaaeddca aaabceaed aaabf aaacbaa aaaedfecd aaafd
16 aaaab aaaad aaaaeddca aaabceaed aaabf aaacbaa aaaedfecd aaafd aaafdegda aaamaab aaanae aabaacfca aabajbdbda aabak aabbgddaaa aabca
32 aaaab aaaad aaaaeddca aaabceaed aaab...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query b 256
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query c 256
query d 1...

result:

ok Ok in 3310 k

Test #18:

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

input:

5
1000
1 aaaadbaab
2 aaaadbaab aaaagbae
4 aaaadbaab aaaagbae aaabhab aaacakhd
8 aaaadbaab aaaagbae aaabhab aaacakhd aaacbcbaqe aaadacda aaadfagae aaaeaaaebr
16 aaaadbaab aaaagbae aaabhab aaacakhd aaacbcbaqe aaadacda aaadfagae aaaeaaaebr aaaeaekea aaaebbdfe aaajbbb aabaabgd aabaeefbfa aabakfbeb aabba...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query a 512
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query b 256
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query c 2...

result:

ok Ok in 3363 k

Test #19:

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

input:

5
1000
1 aaaaaedd
2 aaaaaedd aaaab
4 aaaaaedd aaaab aaaabb aaaabc
8 aaaaaedd aaaab aaaabb aaaabc aaaadda aaaaeabb aaabaa aaabbcaabh
16 aaaaaedd aaaab aaaabb aaaabc aaaadda aaaaeabb aaabaa aaabbcaabh aaabbncfba aaabd aaabeda aaabi aaacaad aaackaaee aaadbaab aaadbc
32 aaaaaedd aaaab aaaabb aaaabc aaaa...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query a 512
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query b 256
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query c 2...

result:

ok Ok in 3115 k

Test #20:

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

input:

5
1000
1 aaaaaaakf
2 aaaaaaakf aaaaaadda
4 aaaaaaakf aaaaaadda aaaaacf aaaacaabc
8 aaaaaaakf aaaaaadda aaaaacf aaaacaabc aaaadbaa aaaafaia aaaafeaeeb aaabbcaa
16 aaaaaaakf aaaaaadda aaaaacf aaaacaabc aaaadbaa aaaafaia aaaafeaeeb aaabbcaa aaabceaaa aaabdbb aaabeda aaabiaagh aaacbcbaqe aaacbdf aaaceaa...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query a 256
query a 512
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query b 256
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query c 2...

result:

ok Ok in 3116 k

Test #21:

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

input:

1
1000
0
1 bagaoguesy
2 bagaoguesy bajdjjxkus
4 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd
8 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd baxomczwvf bbcczeqbln bbfivcdxcq bbkdokgwfw
16 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd baxomczwvf bbcczeqbln bbfivcdxcq bbkdokgwfw bbmbmkokgs bbvoexrygb bcaym...

output:

query a 1
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query c 1
query d 1
query e 1
query f 1
query g 1
query h 1
query i 1
query i 2
query i 4
query i 8
query i 16
query i 32
query i 64
query i 128
query j 1
query k 1
query l 1
query m 1
query m 2
query m 4
...

result:

ok Ok in 2055 k

Test #22:

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

input:

1
1000
0
1 babuzeiopu
2 babuzeiopu baekaudviq
4 babuzeiopu baekaudviq baerbtrcoo bajklhxyid
8 babuzeiopu baekaudviq baerbtrcoo bajklhxyid bajxsdfnaz bakbkywipe bakwsjgopl bamuoeesxn
16 babuzeiopu baekaudviq baerbtrcoo bajklhxyid bajxsdfnaz bakbkywipe bakwsjgopl bamuoeesxn bamvowdurh bapdftjwal baspe...

output:

query a 1
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query b 256
query b 512
query c 1
query d 1
query d 2
query d 4
query d 8
query d 16
query d 32
query d 64
query d 128
query d 256
query d 512
query e 1
query f 1
query f 2
query f 4
query f 8
query f 16
q...

result:

ok Ok in 3757 k

Test #23:

score: -100
Runtime Error

input:

1
1000
1 aahisutiku
2 aahisutiku aakxjvgzfg
4 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs
8 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs abeysgmdvz abkhygxbld abyfnocctt acboavgdvp
16 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs abeysgmdvz abkhygxbld abyfnocctt acboavgdvp acrpgutmfc adaavgwzbu adkpbom...

output:

query a 1
query a 2
query a 4
query a 8
query a 16
query a 32
query a 64
query a 128
query b 1
query b 2
query b 4
query b 8
query b 16
query b 32
query b 64
query b 128
query c 1
query c 2
query c 4
query c 8
query c 16
query c 32
query c 64
query c 128
query d 1
query e 1
query e 2
query f 1
query...

result: