QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#203853#7531. Hacking the Project275307894aAC ✓4ms4212kbC++141.3kb2023-10-06 21:11:482023-10-06 21:11:48

Judging History

你现在查看的是最新测评结果

  • [2023-10-06 21:11:48]
  • 评测
  • 测评结果:AC
  • 用时:4ms
  • 内存:4212kb
  • [2023-10-06 21:11:48]
  • 提交

answer

#include<bits/stdc++.h>
#define Gc() getchar() 
#define Me(x,y) memset(x,y,sizeof(x))
#define Mc(x,y) memcpy(x,y,sizeof(x))
#define d(x,y) ((m)*(x-1)+(y))
#define R(n) (rnd()%(n)+1)
#define Pc(x) putchar(x)
#define LB lower_bound
#define UB upper_bound
#define fi first
#define se second
using namespace std;using ll=long long;using db=double;using lb=long db;using ui=unsigned;using ull=unsigned long long;using pii=pair<int,int>;using LL=__int128;
const int N=1e4+1,M=100+1,K=600+5,mod=1e9+7,Mod=mod-1;const db eps=1e-6;const ll INF=1e18+7;mt19937 rnd(263082);
int n;map<string,int> f;
void calc(vector<char> s){
	if(s.empty()) return;
	if(s.size()==1){
		cout<<"query "<<s[0]<<' '<<n-f.size()<<endl;
		int x;cin>>x;while(x--) {string c;cin>>c;f[c]=1;}
		return;
	}
	int Le=(n-f.size())/s.size()+1;
	vector<char> t;
	for(auto i:s) {
		cout<<"query "<<i<<' '<<Le<<endl;
		int x;cin>>x;
		int flag=0;
		if(x>=Le) t.emplace_back(i),flag=1;
		while(x--) {string c;cin>>c;if(!flag) f[c]=1;}
	}
	calc(t);
}
void Solve(){
	int i,j;cin>>n;f.clear();
	vector<char> s;
	for(int i=0;i<26;i++) s.emplace_back(i+'a');
	calc(s);
	cout<<"answer ";
	for(auto i:f) cout<<i.fi<<' ';cout<<endl;
}
int main(){
	// freopen("1.in","r",stdin);
	int t=1;
	cin>>t;
	while(t--) Solve();
	cerr<<clock()*1.0/CLOCKS_PER_SEC<<'\n';
}

详细

Test #1:

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

input:

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

output:

query a 1
query b 1
query c 1
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
query a 3
query c 3
answer aaa aba cxyxy...

result:

ok Ok in 32 k

Test #2:

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

input:

5
1000
39 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 asinzxcdx aspbminxpv asvkmpxzvz asyiwxmrah atmdlhmqeg atsriqzwe aueglqrbx awsnmluiz axuoo ay...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 43
que...

result:

ok Ok in 2092 k

Test #3:

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

input:

5
1000
37 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 arjoyiqr as aspbm at atxufcith auqxqbwt avlw avrncw aw awt azxotgfqvy
39 bayaeq bbfomoiaww bbmz bcbdqskzn bctbn...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query b 43
que...

result:

ok Ok in 2136 k

Test #4:

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

input:

5
1000
39 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 aroblpmamk askwvv atbawwx atjm atq atugmd atxghf aucaqekh auczfziod ave awsnm ayst
28 bcfsesgfb bcvoypl bd...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 43
que...

result:

ok Ok in 2139 k

Test #5:

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

input:

5
1000
36 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 asin aumeynnlq avrnc aw aykvmkyj az
36 b bbmigtq bbn bbqlfzik bcbqol bejoo bewqci beypco bg bgot bii...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query c 44
que...

result:

ok Ok in 2115 k

Test #6:

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

input:

5
1000
35 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 axdvysy ayjo ays azjqtlkiq azsin
39 bbmig bbnxbhq bbsxqb bcbqo bda bdfq bf bfz bglpdb bgmpyqlp bh...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query b 43
que...

result:

ok Ok in 2118 k

Test #7:

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

input:

5
1000
39 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 apqmilwkb apyhwp aqek aqjnnffmv aqnhovlt aquud arobl asp auptym avemciuqm awgymamlj
39 bahnzdwto bay baz bbuu bcjmo...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 43
que...

result:

ok Ok in 2232 k

Test #8:

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

input:

5
1000
39 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 atmd au auczfzi aup av avbr awa
32 b bbee bbfomo bbmzbi bcfnclq bctbnb be beqtjso bfgy bg bhjqx bi biqn...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 44
que...

result:

ok Ok in 2064 k

Test #9:

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

input:

5
1000
39 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 auegl aupty av aw awgymaml ax ayglnj
39 baapy bbqkfl bbu bc bcaocdwj bd bdfqbvco beutdcs bfnhofcg bggaw bgmp...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 44
que...

result:

ok Ok in 2032 k

Test #10:

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

input:

5
1000
39 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 athfmnl atju atoxgbly auegl auufrr awnfhyqu awutg ayuhj azkxx
39 bbmifnu bccu bdcmjsf bdknp bdrdv bdxsysc...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 45
que...

result:

ok Ok in 2147 k

Test #11:

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

input:

5
1000
39 aadbd aadbg aaemf aaepzchvxg aapihz aaqjqvgx aazfccep aaznfe abakwq abbwcmdh abdhdofrs abdjlpez abeaa abezgbabhd abgbpa abhkmvmahb abhtaev abicf absaa acaeaej acbphie acfkbefqye acppg addewp adfdzdbk adgafp adgdcc adggl adlgbz adofnvb adxmrrdah adzzc aebna aeuibuzhj aevgokblao afaagfaft af...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 64
que...

result:

ok Ok in 2659 k

Test #12:

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

input:

5
1000
39 aabwpote aaclnnc aadjkgs aaemccd aapihztr aavaacml aazdodzr abbaeuada abbriejjk abbzfui abcdocbn abicfcs abjcdznj abkcmdgj abrlkfgb abuesdgjja abzegbl abzgbaz acfkbefq achabzba acpqzataa aczbgcb adaugbcu adbcbjzmdm adbfgzpf adfdzdbk adilahbc adkwjlfr adzabda adzoazp aebaaaq aecdfcepla aeec...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 67
que...

result:

ok Ok in 2775 k

Test #13:

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

input:

5
1000
39 aaaac aabcfn aacafh aacklaael aacqahce aadaagbh aadneaeg aaeahnfag aaedi aaegsqcag aafbkbfcra aaffddb aagecekeae aaghla aagpa aajdhjlba aakbae aakcbfobaa aaldd aamdenfa aankdcf aapega aasei abahdehb abbepbab abckdagafa abdba abebkcfd abfjkz abgvilfhsb abkba abkccbhd abldadjvgf abletocsbb a...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 86
que...

result:

ok Ok in 2721 k

Test #14:

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

input:

5
1000
39 aabbhcc aabfaakbdp aabpmcgoa aabzaecvji aadcaoscc aadcbqgafi aaeizjcec aafaedcb aafbefhcab aafbygbcc aagobdhafb aajhdbdlm aakbaezd aakcbfob aalddlb aapbkagbc aazaqjeccb aazfccda abaaajaazg abacedigfa abacliencb abahkdcea abbbiboacc abbqbnoc abcaaucg abdbpbib abdsaibdfc abfjkzca abgklkfg ab...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 80
que...

result:

ok Ok in 2688 k

Test #15:

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

input:

5
1000
39 aaaaaibb aaabaa aaabceaid aaabf aaagbba aaagpabe aaahcab aaamdca aabhbhbf aabhdl aabicbiaa aabjcngb aacafh aacdcaca aacia aaclg aadbb aadfqjoead aadhbkb aaeabdadfo aaeecf aaegoacbo aafaakbdn aafcbd aafdea aafrbd aagaaekag aagbla aahgfs aaidc aaijhabf aaiqeccd aajafabced aajgc aakac aakcdbg...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 96
que...

result:

ok Ok in 2984 k

Test #16:

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

input:

5
1000
39 aaabfdi aaabied aaacbfg aaaeebaf aaafbeabii aaagbbabh aaaqpbb aaaudai aabaabge aabbbdc aabcehac aabeabfacb aabedfk aacaeaaeac aaccfdc aacgdicaa aacgebfcba aachaad aaclgja aadaaaia aadaccba aadcfda aadefbcdme aadeghkgci aadldkn aaeabdadfo aaeagehadb aaegoacbo aaejmhd aaemccd aafaedcb aafcbk...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 97
que...

result:

ok Ok in 3029 k

Test #17:

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

input:

5
1000
39 aaaab aaaad aaaaeddca aaabceaed aaabf aaacbaa aaaedfecd aaafd aaafdegda aaamaab aaanae aabaacfca aabajbdbda aabak aabbgddaaa aabca aabcbacdc aabhbhbf aabjga aablhadhai aabmdadca aacababa aacacid aacaecabac aacafab aacamaabcc aacbad aacdco aacdfja aacegj aacgacacab aactecblfi aadccbd aadcda...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 124
qu...

result:

ok Ok in 3152 k

Test #18:

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

input:

5
1000
39 aaaadbaab aaaagbae aaabhab aaacakhd aaacbcbaqe aaadacda aaadfagae aaaeaaaebr aaaeaekea aaaebbdfe aaajbbb aabaabgd aabaeefbfa aabakfbeb aabbaaai aabbbbcfbj aabcaag aabceabff aabdbad aabdgbb aabeaaadk aabfbeba aablhadhai aabpmcgic aacababaae aacaeeabcd aacafhbbab aacagbei aacahha aacbaebc aa...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 125
qu...

result:

ok Ok in 2773 k

Test #19:

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

input:

5
1000
39 aaaaaedd aaaab aaaabb aaaabc aaaadda aaaaeabb aaabaa aaabbcaabh aaabbncfba aaabd aaabeda aaabi aaacaad aaackaaee aaadbaab aaadbc aaaddb aaafbfdkd aaafdf aabaaaf aabab aababj aabadaaca aabadj aabagaabaf aabakcecad aabba aabbac aabbacca aabbak aabbbadfa aabbbfaje aabbiabba aabcag aabcbec aab...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 131
qu...

result:

ok Ok in 3378 k

Test #20:

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

input:

5
1000
39 aaaaaaakf aaaaaadda aaaaacf aaaacaabc aaaadbaa aaaafaia aaaafeaeeb aaabbcaa aaabceaaa aaabdbb aaabeda aaabiaagh aaacbcbaqe aaacbdf aaaceaa aaadacaa aaadeab aaadmaa aaaedcabgc aaaeddaba aaahcdabec aaaiabaa aabaaaabd aabaaiaba aababifbe aabadaba aabaekfa aabagbad aabajbdbca aabakce aabbaaai ...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 131
qu...

result:

ok Ok in 3391 k

Test #21:

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

input:

1
1000
0
39 bagaoguesy bajdjjxkus bamxlzqrbg baqstjbgkd baxomczwvf bbcczeqbln bbfivcdxcq bbkdokgwfw bbmbmkokgs bbvoexrygb bcaymppyki bcmiphiusu bcmxmroxcd bdbyzxwgsz bdldfhxemz bdrmxzkoqg bdvsrkdfcx bdwxcxgzkg bdyfujqyvy bdzmrqmadj behsimcvqc benazdbkro benhdntvhr besoyqwdkv betszrnnlz bfcxfgxcgh bf...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query b 251
qu...

result:

ok Ok in 2518 k

Test #22:

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

input:

1
1000
0
39 babuzeiopu baekaudviq baerbtrcoo bajklhxyid bajxsdfnaz bakbkywipe bakwsjgopl bamuoeesxn bamvowdurh bapdftjwal baspeslstz batmiwceso bbcbfvdhfu bbdzcicloo bbepavivkn bbeqqubtse bbexwkxbmf bbgsyxgcwt bbijqibivd bbjedqxpgn bblrcvjgyr bbokvwoiaq bbrcesdatq bbtteamjpn bbyapidula bbzowmhuot bc...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query b 193
qu...

result:

ok Ok in 2750 k

Test #23:

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

input:

1
1000
39 aahisutiku aakxjvgzfg aamvtdufhl aaprijqexs abeysgmdvz abkhygxbld abyfnocctt acboavgdvp acrpgutmfc adaavgwzbu adkpbomane adpyjhbwrv aekrlovqls aermhtyecx aewbmuirzf aexqszegdv afiiruyqvo afsdvxrnhb afsyygzcka agtnnhrupd ahaknmkimq ahjklgsjax ahytpwuomj aicwhufvul aiuliykvuc ajcftflmkr ajgj...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 124
qu...

result:

ok Ok in 2528 k

Test #24:

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

input:

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

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query b 177
qu...

result:

ok Ok in 2403 k

Test #25:

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

input:

1
1000
0
0
39 cbepuznjbc cbilnwqszh cbnhflckuo cbrqmcwarn cbrwvaeoqj cbuvzuspvx cbvbibnvnn cdjdgylqpc cdplbcgtyo cduoxeltku cdzalgjsmw cejvnqvmhl celaublikb cerewvvqgh cessnvlrjn cesxiflbyh ceubvibwjd cfhzajfovw cfkoyozflw cfooswyowl cfwophrlpf cghgmweahs cgxcmjjeqz cgynwaklfm chaamggabe chmeekfwxl ...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query c 238
qu...

result:

ok Ok in 3235 k

Test #26:

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

input:

1
1000
0
39 babktgvctu bacckliudy badycnijil baetozsvwo bafkjjimwe bahqwfghge bakdzdncvx bakxnjuted balwwpmrvk bamtkbtrfg baomixiagc baoqpmlyvb bapyoakqbf bapyticavb barehblwyd bashpgkanw baskvaewdh batatbiiql batovgtlhc baujzrmbin bavkmgxyfm baxwzfneou bayjneujql bbaljjubye bbcgjuyhye bbclfgqctn bb...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query b 317
qu...

result:

ok Ok in 2496 k

Test #27:

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

input:

1
1000
1 anpmcjtvhc
39 babqiytdti backovxsdu bacnnmlgfv badvigqcqh bafemlfuaz bafvsugtiw bagguxpimu bagwdcjohm bahoawcolg balfvfqttv balnimeoft banmitywys banvduixxg bapymnchsz bapzhdkqbt baqebyoopv baqqjcbolj bargayxyqd bargijraui bariqnnjak baryhhmrcf bbajtjupkh bbedkgsiws bbefqfqwci bbekcgkqrw bb...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query b 332
qu...

result:

ok Ok in 2593 k

Test #28:

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

input:

1
1000
0
0
39 cadaytkjkd cafzgsqgfu caqlhlglip casxpxqqoa catxklbkrn caxsnclszq cayihgbkpv cbbdesifkj cbggreijir cbghfxiqvo cblngggqxz cbnnrjgzpl cbtsxigphe cbycfnbeum ccfxoopuqo cchkurujux cchkvtxtfv cckcujdlkt cclipuaeeb ccpkkayjro ccpmdrsiux ccuwfizwcu cdtcseheyf cduzwxdmmc cdzcevyhwe ceqeoaclwb ...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query c 200
qu...

result:

ok Ok in 2575 k

Test #29:

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

input:

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

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query i 314
qu...

result:

ok Ok in 2483 k

Test #30:

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

input:

1
1000
0
0
0
1 dkthhcxrcq
39 eakgfiehic eaqjfngdky ebgxwpmnxx ebidmjgczs ebubwrmjdc ecdjuyzyjs ecmzzanhuc ecsnhvefww ectepkuesj ecxteexpsq edamjdhdsc edclhhotsr edcnkbnygo edncewmebd edvzdthtre eenmevmrpj eepcpwznzq eetytowaut efhqrvrith efkkfcqpkd efuxblfnes efwltxuxuh efzyzsjriv egdprfrxcx egsgnhs...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query e 236
qu...

result:

ok Ok in 3213 k

Test #31:

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

input:

5
1000
39 aaaiqwexnq aadjcquqdq aafaldvvzr aaflmsydwu aafwzaqmhr aafypzoakd aahtirtmve aaitvirspt aajkhyjujl aajwmyiykc aamnvriles aamotubelz aanjhaxtjv aanpnufnlu aanxeqwcui aaorahdigy aapdnumytf aarbiaepor aarnjuiyeu aaroebtfdu aarrnzpyvb aasikbabwc aaslyrzuyk aaxojiftfv aayjpcijnd aazjxazhbq aazw...

output:

query a 39
query b 39
query c 39
query d 39
query e 39
query f 39
query g 39
query h 39
query i 39
query j 39
query k 39
query l 39
query m 39
query n 39
query o 39
query p 39
query q 39
query r 39
query s 39
query t 39
query u 39
query v 39
query w 39
query x 39
query y 39
query z 39
query a 1000
a...

result:

ok Ok in 2014 k