QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#402321 | #5161. Last Guess | linmou | AC ✓ | 2ms | 6336kb | C++14 | 2.1kb | 2024-04-30 11:50:59 | 2024-04-30 11:51:00 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define rep(i,l,r) for(int i=l;i<=r;i++)
#define drep(i,r,l) for(int i=r;i>=l;i--)
int rd(){
int res=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9') {if(ch=='-') f*=-1;ch=getchar();}
while(ch>='0'&&ch<='9') res=(res<<1)+(res<<3)+(ch^48),ch=getchar();
return res*f;
}
const int N=1e3+5;
int g,len,S=1000,T=1001;
char ch1[N],ch2[N];
int mn[30],cnt[30];
bool w[30][N],blk[30];
int ans[N];
struct edge{
int to,nxt,w;
}e[N*N];
int h[N],Cnt=1,cur[N];
void add(int u,int v,int w){
e[++Cnt]=(edge){v,h[u],w},h[u]=Cnt;
e[++Cnt]=(edge){u,h[v],0},h[v]=Cnt;
return ;
}
int d[N];
bool bfs() {
rep(i,1,T) d[i]=0,cur[i]=h[i];
queue<int>qu;qu.push(S);
d[S]=1;
int x;
while(!qu.empty()) {
x=qu.front(),qu.pop();
for(int i=h[x],v;i;i=e[i].nxt) {
v=e[i].to;
if(d[v]||!e[i].w) continue;
d[v]=d[x]+1,qu.push(v);
}
}
return d[T]>0;
}
int dinic(int x,int flow) {
if(x==T) return flow;
int rest=flow,k;
for(int i=cur[x],v;i;i=e[i].nxt) {
v=e[i].to;
cur[x]=i;
if(d[v]!=d[x]+1||!e[i].w) continue;
k=dinic(v,min(rest,e[i].w));
e[i].w-=k,e[i^1].w+=k,rest-=k;
if(k&&x<=26&&v>=27&&v<=26+len) ans[v-26]=x;
if(!rest) break;
}
return flow-rest;
}
int main(){
g=rd(),len=rd();
rep(i,1,26)rep(j,1,len)w[i][j]=1;
rep(i,1,g-1){
scanf("%s%s",ch1+1,ch2+1);
memset(cnt,0,sizeof(cnt));
rep(j,1,len){
if(ch2[j]=='G'){
ans[j]=ch1[j]-'a'+1;
cnt[ch1[j]-'a'+1]++;
}
else if(ch2[j]=='Y'){
cnt[ch1[j]-'a'+1]++;
w[ch1[j]-'a'+1][j]=0;
}
else{
w[ch1[j]-'a'+1][j]=0;
blk[ch1[j]-'a'+1]=1;
}
}
rep(j,1,26)mn[j]=max(mn[j],cnt[j]);
}
rep(i,1,len)if(ans[i])rep(j,1,26)w[j][i]=j==ans[i];
rep(i,1,26)add(S,i,mn[i]);
rep(i,1,len)add(i+26,T,1);
rep(i,1,len)if(ans[i])add(ans[i],i+26,1);
while(bfs())dinic(S,0x3f3f3f3f);
rep(i,1,26)rep(j,1,len)if(w[i][j]&&!ans[j])add(i,j+26,1);
while(bfs())dinic(S,0x3f3f3f3f);
rep(i,1,len)if(!ans[i]){
rep(j,1,26)if(w[j][i]&&!blk[j]){
ans[i]=j;
break;
}
}
rep(i,1,len)printf("%c",ans[i]+'a'-1);
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3776kb
input:
4 5 reply YYGBB refer BBBGG puppy YYGBB
output:
upper
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 4044kb
input:
2 12 aabbccddeeff GGGYGBYYYBBB
output:
aabacaaabdde
result:
ok
Test #3:
score: 0
Accepted
time: 1ms
memory: 4032kb
input:
25 500 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqoqqqqqqqqqqqqqqqqqqqqqqoqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjq...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`aaaaaaaa...
result:
ok
Test #4:
score: 0
Accepted
time: 1ms
memory: 5984kb
input:
24 500 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvuvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok
Test #5:
score: 0
Accepted
time: 1ms
memory: 4144kb
input:
23 500 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqq...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
22 500 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccoccccccccccccccccccccccccccccccccccccccccccccccccfccccccccccccccccccccccccccccccccc...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
30 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
vajjablpmyavasaaqaru
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
31 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
addduiasiaafbuqvayya
result:
ok
Test #9:
score: 0
Accepted
time: 1ms
memory: 6036kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
sawaakoaaaeaoaahaaal
result:
ok
Test #10:
score: 0
Accepted
time: 2ms
memory: 3944kb
input:
25 500 eppppsppppppappppapppaswppspwppeupppwpwppppwppspppppppapppppspppappwpppppspspuppppppppppupwppeppppppppuppppusppspppppppwppppppppspeppppppppppepspppeppuppppwpppppppppppppwpppppppwppupppppspppppppppppppupeppppppppsppppeppaeppppppppppppppppppappppppppppppppppsppwppuappppepupuapppeppppppapppppppp...
output:
vayjogcjsnarhzfrshqbxhgirsgmitjvlabdikinenuizmgwwuqtzohxzeudgtmnhsaiacratgwgjljtkyetowdwlaibdvksccbsonlmrdjlgbngconrstmidytrdknwgjvyxzueqskrnvqgzmtvaelfxubiaqctbexjeftotinkqfsusinolqbsxjgcrqwkerywwmyylevubemsnzagqjtuvcuhvrbcnfcxznfymkquskbhffkcxrezezkemfyfgfzirxlhanfbvrldlhfcavqzzcbyhycwtknftnxhomqg...
result:
ok
Test #11:
score: 0
Accepted
time: 2ms
memory: 4016kb
input:
25 500 smxeetdiacxotgkpibsieraggqfjdbjxykzpiinrjxkmcczngkgpidtnacrzonzmrjsyfaiptigawddifgqxiiqibyymxvzncvifqsyfxmeodqwvwgqegpizkzfvsyywomkaviwjcasacijfbpjibvsroitinpfddjzcdkmxeisynrzipizmoyveveqwsfaqixobgrkstwtdtcfbwrvyvrgwdcmjozmitwcfitpzqdnikqbcpzyerwwigzdiczfmagmvacqxwbbiiiqrgxwvprvicjdsajinpmrrn...
output:
lxrggumnthrcukqbzoljgstkkayvmovrpqfbjjwsvrqxhhfwkqkbnmuwthsfcwfxsvlpytjbuzktdmmnykarnnanoppxrefwhejyalpyrxgcmadedkagkbnfqfyelppdcxqtendvhtlthnvyobvzoelscnuzwbymmvfhmqxrgnlpwsfjbjfxcpegegadlytajrcoksqludumuhyodsepeskdmhxvcfxjudhyzubfamwnqaohbfpgsddzkfmjhfyxtkxethardoojjzaskrdebsenhvmltvzwbxsswengqqwz...
result:
ok
Test #12:
score: 0
Accepted
time: 2ms
memory: 6196kb
input:
25 500 zzzzzzzzzzezzzzzyzzzyfzzzzzyzfzzzzzuzzzzzzzzyezezzzyzzzzzzzzzzzzzzzuzzzzzzzzfzzzzzzzyzzezfzzzzzzzzzzzzzzzzzzzzzzzfzzzzzzzzzzzzzzuzzzzzzzzzzzzzzzzzzzzuzzzzzzzzzzzyzzzzuzzzzzzzyyzzzzzzzzzzzzzzzzzfzzzzzzzzzzyzzzzyzzzzzzeezzzzzzzzzzyzzzzzzzyzezzzfefzuzzzzzzzzzzzzzuzfzzzzzzezzzfzzzzzzzzzzyuezzfzzz...
output:
qjtwjfaynbvccrdxmkyemidubqxmbidthnhseryxlaeymvbvdqgmjplbtulcjwhffjcsftewuqbxixoaeklqmfcvjiyeuthdcnfrqlwcoynrwjtxyinarlkxyfwkcjwxsqbcldqgnhuohjjbalwyasdpgxqdrbenwmyonrsplnurofmmjjfkxwoqabotkkoatikpndnkqcqxmlpggmanbphuvvttrwehopqgmkreelbdmyvrhgivicskkpqgklfpyytlsxixrlogyvqanirnpjbxexfdmsvgfiepdgrsdfgd...
result:
ok
Test #13:
score: 0
Accepted
time: 1ms
memory: 4120kb
input:
26 500 ffafffffafffffffffffffaaffaffffffffffffffffffffffffafffaffafffffffafffffffffffffffffffffffafaffffffffffafffffafffffffffafaffffffffffffffffffffaffffffffffffffffaffaffffffffffffffaffffffffffafffffafffaaffffffafafffafffffffffffffffaaffffffafffffffffffafffffffffffafffffafffffffaffffffffffafafffff...
output:
jlfbhgclfgttbbjhnbeionffhnfhcvbntvnxbonioebgbbwobonfobtfnofjtwbtbpfnjtbbgwphwpgxgjcbvtnothftfwbhhpbcpjifdhjwwfhgdijtwdifhfponbphownknommrhrkojflkjklplbekwedltcfoefidwgchwiojoenkfnjlitodlohqpluwhqcusfgumbuhkqifumrqrrcdskehgmktsttqfwnsuwcqujjetdpkpbtqcweuhrupxsrfrtxhkqryirsusgtjplplipmrftgcutxivpqggci...
result:
ok
Test #14:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
26 500 eeeeeeeeeeleleeeleeleelleelellelleeeleeeeeeeeeeeeeeeeeeeleeeeeeeleeleeeeelelleeelleeeleeeeeeeeeeeeeeeeeeleeeeeeeleeeeeellleeeeeeleleeeeeeleeeleeeeeeeeeeeeeeleeeeleeeeeeeeeeeeeellleleeeeeeeeeeelleleeeeeleleeleleeeeeeeeeeleeleeelelelleeeeeeleeeleeeeeeeeeeelleeeeeeeeeeeleeeeeleeeeleleeeeeeeellee...
output:
ajmmzkdgsgnaegianrtejueeudecexaxegkcxrtppdcrdofsscijdakieapbbgacxkfxbbbireaexckchxcrbebmsmamkmffdrafprsghjdkbckgxrwpbkvxehbjgyyikakjgvivihdwrebtatpkrrdrftpjeuboaejkirryadabpybghxxihkvagkpvikjpxxuusgwbdhynwdxshjivadawgayxygnbtgkwhrxnfcrootkcbrxbyugoonsimbhnormuvpvvptbuzwannxtbstntxooiwmwswhxsvskhntns...
result:
ok
Test #15:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
26 500 dddddddddddkddddddddddddddddddddkdddddkddddddddkddddkddddddkddddddddkdddkddddddddddddddddddddddddddddddddddkdddddddddkdkddddddddddddddddddddddddddkdddddddddddkdkkkddddddddddddddddddddkddkddddddddddddddddddddddddddddddddddddddddddddddkdddddddddddddddddkdkdddkddkdddkddddddkdddddddddddddkddddddd...
output:
enecqarucfidncbebhgifbebcemelvfbdrnfcidebbjbbqqdrhiadezbchndhjnuhcubshtnehbeiultjhmejfnjlqeprjmtmtfjjthicttdttcanxghadlsoctemjtaqueenxucefhljotjopqrrqggoqtiyuqiqsduxwimewewtpnihipfppespldixnrxpfxffffmrfyujhpjiuxfwalhwftnrmrffttpjmljusytxuayjsgmugxvuxtdyshamdvsszamdjxriwmqumghwuspzuamasazgszpsgswsthu...
result:
ok
Test #16:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
2 1 s B
output:
a
result:
ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
5 3 idn BBY mvh BBB cva BBG you BBB
output:
ana
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
3 2 jt BB bg BB
output:
aa
result:
ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 4088kb
input:
4 8 jzhqnmbc BBBBBBBY quubxmwq BBBBYBBB zkmtxamf BBBYYBBB
output:
cccccctx
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
83 28 yyjekmbfltupxglbgnniupgrbbhh YYYYYYBYBBYYYYBBYYBBBBBYGBYY gvgwlfkbriylbdfmajjupyijghxk GYYYBYYYYBYBBYBYYYBYYYBGBYYB jjqnbpooxrfsqntbitwbgrplljzp YBYYYYBBYYYYBBBBBBYBYBBBBGBB lqdozqobdhvzmtusczvxthcfvymz BYGBBBBYBYYBYBYYBBBYBYBYBYBB tkhuvtpuhnmzphnqhpfzfsokewoh BYYYYBYBYYGBBBBYBBGBBYBBYYBB gjer...
output:
gndxhueyqpmeryvhxafwwgkjbjss
result:
ok
Test #21:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
13 78 imwrldcrlcooqlzmcczciijjughombdengtcurojkwqyuoqltmduvwebvyysshwjythllxhrwmcepz YYYYYYYYYYYYYYYYYBYBYYYYYYYYYYBYBYYBBYBYGYYYBBYBGBBBYYYBBYYYYYBGBYYBBYYYBBBYYY pkcwlbnthqplkuohoonvnqbouaakqdpwsyoscpqagkfhfpualsnonjnkkdtudoyvknpjgyhaqoxwak YYYYYYBYYYYYYYYYYYBYBYBBBBBBYYYYYYBYYBYBYBYYYBBBYBBBBYBBB...
output:
oeeejirjribeecfgghizhhiifjihtlzkulmzjmxzkmlzoyoetieqpcsdqperqtzjtrtqpswwvcwxyy
result:
ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
38 99 veadnsajqcnbynqxawytaccryhlefhbhusmjhplsemwsagxkiryxfwrsarpmhsrpikievjpafqszuqklxetizrtlwxzxyelalsr YYYYYBYYYGYYYYYYGYYYYYYBYYYYYYYYYBYYBGYBYYYBYYYYGBGBYYBBYBYYBBBYYBYYYGYBYYBYYYBBBYYGYBYBYBYBBBBBBBB njkybjdzyrkufafkessouzzsbkyimahkltsqqpngkgghqodbebxahavilwxmbmkqkucahpokaktlylhnmyjyxwbmrqhepj...
output:
opvelvcafcbmuywvaduunktqwejvzqybpwebcpgegcfpnmnnimyupztcoqgvtjzgaihzejzxxnptlijyacziataqghhtoqwfjdz
result:
ok
Test #23:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
4 113 suwodmkfmlkafcxpdgicvnrluhqkmulfirwtawvjxzzufmxruiiezmyebjlpxkzujfxjosfdqlbwfqtyripgsshmclhmtsosukwlgnzqvtbygnlau YYYYYYYYYYYYYYYYYYYYYYYYYYYYYBYYYYYYYYYYYYBBYGYYBYYYBBYGYYGYYYGBYBBBYYBYYYYYGYYYBYYYBBBBYYBBYBYBBYYBYYBBYYYYYYBYB qpizotexiviavifrwmnhmqgxvxdueohjcyrzsinuuuhpbknejcjupvqhtnlsssylqg...
output:
aaiaaaaaaabcababcccbcdeedededffeffgggghiiiiijmjjkkkkkllellllmmzmnnoonoooppppfpqqqrvrgrssttttvuvvvvvwwwwwuxxxxyyyz
result:
ok
Test #24:
score: 0
Accepted
time: 1ms
memory: 3892kb
input:
102 377 gocqhgzrtqkevpckmjqhgbhpxtoliiukyxibpizzagbxroteetcwzpgzybsaxrhvudaxrrzjhisrbumzvaaaokwzpekgczhkbjqlgrdijvecheemmcoieoyhsyhooaxzmronnoovfdwelqbhlrqovoiubzbdixkvzujlsadyysnxcmvcxcsayqjyidlignyemacoyyuwjvpkitgsyjuzjyjtgxzamytxssxbocvprlhksvhegfjuldompxslryoubylyxzaospsxecpctamowqxxngbjtvoskmhv...
output:
fzhbpvvtfsjzghjjvoanwlhesznrmaqdkvrmnkxxcuaxtenfaqpctuywoclxzlgiscpcylgmjmtltvcjmmohwaiihbsonoraefpauuszkmewlodhhorizaizitonwailoikleknwtlngirnvxeujutmnszyjltnniospmismtvvtnltapcyfmjwhhabewciomfutgmqufzdvregkfbllubjmwxvqjiaoicgvslnzmcykvxszfjqevigtekrfbmcihthffbubmertrhniybzfxpjdpyejmvnmyvzyribcyhkw...
result:
ok
Test #25:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
84 372 esizksnrmnyidougizdjmkksweafwdywugqdkisbdjaxfjghvoiwxhsmntnkyrimjajlspiqfomzyvpxdpispoveqzrcpfyntfxpcllewbdftkcwpjodchqeyfavuainqvggspnirpjpdcdcljmwzfkbrzleubsvxoeyzwzmmkrbiujgtcwpkeqtenikfnwqspnahiqwdxarppclogyrdpmqwuhqrdhgjfvjxifuksfhpkxjbmywimtettgrtgexekpaacpvtgorcljdnodtdudsatgszvvkpxkhh...
output:
priirafhcttvbcwmukqupwazyrzdryqixzkfnnamuzjifxtwhryteowgwdtrygfvyaxpjzvolkimwxfqpqzevqjmhzezhvtzyowazevweuzictoaxwabyiknexmxymtqvfcvysakdlegsotvhbzrrfcimfazueugoqtrdbcqrkxdtqatexonjtkeargeblphfcxscjdcaqzatcdksezpuwgvunnyymffvdfdpwrhfmvpawqoafeujyguhlelzcfuhnmgqrsxxzfeaxpyvtjxthrqevetoixfmdmzjvkwxixn...
result:
ok
Test #26:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
120 341 qddkzllppvsamvuytcyvfmcgdsowlmasqwecvmbfkfgbmiluxdghcvyfiyynhobehlxsoslwjoxkkjmmcjjyjhuntirpeszmmsfcdduerkrzasnxsczqzcyunsqaalvjkkdrksdjhgojrkljxzflsdljjlbjrhjhhblrqhgtljjieelickdyszvkcskljuykzcpeuttphlonwanfndlkqcbgkjvocnwugyyxxbaccwpyrmyaapkciubysrjvemksuamhojymppamhhvvockwocvvjdmmssedjuzn...
output:
tnraljmrauiwhqddhuqxevuwjktugbqedadidsxnduvdoawjznplzlwxkgvfwyrcvyvkcliahpquktdvezcoeoxlmjrflyvrvynqmchlgbxnhxxlmdqdnsugabizimrirmzwdyewmjojiaifcbbrkivmfjuynkrwmctmonrblnataybzyyynwojbqozhdbpyxejgrdsknwzulbicasbwdjmwylxjawtrhgawavmilelwmoomtvlohtdsorjlixtcfedwfabomegtndzvhhfyizcnhiacpvicuwrkmiccrwdk...
result:
ok
Test #27:
score: 0
Accepted
time: 2ms
memory: 3836kb
input:
500 500 uzkbwmwxenfvjjmbfpvgdgkfcrtjgftkcsdhgxlqcqyrtzqggauozihovqxyepxlqsndunqfvrwqhjszvzmttihgcwvyxugzbkxjwfqvvpakmrkohzrutlbfludsfkzmjrzkqsnstnxnlieshrqfqqfgttcsdinuvqzyueqhhtknnbnhstvabfyfpwszpkwvfzjlfnzgnlzzdeqcemnvcrbbxytfhajyvmaxfmczviyqafmkwmmrelmpmzcbwjltbejfuyizjyggmhkgmuhjijtsrfwzmmmkqieh...
output:
xtkupmikoalqczppaqstzuiezbugnmrfezofiejbxedkwmhldzkqactqmmcsuwmjddllfifimjtratgnnerahiklscixwmfrciloflzwalrxbtfglaouusctqbsevtkhaqtcqqothbasjyihutvpkdgaweyploaqfzsuqjotuxviounxiapvtcfovxyeutvfmgvhyzrcilfuxnappehaifxawqghytxvrylxyxuxkzqmoprdphfgaidifgmdfyvzyzvaxlzxfqbithwwglczjhxuoobaxsotlgfhkdauudoi...
result:
ok
Test #28:
score: 0
Accepted
time: 1ms
memory: 4012kb
input:
2 500 cjvtcyhtzxnkypncxcydztkdxkosxdtlxzaetauygumxwzgkqittrtirkgnjuwanpdokgrbvwwlxxmivnzgnfelcxzmggmfwrtuexpxxyxuniivgwiykbzhnfbhgtoizuumgvoazbkcgzyhtamdsnnuejfwgmgbffdpnaeulrjfiflxrfqmkxkqkfwqcylsieetenjwbgmzewvgownfiylsvjzijpgrdfozciarqzqckecrwevmdtilipcerlcmbvogajnlfiwwcfurfxgtwbavfogarxcovbrwvlo...
output:
aaaaayaaaaaaapaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbcccccicccccccccccccccddddddgdddddeeeeeeeeffffffffefffffeefpfffgggjggggggggggggggggggghhhhhhhhhhiiiiiiiiiiiihilijjjjijjjjjkkkkkkkzkkjkkkkllllliklllllkllllllmjmmmmmmmmmmmmmmmnnnnnnnnnnnnnnooonoooooo...
result:
ok
Test #29:
score: 0
Accepted
time: 1ms
memory: 3916kb
input:
10 500 ltzpvgzioqzjaorwvcfawsuxrpiaxelpvjvbzkmhmukkanhddeuwnwfbqeiccwqiqsntudhfrrxrwjmphcocxtzbljjcdjmksdvnoklkzvljhmyxsjgzsmuezdeieobpeojmxphuhbkxuqvtokknihunzjztuhuqurethoyiiamwzqppwuiljeygsrclivocqngmwgqeghfwtwunuyvcxcjjufbxwhmijurlgodhscoalsqbdxnizkkjtmqfaynndanjjfzldqukrpmqnsynrvoncnqymegdgvvga...
output:
azwvaawgozkzbabavbbbbabbxakbkbbccccccwvcbccddrhbcddbddddqdcekuedcdeeeemieeeccafpvrdfzffgggfvgbgffdgeggfxgffgpeggsfhhfhghkohghziiiiiiqiiiishioqhhiinhhijhijjbdjbighjkkkklljllllwklkykmlmmmmlmmqtmmmnkzlmmmlmmmmmlnnjnnmnnnnnnmmbnoooooaoogonnlssbnorlmpovuooyxzpkpgxddppprwpoinpkpopoppanpzplkpbipqqpsoqqqjap...
result:
ok
Test #30:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
20 500 gidefqbkbebgnvcgrjfmkuqtipyqlpvrjndoddvuhkntkznjdkfvggaoavkllvbigfvdafoxziprpozvhukhwheyasblhleoxfxwwruvsilcdrttxcbqfnvplqtemgsoftmsnzrgaikbqmyrbykhtpbmrfpgvjiqszkdapksfhbdkmdawcgonddqgzasjtvrjbgkfwxyopyxhprkrsaoxfblohlqyeenggeusnfvgkxalqzhziuckhyhhmefhjpvfjzolfowjvjeklnxgmymaubfcuineyiuzlzpb...
output:
zmeaclzoloanhlbabswmbrgcbvbazcoccddabbiudeffvtoncwvmufefpeebfyamflrfofeacctmfmcubigeuqgghvghgwghhujzwhbniggzfueahgghhhqewjhuhehivkggahfkyezwhhtnbligngsvghtakhgiivzcckiggzikijihikaifbsfkfkpkjwinojkjpsakjjhmlwrlhlfrxezklijiljbklwjmmrlisxmkegimmkwlmnkclkkmhbmpmhxmmgjqqmdjkszzeclmljqnnyknnufaoolnjrzoybh...
result:
ok
Test #31:
score: 0
Accepted
time: 1ms
memory: 4116kb
input:
40 500 hgrkbariyienlarbtwpgttrlmwgdwjisgwtuelybkqyzibmerddzhxpkrikkdglakynfmvzntqkldilwlredsuwiyhvfmdfymethhuqztlwzlsjsoznrcemnwutebgioqndeywylttipnfkjzwrykcsmyeruqzryjuhcyirlakfmzwyjlisxtpdibravckhsunbfdczcfjcdnjcdkhqticcslsqmbldpvatkvnlgcnjzzpsjgoxbdqaqogdiqwngjjyaxcurpfcotfthvlhnyqvkxalealplywzbj...
output:
zdipaunbvfbektwbcjgjdivgerbrgnfecegqnrufywqrmgvrokvacaeecgvhjdxypqciggpowmtgkhmfsbyyugqdlzmhupeigfhkdczuukyevtbmowkxhmafjgsyshaxqiiuxjzicqxkkoejcxslkxfuboqwhaxgbesiakqgrobotjikzhpkmgmlmaczeaqvaqmfdomzjmlztjfninugnjciiqfvnlhmmjcdqoibzvwenibnoapdsunnmipvrqojgwbzavwztlbklyjsjyvpxqluxwquflqilbkflrepekyt...
result:
ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
2 10 dkzttcuhkf BYBYBYBBBB
output:
aaaaaaakct
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
4 10 hzyqaqgudo YBYBYBBYBY drzekuoozp BBBBBYYBBB ydmoszopir YBBYBBBBBB
output:
aaaaboahuy
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
8 10 xpcbenntvx BBYBBBBYYB guunnaqbzh YBBBBBYBBB vkgjtzyejd YBYBYBYBBB bmlrgczqhc BBBYYYBYBY gjeqpkftzq YBBYBBYYBB ytqggdmtoy YYYYBBBBBB okyanrydin BBYBBYBBBB
output:
cgfcfqtryv
result:
ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
10 10 lvqefvmhvh BBYYYBBBBB hwzwczqwzo BBYBYBYBBB ywzwszxeyd BBYBBBBYBB pxryhjeyhe YBBBBBYBBB fpplflfrid YYBBBBBBYB wffgroprrh BYBBBBYBBB atnazpsxkj BBYBYYBBYB wjftdvgbca BBYBBBBBYB lxejbsshfq BBYBBBBBYY
output:
cecfiknpqz
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
2 20 gvmxjisdtqdzqlcythxc BYBBBBBBYBBBBYBYYYBB
output:
aaaaaaaaaaaaaahtltvy
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
4 20 juwgnsochomtjjrwkxzx BBYBBYYBYYYYBBYBBYBB xcfresnspwhbnpufpzut YBYYYYBBBYYYBBBBBBBY nicdnycdwkcwxkzlexij BYBYBYBBYBBBYBBBYBBB
output:
aaaaabdefhimorostwxy
result:
ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 4048kb
input:
8 20 gfbhjraeqpkknoxynzor YBBYYYYYBYBBYYBBBYBB eoqxnsiomjhzyechxzfk YYBBYYBBYYYYBBBBBBBB izclftrifyoacpdwwaxi BYBBBBYBBBYYBYYYBYBB vkmnjqckgcojyuccmzsy YBYYYBBBYBYYBYBBBYYB kotrkwcofjzhzgwiegsj BYBYBYBBBYYYBYBBYBYY kuoenzkgqkxjkenvaywp BYYYYYBYBBBYBBBYYBYY ntfjwmseryvxlgimrynx YBBYYYYYYBYBBYBBBBBB
output:
aaaadegjjhmopnrsuwvz
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
10 20 fgyncfbwipgvfxmohdbo BBYYYBYYYYBBBBBBYYBB icbhpbqvluuvwljfzrci YYYYYBYBBYYBYBBBYYBB cushsnrenivjfzblmwbz YYBYBYYYBYBBBYYBBYBY iqfqmazradptgidhmewe YYBBBYYYBYYYBBBYBYYB kebuhncdbrmdpxqmizic YYYYYYYYBYBBYBYBYYBB vmccbyguslsftfilufvg BBYBYYBYBBBBYBYBYBBB dvrpdiwvdltezikdbpvv YBYYBYYBBBYYYBYBYBBB ...
output:
hbudaehipknqrtuzwczy
result:
ok
Test #40:
score: 0
Accepted
time: 1ms
memory: 6040kb
input:
2 500 gxnlcmqfsmxkzleyreubambwtiyuisiplwrjastyivijshzmfuyjqbqwmtiixxwivmqxpbuboruzaaapaxrllfbonnouzwmjuouvzcoyxytfxmhtfcvsbjvnltirhojtxhtdiqasoajfhrcinjrkzstidvhhdwynweaacmuhctyzeelatwnropiqifxsgxntfycvjrhwpmzeytliurapssrixkjndjzwtjonqzmhhtqyqjacafxkwfrnvjyjcswxrkmhstxgrdaxacuqiqtmdwuiuwzjjekzsaycgc...
output:
aaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbabbbbbbbbccccccbcccccccccccdddddddddddddddeeeeeeeeeeeeefffffffffffffffggggggggghhghhhhhhhhhhhhhhhihiiiiiiiiiiiiiiiiijjjjjjjjjjjjjjkjkkkkkkkkkkkkkkkkkkllllllllllllmmmmmmmmmmlmmmmmmmmmmmmmnnnnnnnnnnnnnnnnnooooooooooo...
result:
ok
Test #41:
score: 0
Accepted
time: 1ms
memory: 4040kb
input:
7 500 kucxpooswpgshqxdswdpxnonzujecioriraskzligwznnduirvonmjmozyxkotblntnzmsgacdjxsrelfbcwhffnqsshpdnuiyvekpkkzhfqadrnhymofwpahuefzyauxunwxjsexozlkauixivyrdrckaxiicawzsvqshnexswpqlnwpfwqxfsqjgefxylqizfouiqmbtkxrjcdpjfhetrphazpatrwkbikmswrsjmuvlmkuhfvzvfpqawtkgtmykusaspvinyqteptvvfgynrehmekerkbpgcbgf...
output:
eeeeeeleaaaaaaaeaaaaaaaabbbbbbbbbbebbbccbccccccccccccbccdddcdddcdccdddddbeeeeededeeeedeeeeeefeedfcffffffffeffeefffggggggggggggggghhhhhghhhghhghhghhhiiiiiiihhiiiiiiiigjjjjiijjjjijjjjjjkikkkkkkkkkkkikkklkjllllllllllllllklllkkmmmmmkmmmlmlmmklmmmmmmmmmnnmnnmnlmnnnnmonooooooonoonnooooopppppppopppoppppqqq...
result:
ok
Test #42:
score: 0
Accepted
time: 1ms
memory: 3972kb
input:
8 500 zsuejmayajrezxaeoppddvtufobaqqrnadgiydzodggiskvrvfyassjbdhbufhmxctpfdqvhykrkqjjltksstdnskjfspencdneizkxxtfdheyhvmnsjdbrjusilipmplxvnfxthruxwdukolyqivyaufoewysvppuqdcdmvwdwgtaqejnfmgtylhgrfcjqagvotoosbisnibzntaetxvemftcocguvgindrppzlooryrqicloefmktmimfqyxlletbymenpljkjybhyfuahardknwfejcojkxyzsl...
output:
cccccgcgcccacacaaaaaaaaaacacabbacbbbbcbbbbcccbcacbcbcccccccccbbcacaccbdcdddgcdddddddeeeedecedceeeedeeeeeeecedfffffffeffffffffgggfgggeegggfggfgggggfggeggghhghhhhhiiiihiiiggihiiiiiihjjhjjjhjjijjiikkkikkkkkjikkkkkkkkjklkklkllljlllllllklkmmmmlkmmlnlmmnnnnnmnnmmnmnnnmnnnnoooooooonoooooopponpppppoppppopmp...
result:
ok
Test #43:
score: 0
Accepted
time: 1ms
memory: 6336kb
input:
10 500 fwpisiecngmypltgnpgwungiorybsqujrjynxduhbxkzzcpmprjkmcngffwriwlauogonaytiewzmvhmfkbqzbhvbuzaxgmrzwhznemrkgkqcfcxznjgqfxvivnzxkttungprndxzumatgitszsuhxrbxiyblepjljdwccbmodtyikdewbqekqnyrdpveilrjuidvbxmidaudrahboegnxxojlllcijvhewxbqhckkdisyyoieqnybydwpyiupduxdxdcbsiflmqomhorvpximunuvgeqrpojynfz...
output:
aaaaaccfaaaacacyfwzzzabbbbczcbcccccccccccbcccbcccccccbbacddddedeeedddeeeedeeeeceeffefffefffdefeffffffdffedggggggfggfeggggfggggfhhhhhhfhhhiiijjhjjjiiijjjigjjjjiijiiijiijjkhkkjkjkjkkjikkijkkjkjkllhlkllkkllllklllllklklllkkjlllllmmklmmlmmmmmnnmnmnmmmnnnmmnnnmmnnnmnnnmoooomoolnoonoooppnpnooonppopppppppop...
result:
ok
Test #44:
score: 0
Accepted
time: 1ms
memory: 3784kb
input:
50 500 rzxpevxmcsvfyfmnmokxtsjtkisntufznueipsounknjbdgoieqoeobnfuncfrokfgdsdujxvtluensnrnyosfsywmltfikmpgofyyutxgxltspvwnqnfvgeolxirwbvvwgwwbxbwbbswrefaklrdmdlzgxpltvbucwfgrpggpobkapydjkzbgfarvqfzssyeepxzesalnpbnuastjecnatiljloelrojistoqxxrwdiehnwbubijlcsgserxmlbbchlhqlndtvmbaztvhspfxdyfuodupczzusgi...
output:
yufdyfbdndudlgdefacajeebdctdstreedsfcaxcefwzdbfeaacedkfhqcapbfwckkeqfnfghgdhghfbhezivgiiebzdhkjfjmejijghdeljikghgcgeeaekkjuajekfkdiktikimjjimmmjmcbmckimmhmkcjhmkhmdimjmcfikgkilglnnnalkkmhanfiddjocnnkerollrnlnnhgllohqgrohpoqclrqkqplpooonnpappdrriiqpsrioghssopqrstkgrppptsrptiqtteospmrqmtqtmsorotjptmqt...
result:
ok
Test #45:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
160 500 hayqlkswaloyrwgikgdxyqsorgjgsohxuyrlfdgptnogrfzfrcmkhyvnpohpgtjhhlalckgubhvbbtinzpykjfayxwqctbmbjdtguonvdihewfxphkfngblmtlxiidbpxnxeiswxfrvbflvisrvxkqqeqzinhgobjfbxhbtfageuinrzyqzhrsqttlmfxgqsdaxkyiajiitwnxnlqggrncbzwrzhtctcunpkhdlqkqtkyfvcuwqftujpufwgeqkrzdfngmshdiwhobeieunukpjgvbdwhjtkaccm...
output:
mjpyvrzpguatqaxutfeenauznkxsfgqfrfdaoydwqimxssimpofnqfailvbgkmearxhgxjvtluftknckiwaeyuedbogewrnlfyzatjgtgrpvjnehxhvwkcydnkwnvxgbifqobxxchmltkwyqpgaanlyunugwtxmayycilokxdtzhcwgpmleawmsvacdywnpnpevqwpkyssvakkmpmslqmgucrzrqoufaausspnahpwkcvrfxhbwcccsbnntbfpstmaesxspfwtseyluftmrkcmifuofjnnhmwfrbveoudsgx...
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
3 2 qf GB fq BG
output:
result:
ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
2 25 mzopyxgqdtsjvueklciwbrhna BBBBBBBBBBBBBBBBBBBBBBBBB
output:
fffffffffffffffffffffffff
result:
ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
2 25 jagfzkndilpxwsbrqytcvuhem BBBBBBBBBBBBBBBBBBBBBBBBB
output:
ooooooooooooooooooooooooo
result:
ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
500 25 ugckltahyoirfewnmspbzxqjd BBBBBBBBBBBBBBBBBBBBBBBBB culezaoqmdwbxgrptynhkfsij BBBBBBBBBBBBBBBBBBBBBBBBB nisywzjurlckehdfxqotpbmag BBBBBBBBBBBBBBBBBBBBBBBBB dwsijpgknaorcmeufythlbzqx BBBBBBBBBBBBBBBBBBBBBBBBB nkbhtrfjygioxlpewqacudmsz BBBBBBBBBBBBBBBBBBBBBBBBB bitglumeakqsrdwfyxcojzhpn BBBBBBB...
output:
vvvvvvvvvvvvvvvvvvvvvvvvv
result:
ok
Test #50:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2 20 ynjmhdwofqxsaubvlktc BBBBBBBBBBBBBBBBBBBB
output:
eeeeeeeeeeeeeeeeeeee
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 4076kb
input:
10 20 wmcthpfyuosdarbnkjql BBBBBBBBBBBBBBBBBBBB rpktmndxwybuaojvgfse BBBBBBBBBBBBBBBBBBBB rainqcsldwtgmjbyvoxf BBBBBBBBBBBBBBBBBBBB ercgnpkbmsaoulifdqhx BBBBBBBBBBBBBBBBBBBB uehkilromqatgnwsdypf BBBBBBBBBBBBBBBBBBBB gelbjwyqcstoxnudvkif BBBBBBBBBBBBBBBBBBBB cixsjvnolhykpfqdatru BBBBBBBBBBBBBBBBBBBB ...
output:
zzzzzzzzzzzzzzzzzzzz
result:
ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
20 7 dmluxoc BBBBBBB psocfxg BBBBBBB iglnjde BBBBBBB zgevtio BBBBBBB ujzbglx BBBBBBB snzcdyw BBBBBBB urvtdyg BBBBBBB fqrnvwx BBBBBBB usrpvhe BBBBBBB ptdqbsc BBBBBBB tuvfrip BBBBBBB wmfqncg BBBBBBB zhufsvm BBBBBBB jiwngao BBBBBBB peoajsu BBBBBBB htcbrdx BBBBBBB lymcpai BBBBBBB hzsfwgr BBBBBBB yqzeaud...
output:
kkkkkkk
result:
ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
3 3 abc GBY daf BYB
output:
aca
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
3 3 abc GBY daf YYB
output:
acd
result:
ok
Test #55:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
4 4 bcda YYYY cdab YYYY dabc YYYY
output:
abcd
result:
ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
2 4 aabb YBBB
output:
ccca
result:
ok
Test #57:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
2 14 welcometonwerc GGGGGGGGGGGGGG
output:
welcometonwerc
result:
ok
Test #58:
score: 0
Accepted
time: 0ms
memory: 4048kb
input:
2 10 aaaaaaaaab YBBBBBBBBY
output:
bbbbbbbbba
result:
ok
Test #59:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
10 40 nvolvefindingafeasibleflowthroughaflowne YBGYBYYGYBYBBYBYYYYYBBBBYYYYYGYBBBBGYBBB tworkthatobtainsthemaximumpossibleflowra YYGYBYYYYYYBYYYYBBYYBYYYYYYYBBYBYYYGYBYB tethemaximumflowproblemcanbeseenasaspeci YYYYYYYYYYYYYYYYYYYYYBYBYYBBYBBYBBBBYBBG alcaseofmorecomplexnetworkflowproblemssu YYBYBYY...
output:
inoitimippalibtheomomaonmrrfpotpuwxleysi
result:
ok
Test #60:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
20 20 maximumflowproblemsi BYBYBBGBBYBYYYBBGBBY nvolvefindingafeasib YBGBBYBGYBYBBYBBBBYB leflowthroughaflowne BYBBYBYYYYBBBYBBYBYB tworkthatobtainsthem YBGYBYYYYYBBBYYBBBYY aximumpossibleflowra YBYYBBYYBBYBBYBBYBGB tethemaximumflowprob YYYYBYYBYBBBBBYBYYYB lemcanbeseenasaspeci BYYBYYBBBBBYBBBBYBBY ...
output:
inoptomipationtheyrz
result:
ok
Test #61:
score: 0
Accepted
time: 0ms
memory: 4088kb
input:
2 10 mympqinaqs YYYYYYYYYY
output:
amimnpqqsy
result:
ok
Test #62:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
5 10 yoqojkyfrq YYYYYYYYYY yoqyroqfkj YYYYYYYYYY oqyykoqrjf YYYYYYYYYY rqkjyqooyf YYYYYYYYYY
output:
qfokqjryoy
result:
ok
Test #63:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
8 10 ogrpxwryvc YYYYYYYYYY cwyprvorxg YYYYYYYYYY cvrwxrgyop YYYYYYYYYY corwprgvyx YYYYYYYYYY pwvcgroxry YYYYYYYYYY cvpgrwrxyo YYYYYYYYYY xgyrpowvrc YYYYYYYYYY
output:
rrgovxycpw
result:
ok
Test #64:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
2 20 lfyzddchsnrcfbfhpxkh YYYYYYYYYYYYYYYYYYYY
output:
bcddcfffhhhklnprxsyz
result:
ok
Test #65:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
5 20 bhczdehumywygnhaeeka YYYYYYYYYYYYYYYYYYYY ezgwuhykcbaehyhednam YYYYYYYYYYYYYYYYYYYY kdzyancbeuyhhmghaeew YYYYYYYYYYYYYYYYYYYY emhkzewgdhbhnyauacey YYYYYYYYYYYYYYYYYYYY
output:
aabcedehhehgmkunwyyz
result:
ok
Test #66:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
20 20 kczuooznpwpyhwvericy YYYYYYYYYYYYYYYYYYYY ewkyynocucivzrzpwpho YYYYYYYYYYYYYYYYYYYY ozpihwckecpuvyrnwzoy YYYYYYYYYYYYYYYYYYYY kczihoyecnzwwpuopvry YYYYYYYYYYYYYYYYYYYY rwehopuyockzywzicpvn YYYYYYYYYYYYYYYYYYYY cupzeoonrvwwzkihycpy YYYYYYYYYYYYYYYYYYYY cvpkhocnuwizzewyryop YYYYYYYYYYYYYYYYYYYY ...
output:
zovcihkpyynrucpwzoew
result:
ok
Test #67:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
50 20 mrvjqpnuyqwylbbsgkdy YYYYYYYYYYYYYYYYYYYY mrbykbqusqwypdvlygjn YYYYYYYYYYYYYYYYYYYY nbyyplqvjgsrmdwqukby YYYYYYYYYYYYYYYYYYYY kqyvrbqbslmdygupwnjy YYYYYYYYYYYYYYYYYYYY qjywupyvbsdrbqlgnmky YYYYYYYYYYYYYYYYYYYY sqgnkyjumwdbvplqyybr YYYYYYYYYYYYYYYYYYYY dsybujyyqgqnlbvkpmrw YYYYYYYYYYYYYYYYYYYY ...
output:
uydgyvbmlkysqwpjrbnq
result:
ok
Test #68:
score: 0
Accepted
time: 1ms
memory: 4208kb
input:
2 200 kjgxibzaqovyhfahtzepmneqlrtyqskqjclybnijqdnnaqjwqpcdyhqcivkhiamwnnnrekynlwdhhtwoluuxuivncktinkkmgnavexykunaefwtdtccjdvnjrsshktuiqmugothxrrkrxfbzhzawqdvcnjwfbemdjwmsozfyialxnxbqhndzyhoskwmuamcdsrzxttte YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
aaaaaaazabbbbbccccccccdddddddddeeeeeeefffffgghhhhhhhhghihiiihiiiijjjjjjjjkkkkkkkkkkklllllmmmmmmnnmnnnnnnnmnnnnnnnooooopqqqqqqqqqprrrrrrrqqsssssstttttttttttuuuuuuuvvvvvvwwwwwwwwwxxxxxxxxyyyyyyyzzyzzzza
result:
ok
Test #69:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
5 200 sfcjckdgmwmnnlqezqgivfbrgkwmqronyyojlpqwajmjmgjhtlnsjcmsysflrpmrluakngchrsuncwwbqmlpavprqyvhwplrtqhxpzgtxixarzjsvrfquqemtgfryynowgowzyiyxxjarzfaevasxohhqwsleahueveixdjlybnsxnsbtufoiihtstlhczsczzazjwou YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
aaaaaaaababbbcccccccddeeeeeeffffffggggggfghhhhhghhhhiiijjijijjjjjjjikkllkllllllmmlmmmlmmmmnnnnnnnnoonooooppqqqqppqqpqoqprrrqrrrrrrrsssssssrsqsstttsttttsuuuuvvvvuuwwwwwwwwvwvwxxxxxxyyyyxzzzyyzzxyyyzzzz
result:
ok
Test #70:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
20 200 krxqaxppwikekhvmjispucbtwyennwxkqsvjhwpvcvtqgemfpnvsjoppwvqbyslciwosyqjircnsrpmicagujcstajnwuztjpyjxrwbjpelhukuwynyfjhfoxerfvnotzxgqrrckgsjbtnfmhjtpqcteosfpfjgesbwrxvrtdxhrnrdzlnlnivfwrsxkpvsqkwuyfqgh YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
cbwbccbbacacceeaeefecfefjfcjjefjjjjfddjgfjgjhjgjjhhkfikkgkiikhnnginhifnhknkihngplplpnppmmmppplpplnrnmnrrssksrprrosoroqnpsrqsqstrqqstqottqttsrsorptwrutwswwwquuvvuvuvqtvvwwxsxwvvwxuvyyyyyxwxxxyxwvxzyzzb
result:
ok
Test #71:
score: 0
Accepted
time: 1ms
memory: 4104kb
input:
2 500 blgymzrpzujbijgjxyuadmopdmktpzaovnuecztkbzxgzyvisyljaevyfufxyhyqiqdueuswizdfbebeofpeixebkcoylfbfnbckcmafvwcppobihsmxnvhrsacfeozhlqloqithcbvguyslmdqksinnirkziaicjfrpxhceqgxsbiowjixmoflvtvuquoidzfpusisagkefodwcsvqdwvnfhfygrrobkelcsxdaoddqtmvgxkhnouoqizqwvvudriluplgazarubzbsomyqcaycjjwmyqsmabeisi...
output:
aaaaaaaaaaaaaaaaaaazbbbbbbbbbbbbbbbbbbbbacccccccccccccccccccddddddcdddddddcdddddddddeedeeeeeeeeeeeeeeeeeeefffffffffffffffffggggggggggggggggfgggghhhhhhhhhhhihihiiiiiiiiiiiiiihiiihiiiiiiiiiiiijjjjjjjjjjjjjjjjjjjjjkkkkkkkkkkkkkllklllllllllllllmmmmmmmmmmmmmmmmmmmnnnnnnnnnoooonooooooooooooooooooooppppppp...
result:
ok
Test #72:
score: 0
Accepted
time: 1ms
memory: 4108kb
input:
3 500 fndjpiklrigzxvhtgavgqxjhgclbcusixstqcvopskxdxeaksfcfrlkzdsqjddqnijuqqmxzafjbljcqivkozdwwyjzysrkkpxrymnuavmcjemoiaayfnldynfkjgzzlcywayfwtlcaicnawiagrmlhwrjcdvxrbxavfjqwkejfaahukajyupcyulvnbpqewqooacxbryistjptowptrpiclmkgdpnchtrgijujimyloxgxpxqqhhnidbeiasewjkydmpkecplkxlsyzbsyheqeigyyyujupwdjqzg...
output:
aaaaaaaaaaaaaaaaazzaabbbbbbaabbbbbbabcccccccccccccbcccddbdddccdddddddddddddddeeeeeeeeeeeeeeeefffeffffffffffffggggggggggfggggfggggggghhhhhhhhhhhhhiiiiiihiiiiiiiiiiijijjjjijjjjjjjiijjjjijjjjjjjkkkkkkkkkkkkkikkkkllklllklllllllllllllllllkkmmmmmmmmmmmmmmnnnnnnnmnnnnnnnnnnnnooooooooooopppopppoppoppppppppp...
result:
ok
Test #73:
score: 0
Accepted
time: 0ms
memory: 4228kb
input:
10 500 bupnuqzdcpbbxnmovthxvephnapgnxykdqpefrnsxlalrhtxogfxlpfrcxjmocibrokuejfvalrapnhvzuabrhjfdcnnnaygwtkgoenbewrtlzzdhxmzndkphodrcjbcyivsaxbugccvkqzbygufcpqljzopxafwzyxceegfdqtqqufvtptbllewhlraeotvtdiwnjnbkedfhsfpvrydnerajvkwidyhptbvtstjbwqucskqlecziliyqqrxvahlbahjzlxebblyfmjkxpuyitksjtqsxkmzatzur...
output:
aazaaaxazazzazayaaybxbbbzbbbbaabbbzbbabazbbcbcccccbccbcbbcccdddcdcddcbdddbcddddddddcacedeeeeceeeeededacedeffefffeeffffcfffffffffefegggggfgeggggfghhehgghhhghhhhhhhhhhfhghghhgiiiiiiijjjjiijjkjjkkkjkkkjkjikjjkijjkjjkkkkkllllljlllklllllllkllkliilllljlmmnmlnnnnnnnnnmnmnnnmnnonoooooonomonppopopppppppopoqq...
result:
ok
Test #74:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
80 500 dvbyutdpoihytugjpvxnzcreuwneaqokypvmieezkevfpngozhxowvwbavznhmbjosgnvskifmpbaflkoxivossyqaoxkvvioupzyygerlqpntmxkctrcodkogiqrvnhkczcdhbnvihopmchnnyayletjmvsflwdmozsgrwkqdijrjzrodqqadsnsmzulhumosmwmohoibrcqswjaohlzmjpjnwifwqunludixjhhupgettgefwzcvygiycdtrenhbydhaopdrzogaadrqwiqiogounuhozeifmox...
output:
tfeoqwugeqvfvahhbdsavooyragbdfuezqctrhcywsbcghcigoikmhgzqghseixvidiekcmbelzpgmcgtfhoidgjseamnpdlfjocmshpboojgdqoihqfdknukvnoniucnvjjigkpikmkqskolvmofjurblovkaiiycxotibmghhvhqqqjgvvqqjmojpjzneopjhvoidfztoqzyeppnrivngflflgwemqewoajznsqdweylgqkkymqtvagrmuypleyrvmzqrfkmjdriozizjfvarpamrrxnoppqlvwykxwoyb...
result:
ok
Test #75:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
500 500 dvbyutdpoihytugjpvxnzcreuwneaqokypvmieezkevfpngozhxowvwbavznhmbjosgnvskifmpbaflkoxivossyqaoxkvvioupzyygerlqpntmxkctrcodkogiqrvnhkczcdhbnvihopmchnnyayletjmvsflwdmozsgrwkqdijrjzrodqqadsnsmzulhumosmwmohoibrcqswjaohlzmjpjnwifwqunludixjhhupgettgefwzcvygiycdtrenhbydhaopdrzogaadrqwiqiogounuhozeifmo...
output:
tfeoqwjveqvevahzjdtqvooypagqdzsezqctrhbywwbsshcinoiymhqzqdbswiwvidiekcmselzpgmagtlhoidgjrdxmppnnfzonmshploaigdwoihvfduzxkvnoniucnvrxigpsikgkcskolvxofjyrblomkwiiyuxotibmghhwhqoxzgvvoqjmojjbzcxoejhvwidfvtoqxyepphrivngrwfggxdmqcwoaxcnsqdgsfheqbdymqutagrmuyclewsvkzqrfhmjdriozizefvvrpamrrxcofpqevwykehoyb...
result:
ok
Test #76:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
2 20 xztanpyxqtcnpuzqqyoq BBBGBBBBBBGBBBBBBBBB
output:
aaaaaaaaaacaaaaaaaaa
result:
ok
Test #77:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
10 20 opwtpwvtwxouoyqsotzp BBBBBBBBBBBBBBBBBBBB gzynqjtxzqtzdwupyqxw GBBBBGBBBBBBGBBBBBBB nqrqzyuqqtqoquynuxwo BBBBBBBBBBBBBBBBBBBB rovrxornrwtoymtnnrpu BBBBBBBBBBBBBGBBBBBB wdxtnppzptvzzuzlvqrr BGBBBBBBBBBBBBBGBBBB uusqpvwtntwxxxdryuqn BBBBBBBBBBBBBBGBBBBB nxxnnpzsztyndvxlrron BBBBBBBBBBBBGBBGBBBB ...
output:
gdaaajaaaaaadmdlaaaa
result:
ok
Test #78:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
15 20 woourpqrstqycprorzzw BBBBBBBBBBBBGBBBBBBB ypswlxvouotyzsqrpxpo BBBBGBBBBBBBBBBBBBBB rvporyxupxswysrrzqvd BBBBBBBBBBBBBBBBBBBG trrqqnpspvprxzzwvszp BBBBBBBBBBBBBBBBBBBB vyoynttqpvwonpxopsor BBBBBBBBBBBBBBBBBBBB tyuyqntwonprcnngorwp BBBBBBBBBBBBGBBGBBBB xyptttooymynxuvspuqz BBBBBBBBBGBBBBBBBBBB ...
output:
daafljaaamaacaagaaad
result:
ok
Test #79:
score: 0
Accepted
time: 0ms
memory: 4068kb
input:
20 20 syzuzqoytozsurzpsono BBBBBBBBBBBBBBBBBBBB wesrqwxttsyosvbtsqqq BGBBBBBBBBBBBBGBBBBB osrvrpppwpqynwotpffv BBBBBBBBBBBBBBBBBGGB vwvrywzppxslxsunfuxy BBBBBBBBBBBGBBBBGBBB nwurxytqswvputotrvsz BBBBBBBBBBBBBBBBBBBB przuyqqnkwuztupqptfm BBBBBBBBGBBBBBBBBBGG lrqpyysqxnwvjovffosm GBBBBBBBBBBBGBBGGBBG ...
output:
leaadbhhkaaljabffffm
result:
ok
Test #80:
score: 0
Accepted
time: 0ms
memory: 4076kb
input:
2 500 zxwpopwryvxwuszirrorrqtsnwrwuoonyqsruqtpvwtxmnzxtsrivsnttuxvzjsywsqspssqqvusyqoppwwzzzrwsxwowyznnnttxvgtrptuavzxotqqsuovspzzvxrvqqqvnpqnypeqqwyospooqnuzxtxypyutvoernuctyqzvqsdwpvuunrsypvzvuqqsvqqoxuuznqvvxusynpnuqwzrnosxqslunwvxooyzzsqrvzupyprkvqntnwwowxnsrtnsvszzsxsqysnnsrnwwwqzvyxowoinppbqxy...
output:
aaaaaaaaaaaaaaaiaaaaaaaaaaaaaaaaaaaaaaaaaaaamaaaaaaiaaaaaaaaajaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaagaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaeaaacaaaaaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalaaaaaaaaaaaaaaaaaaaakaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaiaaabaaaaaaaaa...
result:
ok
Test #81:
score: 0
Accepted
time: 1ms
memory: 3908kb
input:
10 500 epjvurrwqwslokprtxxnoqpvozzqynewutfwopypqopcxvswnlwavyotqvzfovuvznzuttpztqtvnnysqzrpszbrtwxwvlzqzofwtwrprruwoqzruxunyszooyvzpfwoqrsurpzeozxwuznvvuyorztufnvvuuwxpzpxtusyzwpvwqvmxytssnqsupxxyoxrpqttwwwnkqyyzppuyxqodqsywlrunuxsorzorpqurwrvxqyqynxvoqtsyrvxzvnxzszpunupyqnopxrtprozwtvxzxwrnnnrspvwo...
output:
eajfmkamadalakaacaaafgebgaaaaaelaafalakaaefcaaaaalaaaaaaaamfaagajaagkmaaaaaaaafahagcdkbaaiaajlkaajfaecaaaejaleaacaicgfaaaaihdfakabfafkbeaaakalmaaakaaakafchaeaakagddajaaaaaaakamaaalafmgaaaalaadaaaaaaackafhkbdebaafdfalalafekgaeaaagaaalaaaaajaaalaaiaaagbaabdaaaaafafaahaaaaajkalajagdbaakaceaadaaaaaaaaaa...
result:
ok
Test #82:
score: 0
Accepted
time: 1ms
memory: 3944kb
input:
15 500 zryswnworvevunwutuxmnzpbspdpqctwosopnwswrwvyyvptypvzqwzzcontrtooysryxxgvrquvnnfnvqetnourqrxbwywtoqwvtvzqhppsnyptroqtsoxwzrqryylrzntnssvtrqxrsnzpxvzxpqrusplhrftenrtsxvpvnpxuokwtzruqtzsryqnywowwurnyoztuwqtrpptysuqvrprpfovwepypwstvipnzgxgwrndvwonuwqwtxotpvxyywzzozwzwtnzozvtsoytxsnqywvarnpnooorps...
output:
fbjaiageadeaafaadbamgigbhddbacaaaakaalajmaaaaabeilahadaacmeljdijammmaagahafaabfaabecakiaaambaaffjaaaaeaahlaeabaagkgahaahacabgmlaciiiaaiifcaggiaajfhaakjfgelhmfaegbjaaafaaddaikaaiaahaaaaafggeabhfegehamlafmaabaacaddjgecfjccelkaaaaaiaaagagikadklamcejcjaaacaaajaafadaagaakmiceaglhamejbbaaeaaedaagccmfaaamj...
result:
ok
Test #83:
score: 0
Accepted
time: 1ms
memory: 4144kb
input:
20 500 xzqwxnzjotrpypunovrukuwwzxynowyxywvvpnvtnozoqyaxpdorsvpyvvqpsoxrsxwrsnatxosrvuynpylrxvywwqmzqzppuvuytyqurgpwxynoqyrqxpuzytunxrnrrtowrpzuvyorvquopsuqquyrvvnzoupvqrvrdqnoszvxtqnvrxtpotxttuoozppwwysytonzyryntwntustoxqzvvpnsxrvswpxntrwnxtrczqqxtdwksqostroutslsrvyyxsqyywqpwwwuvqwulrspywrnbwnxqswxz...
output:
jcmacekjadahjdcajcadkaaamgkmflkkaghllfakdaacimaajdailgcaajaeagjafakaiaabamemcbbjcalglaacaamdkhggjhlbmafcggkeliijfahaaaalagkcadaaiadaamfafalkaaddhakahclhaikiaabaadccdmacjieaaejalgbeabaajhfjacjaeakalkdialiecaiaafdlmdfgeacagfacffdhcahaaaacmhdeadhkbkcghbhcaellhhbkilmaaaadaiaaajgalkhabgaabiahamaamladllbi...
result:
ok
Test #84:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
100 500 xyretptvzrvrxtppxwtoqznyquonurrunoyxxxusttovzmhvuwtquvrvqdovpivrswrwxvstvstrqtywtwtktsqnfsspvrxorvtnovwtpprxncrprsuvsqruqznvsbtsnpszznujxzziwcwsrtfspsnuowypvvtqtpxwlnnxnpsirzspqplsrpqvxzxrrwpywnonrtmzqyrprzwvxuwvntsunuznowququzzntwqvonpvtxpntzqznswrzqwzrsjntzypsnfypvvounhxuqoysxoprwqyuovoxov...
output:
flkebccliaedgbhbadhlkhglfhfkaefkmdgjdhkdkfkdmmhekdellmiemdkacikbafmfgjgglihhjcbkgbfkhegcfmgbgjfgkmhgjbmhdjmfmckmfkmibjbcgkgmhbadafehijdjmbaidceiabfjmlfimfehgccgadfmlcdbkkfiebmdjflkfmcfijlidedkcgededmilldmidaaajchaidikekhdahflcjakgmghjfdfdcdeimkijcamdaahjgjkeagaklfilcjecjhglkcejbefafiffcmklifdbfllhba...
result:
ok
Test #85:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
500 500 uynxusnuyztownaqulnzvqzstswqszvpsprsvytsvquwqntnusnxnnvhzhwazupswyyyrpvkpqqpqurtzyixswqxxswprtcqzrtxpxoutrsvtyqsxoyzuuttwtzwqiporzwpnurtpuvywzdyvqozlprvxqmyutqrswnvuzazoqzzwqsonxptownoywrqsrzhowotpupprzuttkvouxrxzzuosspwiwsghyxzourxwtsyorrqwwowxstcylzvpnwzrsqrspszyzptptquzwspyuoroossxqxrnrso...
output:
ccgfmibddhcmefadjlcmijidheabcmdikmcdfadhdieadkaiklfbhefhbhdaecjbcjdjglkkgklegfmlcmilhlaeckefelcahklhgggcddlfbilefbkebdcflfdkciffbgbdkcbhkjmjamdjmkbmlfbciemlhhfagifijjahhbhceijmbclimfbajmekcmchfellkalblelcgkhdigbagjdledjcifmghjagdjlkhcbhbjfcgcffjlfcelaejfbjdekdeckjlgkjdbabfgghkdkmfjibcikhbkmedjkfhelj...
result:
ok
Test #86:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
26 26 abcdefghijklmnopqrstuvwxyz YYYYYYYYYYYYYYYYYYYYYYYYYY bcdefghijklmnopqrstuvwxyza YYYYYYYYYYYYYYYYYYYYYYYYYY cdefghijklmnopqrstuvwxyzab YYYYYYYYYYYYYYYYYYYYYYYYYY defghijklmnopqrstuvwxyzabc YYYYYYYYYYYYYYYYYYYYYYYYYY efghijklmnopqrstuvwxyzabcd YYYYYYYYYYYYYYYYYYYYYYYYYY fghijklmnopqrstuvwxyzabc...
output:
zabcdefghijklmnopqrstuvwxy
result:
ok
Test #87:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
14 6 aaabbb BBBBBB cccddd BBBYBB eeefff GYBBBB ggghhh BBBBBB iiijjj BBBBBB kkklll YBBBBG mmmnnn BBBBBB oooppp BBBBBB qqqrrr BBBBBB sssttt BBBBBB uuuvvv BBBBBB wwwxxx BBBYBB yyyzzz BBBBBB
output:
edxekl
result:
ok
Test #88:
score: 0
Accepted
time: 0ms
memory: 4080kb
input:
14 20 aaaaaaaaaabbbbbbbbbb YBBBBBBBBBBBBBBBBBBB ccccccccccdddddddddd BBBBBBBBBBYBBBBBBBBB eeeeeeeeeeffffffffff BBBBBBBBBBYBBBBBBBBB gggggggggghhhhhhhhhh BBBBBBBBBBBBBBBBBBBB iiiiiiiiiijjjjjjjjjj YBBBBBBBBBYBBBBBBBBB kkkkkkkkkkllllllllll BBGBBBBBBBBBBBBBBBBB mmmmmmmmmmnnnnnnnnnn BBBBBBBBBGBBBBBBBBBB ...
output:
dfkjwptsvmzaziqtrrwy
result:
ok
Test #89:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
14 100 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb YYBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBYBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB ccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddd...
output:
qbdsdffefeehhokohwjnynnossumogpsiprttttiowvmvzzzwwapaedgxhjdizikklxftdkkfttxxzmmrmtlmorovtnlsuufluwy
result:
ok
Test #90:
score: 0
Accepted
time: 0ms
memory: 6092kb
input:
5 20 fxyezqqsaxwjkmwdbcmz YBBYYYBBBGGBBYBYBYYB cccccccccxwcczqmmdfe YBBBBBBBBGGBBYYYGYYY dddddddddxwddezqmfcm BBBBBBGBBGGBBYYYGYYY eeezeedeexweefeemmqc BBBGBBGGBGGBBYBBGYYY
output:
gffzffdefxwffcmfmggq
result:
ok
Test #91:
score: 0
Accepted
time: 0ms
memory: 4008kb
input:
8 20 xtebkrvpbhlsbbdwfxnl YYBYYYBYBBBYBBYYBBYG aaaaaaaaawrxtsnpbdkl BBBBBBBBBYYYYYYYYYYG cccccccccxwrptsnkbdl BBBBBBBBBYYYYYYYYGYG ddddddddddnwxrkstbpl YBBGBBBBBBYYYYYGYGYG gggdgggggnpkwxrsdbtl BBBGBBBBBYYYYYGGYGYG iiidiiiiiptdkwrsnbxl BBBGBBBBBYYYYYGGYGYG jjjdjjjjjtxndkrspbwl YBGGBBBBBYYGGYGGYGYG
output:
kkjdmkktwkkndprsxbjl
result:
ok
Test #92:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
10 20 rijdojmjmlqsnybaekud YYYBBBYGBYYYBBBBYBBB cccccccjccccrsimleqj BBBBBBBGBBBBYYYYYYYY eeeeeeejeeeeeirsjqml YBBBBBBGBBBBBGYYYYYY fffffffjfffflisjqmre BBBBBGBGBBBBYGYYYYYY gggggfgjggggqilrsjem YGBBBGBGBBBBYGYYYGYY hghhhfhjhhhmsigerjlq GGBBBGBGGBBGYGYGYGYY hgiiifijhilmiiqegjsr GGBBBGBGGBYGBGYGYGYY ...
output:
hgllrfqjhstmtivevjgv
result:
ok
Test #93:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
12 20 fabeuuqijeeiqvmlxikx YYBBYBYYYBBBBBBBBBYB akaaaaaaaaaaaaaqjufi BYBBBBBBGBBBBBBYYGYY ccccccccaccccckfiujq YBBBBBBBGBBBBBYYYGYY ddddddddaddddkfjquic YYBBBBBBGBBBBYYGYGYG kfffffffaffffiqjdudc YBBBBBBBGBGBGYGGYGGG ggggggggaifgfdqjkudc BBBBBBBBGYGBGGGGYGGG hhhhhhihahfkfdqjhudc BBBBBBYBGBGYGGGGBGGG ...
output:
rpinrojpakfpfdqjsudc
result:
ok
Test #94:
score: 0
Accepted
time: 1ms
memory: 4088kb
input:
5 500 qnplnayaqcthgzrscaeffrjqhrnssuhmegcoitgfoztimbhediaxqwrcxvfabdgcszrewoenuesjalgbkfgetfnsucfxnrlvmnxwihsgnhadsgubjaglsxsjmyvofzsxpmintxsvyialuxxelmbirqhofndroyvkfxdntxdmvhboqypmxpewwevxfymbnvrxcsoutvmshadbjdgxswjdcviwlcjemdjnkeyudrhdqwhiqbtosjqfgseyerovvnhilpgodnfnpmznmypkbwyfzjsvobstnynyvdtedh...
output:
kkkkkzkkqkkikkkkkkkkkkkkkkkkkekkkkkkkkkkkkkkakaakkkkkkkkkkkkkxxaxyyayyxaaaaaxawvbbbbbbbybbbyxbcsmvccsccccccczccccvcddddddyxoddddddxddeeeeeeeeeedeeexeeeeeeesxeeeveveefffxfffffffffffgggguggggggguhhhhhhhhhhhiigiiiiirihiiriiidiqjjjtjjjjjjjjqkkkkkqktktkkjjkmmmmmmmmmnmrpjmmjmmmmkjllnnnnnllllklldnnnnnnnkll...
result:
ok
Test #95:
score: 0
Accepted
time: 1ms
memory: 4024kb
input:
10 500 jncrnalnwtivhccjacwevrondacihuksbxcfzraslpdykexafbpxtxwdywjdxoxftifjlhsputwfznboqhgahcuxppyxiqfhuzunswiddtfjohaghympeqadrxijhfoouqpacfgkjnsturviadtwybnryakwkdmtmqqhmkmxziauaacvqebrhiuxnxzpnykmzidwrepmwqclynwfammeafyanrizsihsutuaeyxxpqwhisxznckmggtbmjpqwbcxgxvrdtbujqebrhoqekispgdiyqpiwodkixesj...
output:
pppppbpppppplcgjakppepypoppnnensklnngbnnbpnobnqqqmzqaaaajatpaaaaaaaaaceycaccpcccyccscbuccpcsdddddbddvddycdeereeweziedeeeeffuyeofffffveffffffuussgsgggtgggoggugxgmwgwughuhhahhhwhhhtippsiwptoiipppruvppiptuswixijjppjpjppjiwfknnswkbbbqtjjjkkkknwllbbllmoloioklrokmooooqbjbboblkqiljkkglmllmlljkjcmgoblmmnocm...
result:
ok
Test #96:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
22 500 gektomdzdkkeqsukkkjxppgwmeqldbovakxqbvdgarmqqowxvljdsmantqgcjppfcrcfhibtbhaxgaacxavpjzrkttzvvuyvrvainfgzytcowfzmjgsqbfhmqpnnksxfzddpjvunkphzpghkqtjvrtwaokjovhftfxyvzjyarskrjaiotntdyjakoqcfjkjzysvrqkrcenbykrwsacfylkhrwxxbfdmpaoegezxppsertmxynyffrodszzojlbqittjsglekbkytierwmbposhebqjzpvkxgxihrs...
output:
muumpxuvtkmgyroxfqnjxndxahpfovfrzyfllsvgvkoeaxecogjnwgyefruvpyofgaatrgtnpbpgnfmblyutewednvjmynjvearhynguvftdvykfqbgbzapjbhwdfsglnkdriduqerzymretorcyehculwisspoqcsxchxhrazaouceizbrjfpstrjuusavepgqkdqpevpduczjnwcividjvkvnrdkcpkxwyqqlvhnqdflnlhkdriazgpzfghsrcxvfoohjoweqtpqvawreroflfzcdzdcwzvqpsyhmatchy...
result:
ok
Test #97:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
80 500 rqbdmywktaijlbpcjblkmjvsztskxgpxgsqxfotxhbypeeeweorhksgtfrkstrhriwiyznnzyfclnmkqkabjqdrkoltoglioupjvfynemwvlqawrasffdukcamirncrdwkqwlxexnobtswlhtitcmemwpwnvlwgqrcloxcsjwnmqbefvytpdfwefpqgrggsztmybvotcwlzihwqtsrnxsoacsnambbidvohgjgqtbxnqoyjxwjwykbosssdipjmjveqsbxryvtuqwkyjsyeipwvzsrecugzregtay...
output:
hvlhtoafdfakdmwzdfeqzimhmphiqrsoucefcybyauxmdsqnygjaksbstemayxxydepymhzcpfvjotbumsjbyuoxssggqfhxcgovglnoduoktsntkadzehbqkidequkadtyncjrsrnulnwaaeethuqmziovrxmkwmkmbarmyblprtrsrtwiiyojxubpuzlniasjdxtefsfgjchoygezzamvdnlauxmgtjrwqmxrimwupyajkrunqvomzqdyqzvfioyqpbidvgjdngcjlqyrresceukckcaajlthlfmlxlopk...
result:
ok
Test #98:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
12 10 azzzzzzzzz YBBBBBBBBB zazzzzzzzz BGBBBBBBBB zzazzzzzzz BBYBBBBBBB zzzazzzzzz BBBYBBBBBB zzzzazzzzz BBBBGBBBBB zzzzzazzzz BBBBBGBBBB zzzzzzazzz BBBBBBGBBB zzzzzzzazz BBBBBBBYBB zzzzzzzzaz BBBBBBBBYB zzzzzzzzza BBBBBBBBBG glbiyqtwdf BBBBBYBBBB
output:
caccaaacqa
result:
ok
Test #99:
score: 0
Accepted
time: 0ms
memory: 4088kb
input:
20 10 azzzzzzzzz GBBBBBBBBB zazzzzzzzz BYBBBBBBBB zzazzzzzzz BBYBBBBBBB zzzazzzzzz BBBYBBBBBB zzzzazzzzz BBBBGBBBBB zzzzzazzzz BBBBBGBBBB zzzzzzazzz BBBBBBYBBB zzzzzzzazz BBBBBBBGBB zzzzzzzzaz BBBBBBBBGB zzzzzzzzza BBBBBBBBBG igffrcksxv BYBBYBBBBB fysityljns BBBBBBBBYB nrobvvqnqu YYBBBBBBBY scbzrhsj...
output:
aunraagaaa
result:
ok
Test #100:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
29 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aakagnnakswaaaxoayag
result:
ok
Test #101:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
aaaaaxabcaacacewagabataaarcaaadfaaddacegcxwavaaadadaafaaasogabqadxaafegpsaagaapahheaiiaaahqawpaijaaaljaaajpakapqaaklaaalhawaaaaagakmdumaamamaammaqaanjaanaaanaaaanaalaaaajnnamqapakaelpnparqaaaaaaaraaraaoaaaprprrraaaasadaaraoouaaayuaasaaagqrusqamwaaajaplaaaskaagavuaauntfaavvaavadaapvkyyvxywaoaagnxafxb
result:
ok
Test #102:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
25 25 zabcdefghijklmnopqrstuvwx BYYYYYYYYYYYYYYYYYYYYYYYY zzabcdefghijklmnopqrstuvw BBYYYYYYYYYYYYYYYYYYYYYYY zzzabcdefghijklmnopqrstuv BBBYYYYYYYYYYYYYYYYYYYYYY zzzzabcdefghijklmnopqrstu BBBBYYYYYYYYYYYYYYYYYYYYY zzzzzabcdefghijklmnopqrst BBBBBYYYYYYYYYYYYYYYYYYYY zzzzzzabcdefghijklmnopqrs BBBBBBYY...
output:
abcdefghijklmnopqrstuvwxy
result:
ok
Test #103:
score: 0
Accepted
time: 0ms
memory: 4056kb
input:
7 50 tuqaulrnzyyywybpuoehdugdptglplvlppkhhxxppdrkhxdxgd YYBYYYBYGYYBYBBYYYYYYBBYYYBBYBYBYYYYYYGYBBBYYBBBBB bkunohhytsznqcntvetgbzflhcujlzhxtvublqxznscjshvzve BYYYYYYYYYYYBYYYYYYBBYBYYBYBBBBYYBGBBBGBYYBBYGBBBB zpqthwonsjjxcxxuwdgpsglsmpbepexhyvodtbrgpwktudklnz YYBYYYYYYBBYYYBYBYBYGBYYYYBYYBBYYYYYYBBB...
output:
aaa`cddhzhehiklmmnpnspkpnnpiopspotutstxtuvxyuhmwzy
result:
ok
Test #104:
score: 0
Accepted
time: 1ms
memory: 4088kb
input:
20 500 uabfdcdgyqmxgsgauxvngxyebdglyakjsndkpgbzmtpxubzwzdrypaikyjxzwztpawxmbkjdhywlrrwdwmyjuzpkfvzeitcoovjzzjtfalpetwkahtczbujpaymnaketzdwjdpldpchnxbzajnrafcpsowhmszkllmotxhrtbsyujplndjudidelwuxvoxwngolxctirjebsqncludnyzneyxboxjakvyleabonpsmowvzoaovyttvhnpbesttbyfgvctharxoozjffdfzlzjtbnmiqspqhwthrcf...
output:
b`a`ihafnwwiewliaxnnimbfxbacccbsafbmbcnbnyudmybbbvaeotbhfvxaetcdeubrzjbqgzbreedcfddyczedsdsapeadmqwaxlszafkficdafdddfdcgavcmigtlughgeitnyitgigighisgdkfbigegmiziyihnjzgfjfjtvgiajiyhhctjhjagofihfkhnpijjhkrigwjvhmkinqylijgukulzwpmkfmiklkvdklmipncnmnxmpnvatvlllnwcrhbmqnnjrunzayqoonskonazuwmonkononkqaqol...
result:
ok
Test #105:
score: 0
Accepted
time: 1ms
memory: 4132kb
input:
50 500 mlflhmhmlvhbaykqextwbeswdlqmlhhzmofeicwyhuvyqjqwuumnpmirtgrboepaosruvhipeadhtwuxtqlfshfbaakarzfzenjinaijsidcoqytyytevycrdrwammzsvysailfremryrtlonlpohxhhonhnmqdnuuynwbilcotucdxbphurpzvjjkaujunppehudtrkggggweudqbmvoqtoxvyzspjzajlxpsmynskdzxrwtujidbsbjpbwlizsejugkzavkznxakoshvaxjceniggefvuqdtwbj...
output:
zdbzana`bwaycbcf`ydtydbhevafeaccghcrsegtbfbdeahcexfjgfdyhfxhacfbjgbfbdhcjgovkkfazgejjcjgfcjhxukfjahdsgdableflrdjkjhlgjdikigcfkikgdllnfjlalkbligehchdlyjgghkkhlaehllikmkmkedkeekmkqkefkmktnijnjglnqnkimmnmbnfvrneiikeggjkhimqimxqqmikfmhnfhmhoelqkbqqnoqkpugqqhopfkglnuuqimppduhoqimqoqpmuqkfmnqiiuqiqnmrruot...
result:
ok
Test #106:
score: 0
Accepted
time: 1ms
memory: 3896kb
input:
20 500 ayuwtllhqnfdehzldgmmouamniqnnprwlbmoppiokmpxscydolhqqgywjsqlnrsyttoloaoikjvzrxskmwowxtjssclswpoxfefjqqtzxkcxgxtywwdrmkcoyemldljtjvkcirjhcivgcdfijpasmesqpceeoixqaazxtwyggdxtxtksunhwzqvkrttrjwnjxbakjsxdonknqsanteluehvzaytivsfrgpqxoalwbywfuxdyasbshpskglzhdkrsnsxiwypylzmjdtlddtqwvrnomjwhjrerozduc...
output:
eeubaabbbrbyifamyfobalybewlbicxccjaebehfonzmbmukdbhcjasdeppqdsbcb`bldcabrvgafhsfzwviybcbdeehprfldfeyeffffwemdfefeegldgggfdwkgifvgghaugjgfgjrjeplisieuiktghgaittyniismqqhizyifhlhtjagqjxjgyjihzjchejjhjajtgxjjgbtdjlcivzkklakgollkkehledwblklikqmqvbwqpqarvkiqdmmhyqqkwmmzmqklvqndnknyvhqkqthonfppycurqrplusn...
result:
ok
Test #107:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
10 500 hlowainqwhleemhxgeexvauvsmdxrakudyhvuxjhqreepyfkndruyzuwrfnhaevzdkpfnknymitnqjuvudbwcylkjcmwlwfhavsjmpadfoylhtwuaukxdgwxeqgbwciafzierqihjaxqsbxjbhyiamjwgoupnzlkwoxgfrsclagaevkwfiylpvfboozmplswttjigghixkrlfrpaluroddagokgyayvixdjynfvfawkhenogfymqrvprzqlsnxhzmvyvcvtfftaflzvvxhtuifjoktfpdnvrercle...
output:
yaaeuaaaalaaanxaka`avnacemyaanbbdbhdoaapbvsbamebzambcwvwchwbccwcbzkbtccabbcccdugccddneddemsmeeekqdeeheeeecddlebeeeeeeddfofaekflejfqrffwggfvagbgognfgggfvfcfbngggggadhphhrohhqhhgehkiiimgiiminiiiggihjijjifjwzijijtiijkkzwhlkskkrfkslallllllllkmmlmkdmmmmmkmltmknnnbmnlmnndnmnmmnnunnmkmnnzmnlcoofpoeplhpkppc...
result:
ok
Test #108:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
20 500 iwwobprhmoyngxrwogeznqjfucciihleorxsgxcxjxlsqhoaakvkwnbhfrazxbrtqwoothwtdoprguinirothdiawdjqddwmbnkkbinwjeuwqydrugiccywxayagrkbnsjaoriyrpynldjiglrhikiipcynkxfobdyoxzqmsvthlplvbebkfepbfpttdgspybmjcyidxaxaodjkilaysrrowetbxkcrwgphhmyeplxvnpsxsinbnmfxoulwuyfcnfypmzuvtqxctqnrlgvbrvjxjzvjxvbfoowmsn...
output:
aaqmaaatybytkcotbgbachjavckxc`bbreurcvubebbxdpdbknzdzdvcvdkkldatdtbhupukfgayhdokqcdchmyt`euecdedmyeedccjcdfemebyuqdbijfpckfxofufiffgghscpmlzffjfgenhceehhgkbmpdchohicnpvuhgmwzeihjwjtjljfpjkrfihicsctgrjqhujpaggtjksexjhlgxgivmjiikhduiskxjurikkegclslklljlkmdmwmliavxlmkzlukqmlrvplrhhhmmllmjjhfwponqtmmofl...
result:
ok
Test #109:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
40 500 lennpvhaesjwznotiemclquvfbhxnphpnyhrrijylkxrrstrgmlekwahzzspctybovapkvlepgdspzvxvtclrmtelffwvumcoituylxnqxubwcenuvxvsgxvxuzavuyiimznvigzmrkqoavtwfcybxznhxyfrbxaefvfimfpwuesbqrpwxrunxctvgvapwllecsfrsosbmludeljvximxbsmqsgnzhwisflkihogdbqixxxkwprooumwovxwuxwwpfzsudgtanewxdfxiyegukigcxmjhgojmqnjv...
output:
dhhrjfxtmblovcqrblrbcmjatktgaepxcb`wmpbjueowpugrpaawtxynxyrvjbcjposelvdnrxijcfizumeqsvxxjszqxkodmoqysniuswaixfbhypbqeafoivbekmnmddkdfpthnjpoapangpspdtvyfzaxdwpnggdbioqhetdkftopovkuhajfnhjuwcenowqfikikldkakkdlvjdptkjdmhwxhhgegxyihyqmmehnezjurjxlutalefqpbgfhwxmarskgrwljvgvdhgjjgzqibzwlwbhvhkthrqwtnteq...
result:
ok
Test #110:
score: 0
Accepted
time: 1ms
memory: 6224kb
input:
7 500 nhjurmfptwpsgukjwqqhganfrtbsavaviwabjwanivosdqwewclocqgeawyuyetiaxqocqksukadafixlzcqjkjkfuvwbnzflkcqdixhbbfhnaxeyfjfvcpucfjvplgcrjlqjlozveqmgkbpierghfibktmipvabndpkokrvgvhgikrhqgcnkkwzcldzhamtnsusuxhqsqyrfgvsiegjbnmbtlzlvyiatojxleldtnbfrnxaqaavqdtwsasyxeeqbjfbjuakywcptyayfjgghqxunfdlqlgvazgafv...
output:
aakakaaaaa`zyaaaazabbzabbbabbababbzabbbbbccccbccbbccbccccdcdbddddddddcdddddccddeeeeeeeeeedeeeefeefffffffeddefffffefddfgggggfggffgfgfgggggggffgeghghhghhhghhhhghhhhhghiiiiiiihiiiijjjjjjjjjjjjjikkkkkkkkkkkkkkkkkkkkilllllkljllllllllkljlllmmmmmmnnmmnnnnnnnnnnnmnnnmmmnnnnnooooonomnoooooooonompoppppppmpppp...
result:
ok
Test #111:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
50 500 fjvtcvkdhphwksdhxuvuhnienmtontugyffzpbliffkcrjbcizldydjqftrqatumvwjjcoshkhciwxkcpwevqafbwttxwkujdigaimazfudmyvcqesaastwfggmcjsmtcearbrzqynmdkgxgzizlaxhbkohbbotkachpjqkmmsvmkogiqhixbngwksteeiaauktuqciihftqwrdwvqcmyqgpwjtipsnoqnsagzjomnqjtzvsylpdqdpapfxdoodbxvxyqmrvkuillaszpnkcahbvakbktrfuqsats...
output:
bdfcyfb`faxc`gbavjgdbvadfccgcgjdudgbgfpdecggjxdfcgc`eieabfj`bfgjkiicejhehgqnbhdfkiihkezdrzkbkfifkjdjcfjgexejxhscckcshihueekekciidfhceyabjikllenlefjdnlmkfmlolklismlimbnnbnjnlpnhggmfwpmnjlnlplmeplmnfjfjlikemmmkillgnoqnptplqmpnnhqnpdlnkopqkjnqqglononpqmqpnkkopnnoofdohodkdqpdjgqpnqqgrrnopollrttorepcrttt...
result:
ok
Test #112:
score: 0
Accepted
time: 1ms
memory: 5864kb
input:
10 500 hdvfzntztjftzhwhklupivisrzogiwdrvuzwabuysraiqrygyefzzyyqgoqyzstcpariuppstyipwyujymubwtkcmfudnbjvmlmpgzpcvrmttcrmzfhqjfezhilsgunngmtfgnrclefuqlhwryparsnyzjchxgfkbjavwicenzieajerrkkzjqnghwsocvkjosrmnmbjhsrrqocvdhdsbwqyswlqmdmnkavexchlvhrehczyzoawbqrpxfrznuebwokclufvnxdgmyglcjnbtqwvikptktkbiczvu...
output:
aaaaaaak`faaaaffaafaaafaaalfcccacbccccccbbwcabcbbbbfcbccbcccccdbddcdbddddddddddcddceeeedeededdeffefffffffffffffffefgggggggegeffgfggeehhfggghhhgghhhhghghhghiihiiihiiihiiiihihhhigjjjijjkkjkkkkjkkgjikjjkkkkkjkjkkjkkkkijkikjlllljllkllljllklllljlmmmmmlmmlmmmnnllnnnnnnnmnmmnnnnnnmooooooonooonoooompopppppp...
result:
ok
Test #113:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
50 500 indtujtskbwgmxdvkibvrirswzrvcpiyuyyntxadwsxjixpvgxlliyghubywoqxiloiiebktsgjjfubluyqavdckcutsvuiimgpupytjwcpnoirjqumjbzbkcwlogbmybogrdjhckdepplvunflsveokgbraqorfaozqhjnqwbiigzycaaopcwqvbxxzddipozyzkaynmtxssdoxkljivtotbsrbejeagduwyddmdcxermruoiqxnvddybpxhwhigealmtnzbnfwmvnrfaqptoeazypbqnmhhsmbk...
output:
daadgnqdqgcbytatnxgagcacgucdyecgsgidvsreixzgbigidzfdbbyesifddnwgpgkfrfigwfdguiafauaebizdveghhdfehhrhtibbxxfiheiefkjbenimmjmfhjojededikjngbdkkhknejgensjfkmnymjwoidnfnllobnmnkjbookfjkihmmnnnhnjllkbhfmnoljlojjnoppimojppjkfrrnmrllormlkhmompprgpnjrrongmumllpoqmqlrpphlpoomncltkelkostqtshnqslsxqkpxqspxrtux...
result:
ok
Test #114:
score: 0
Accepted
time: 1ms
memory: 3948kb
input:
20 500 slcocdoeuswpovhxnefsxdchgfnwlduobfdajvwtydpyssopemfjmxxhybwyccommiyistixveoywghtfxdmdturqyumojdxdsxbhqmscboezlfgmrlwccygpbltparhkieqratosgogmxykbihmrryxqgqfygytxttksfhknglfbhejqjzitxzsbzirrtzffaigozubkirbzbnnmihyybpqsravofyatvxuykzjnkkygmtfexebdhhcitnenvitiiegtlwedrupvhbgwsdpprkjdhubvmkvxyusu...
output:
yduapwzzaafwlaabiczbcgcddhzb`eeyscybabbcdczlgeezdcdwdccdbdxyldierpycertchjddcepeepobmeedffgfffukadqhuhghhkhczuhfyhhhhfifibibcjiljrjbbhtajhycfhjjrjfngdzjjisjkhkkkxbebikftvklkklykrazkiegxjjixopkuillomllltkllimmjrmdmnqegmmokblmlmpqgwqkkylgknnunnhkmnsnjmaonxesisoofpluboytopaopjmoopsormupjnuvjsrgbnpgubfn...
result:
ok
Test #115:
score: 0
Accepted
time: 1ms
memory: 4228kb
input:
10 500 roqwtjzrjuwkjwdsrncguryxigdlozkssldrhkipfguyoldfyrosbquckzszvbfjkbhtvatcgdbnkrgszdlwlgnqvlyyrztbdpnvtvqyedmoevnpvoycipvhgglyxhsojpyjjquksdkqlwsglcisppapjlrvowqpzxgzfurbiuwjorofabhyvolrcdarwpshlkvigmnwucgffluinlyqblzuqbziqthcrqgtkyxphdsmbdezmiydqrumajjwofoqsgkghsjjarlkjgqrfigsadcyjdvhxigntkfwt...
output:
aaaaaaao`aoababbabababbbbbabzbbabbbybzccacbbccccccbccccdddbdddddeeeeeedeceaeeedeeecefffffeffefffffeffffffggfgfgggfgghhhghhhhhghhhhfhhgghhhhhgghhhhhggghiiiiiiiiijjijjjijjjjijjjjjjjjkkkkkkjkkkjjkjkkjllllllkljkllkljlklmmmlmimmmnnmmnnnnmnnnnllmnmnnnlnnoooonnnnoooomnoooooooppppompoppnppoppopoponpopppoppo...
result:
ok
Test #116:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
84 372 cghxpccqxmpjhtjdglpdovwbzyqusjaaaczvnuxwducxekfdxytfvidgytsrnsqttxtrbkxlfpiioewbjuhchzmaifgmgozzszkpzehdtrbuakovkrqcsufpylbvidlaysqeaphobqoswwlgvfqlcwmxalphjpjghaphienececljwcyzgwerjpblvsjpyglbhcrncsyutwoyiuswxfwisljgbkffxgcrtlbhcsikvelbqjpaztaasiszygtchgirkazcpgfcfxplcefbpgofwjacaubweqfkmrbf...
output:
hqyecyaaesovzbstegaxbvmsopqajgogzvkmedykxzfulzfmpdzunbukhzvipcuxejqnjgnjyxtmxgnrmoemicwazqxvxrxpvadnbd`yhodesgotytdhgonnifetqoeaivzprxzmicgazvmxcxxdefbxiwtwsdigpjojdlnmixfikifxldzbilkffuetlhqqsextndlxfnahwbszpudqyrfgnhzdftjxuienlthsjvbgqucbftynpnlzpfxmhvtifavfdchtcfwefmepysaaljuyqjuxiwzoskktkgbiyfon...
result:
ok
Test #117:
score: 0
Accepted
time: 1ms
memory: 3768kb
input:
40 500 bngwwqulygjlplyrkicksgvqqycoamxfcoydohxhytmdmskpyjwuhziugselpxqspsbzoecnmtcgkyrbphotgkvlalmmgzpnenyzurybwxlpllgnrvxgykkqqmqmmbansntkcgmbuovmzpzfinlzwofqungisfrttnxsoqulqmwdyurgvuuppkbgczyyegxmrdufnowmahnflulqmtkhpjjrmawolznbmzfcesnawzxiqhaekaphgdhxfpczmdjmogxtezqhvnxyoaoaapgctcprzcegjajvmplbf...
output:
aeiiregkyfdxaejcrspxhhafdhimenarfsbetdjuc`etjrxwjhvanjlyffldydsklaqfufbfnbkruehhpdttelmkxpemlpdnkbtaiwpztihdfztfewkzqfvcvcwkkstckjdzdoehfgikinlritocfgnkkjgpbbdyqexguoudhbqujcxdlqtedbdhlcxbqxdfrtjbdzvydnhkntjjgaycvbdquhsbfmfiogoecpivhokddnibcfnxleqrqtlxemrzwqneekjenqmukjnsossfjlrtrcricmvlpohtgifpxwbw...
result:
ok
Test #118:
score: 0
Accepted
time: 1ms
memory: 4200kb
input:
10 500 golmkejjbmsldxyvlvmbmgoaivglyqadcjhtedubrsjwtdkliqsltksdijsfeyvuttgvbcoqcmhcdjwnbatcprrrpmmnnqgamphfsbsesxqhwpnuxhcxqxeawyptrprmloahypvaivqyzugftstanjrxbbudyrvbkrvmhfqjatvypaevjlgxchmlgxtymnndzwosslntpihighkkspkuspqhxduqoiqlirubexhhpifeiogxqggfdvavhequdgjskvycqehyqgdcmgsuxbksdhhvlpqhhuumviqhu...
output:
jaiaaabiambjyjajbbbambbbovbyhbbcbcvclzcccacbdcddddscccdbdvdbxddddideeeemdeeeejdbeffhdfffeicffffgmgaefgghageqgfgfeggggghozgfvfjhhdhhghdhghhpiihhijjyjiqijjjjjjijwijgikjkkjkaujnkkijkfkhijlolcljkwllfvldjwlillkxmmlemmilmmmmbmfljmirmeeczmmtmnknnnlnknusilnnpknnfmnnnmknhfnmxnnooxounjonooooooppzpgppptppocppp...
result:
ok
Test #119:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
nraaaaikaaakaakkalan
result:
ok
Test #120:
score: 0
Accepted
time: 0ms
memory: 4068kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
wqaaaamaaaqspdaaagqa
result:
ok
Test #121:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
38 99 lemacjdnpybypkogwdtvhlhmlvzbhkbjaztriqyynvsftexmhjzzxyjthuaeozdpdxpjhtaqtqnddedkjlltttkklenffpfgpjl YYYYYYYYYYYYYYYYYYYYYYYYBYYYBYYYBYYYYYYBYYYYYYYYBGYYYBYBBYBYYYBBBYBYBBBYBGBBBYBYYBBBBBYBBYBBBBBYBYB ffoiuvnagcedozbnvdgcwehekesyjmonuaviekpeeetvihyvwtnvwucerddzlzdiiltbqtyfyfquaifdjdyadkytyookgn...
output:
jxdzvsbozlpjjcgm`qicxemjupvxeruwrqggrkxwhieectrujjtokrhznoxuzysxamgnqbuecqzmyzczdqjkkvfeqjeblgmisty
result:
ok
Test #122:
score: 0
Accepted
time: 1ms
memory: 3940kb
input:
10 500 avcyabyfbhldqyquiroxejrovopyxbgfslzbrmbbbhvxiozmwggujoagvafzguvgzztetufaehlozosicgjrhqnboxoqzxnwlinkwjtfcmstnhsxpbusuvudgepfwkpuenqjvmpuljzrewqmcldwmglpqfcezkmfueprdnceqlkeobrubhwmugcvkjvimcvqtdhgtcqxzldhntduytagztfheqmlkrvkfllddoemookesremmaxxavxeescpkijpneujkxokegzvfjtpvtwfiosefakjcziiczgco...
output:
taeatttasqaay`azaaaadaztabbbbbbbabkybbccccvccncrcktccvcbqcfccccdmddddiddddxcdssiddcadmfdddgllfefjyfxeffeeeffeeekzggcolbfgggedgggfgghjhhjhhjaphhbxphhgehhghhhfcmhhhziiicihidgcighiijjiijijgijjijexvjijjvgjkwjkkkklpwkkkkkgklhlkllljvdnllklflxkwmsdmnmmmmmlnymmpnnlnnnnnvmbnnonntocqonpppfoqqppzqiqwpqqqqopzoq...
result:
ok
Test #123:
score: 0
Accepted
time: 0ms
memory: 4120kb
input:
20 500 rhqrqfrgwyrzxmjqbfwzxjvlvykkreypsulclulaqxnwwnbongeepchnwgrojedulbplkkwfbxrxbkwtuztgxcfucyirctbhqmfyiicasmzpgtyqucsahojdjewbbxkaoupnzejlvgognwxxjgvtrnctdbblbhovfeellhuglseearomgbdtlnjmhnefntguonarkwoylusekasgztbqelwycvioxwgrmjxnvcxkdbrzfkldjzotbnzuvhyxyesfvaucxynavbkyaisfryutwqeginaehujgakoyp...
output:
abhauaabi`aiabsgab`bjcrnccijbvdltbxxrclhuscubqbalddwbddyzawdxxudhkdccddbhdaamacehexgcczehbqfnefcffeeioeqfbofcgljwdbeerdjrcjufxbvyjdfnhfeiiohjeibzzjshtcbdbpjqghqtojifjgskxieijikkkqjqwhlkolzltreimaljjkkyicoxljpwnqjxkkjclhfnivismilxjyfpgqnllpmmmvoamippnvbonoownaflhonpuxpiqckccnrwrqoccqgqprqpdofbkxtnzho...
result:
ok
Test #124:
score: 0
Accepted
time: 0ms
memory: 4044kb
input:
38 99 lcnqdbnunbdbzudjlrywtorribfyxduvteracrxyunifgbivvkzxefslommakqzpqkoipbfckyhghwtjafiwnybobniqqrcybxi YYYYYGYYYYYYYYBYYYYYYYYBYYYYYBYYYYBYYBYBBYYYYYYYBYYYBYYYYYYYYYYYYYBYGYYBYBYYYYBYYYYYBBBBBBBBBBBBBYB zvnepeuvrwzqrkmgoylqikrcnudzlzehdcyopuqytavurqzqygnpszcnykpfrsjdtlavrlgkkvswqkqrccffxugrcifdqo...
output:
zubrgbbhh`jnuziavazugaylsshcgisswocryqhljpljkkximftnntzwfvimbldnkbqeppwdzxlsksxzfsxllhhmiqbmffjmomz
result:
ok
Test #125:
score: 0
Accepted
time: 1ms
memory: 4072kb
input:
40 500 nociyvndtnjzbwfnkoirbeayjufjxljvsglmgbzyqddrlttohklanglgkepoezadibbyjpptxbsbeahwmdssetnwxyifixbcftwpekfiiormtpmyufikfguubzkngohpnroobefeanihvowxgdktkxpkyacxawaafupqcerckoyntlmvgdiehqgdmhftmlorsawglxdvtinmzdluinsnyeywxnvpossghmmnskkafswbeywoomhbidilmfzfjabgormdohxxlqewowhsjddlvltadnetadbynlguo...
output:
faoungefdfzvr`ir`jhrvuty`hbadivfmbyq`ozqcnfajyfzgqrjqaistuoebeztwfetxsuagpdlqxpj`erwbkwelgreftssonrdcjtlrinlqsxcirjqjjfrfbnfydhaalgizsglekuhejmdxlktavuqksdoeeaxamfnilkcjjlhkjlugzaogcyrnncme`wlsultiocoamprogegjfaycikwnhpgshmuolmrfqlewrtrfontzgqrwfspqvklesneqqlugjjtcfqhrzszhnamojdhjlzdjpzvjkgdejlbljhl...
result:
ok
Test #126:
score: 0
Accepted
time: 1ms
memory: 4116kb
input:
7 500 nngsllnxkpwnspcftnkpuhpuqcmirgfpmtejqrbhhdzylwumotzkqwyvmijqbklpgqewnldqkvgzbxcdhmkqtwsiifslmnpfqqgdotjptxpofzkspqsmegmgmsdyxndckfpdofzmggpiwgrrwhrciavopdwyqxzxthudmqheezbdqihpmkgezeklynghjlufystcgnujxdvrrlgiogbfudpahzltwlnmkmkcqmqmegpuhlgswhuelsoyomaqzgwwxvdkiwfokyetrkjahataworndgcvtqeoznxewh...
output:
pppppppppupppupppaaaaauaaaaaaapababbbaaabbbbbababbbbbbbbbbacccccccccpdcdcdcddddcdddddddeeeffffeefffffffffeefdeeeefffgfgeffgfggggggggggggehhhhhhhhfgghghhghhhhhhghiiiihiiiiiiihiiiiiiijjjjjiiiijjjjjjjikkjkkkkkkkkkjkkkjkkkkllklljlllmlmlmmlmlkmmmmmmmmmlmjnnnnnnnmnnnnnnnnnoooonnnooonooooppoppppppoppppppop...
result:
ok
Test #127:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
50 500 uikgvhvrmqsubmwdwhxcmtcpocrpxijhuvsniexaseairmkcbeklcgefagvtljfgiegaocuyuiqwxlxdpxurnojyioqamgwofiwfcmmjgyvigfvcjozervzfmkitsoakpqkjepbkpifrcuydaadlnyzuzqcivynubiadaagsmiahneoivnrxwyebomunjamdlnnbumabxevqugcbfgbqgduhgvjxtreauohsxzpqvglrttolbwlzpgbcqwgocnurrqkpximajmscldqajgqtvdmatypajhmynzcfj...
output:
bagbeddmbgnxcbcapzpggzdhzecddaiwsyrigidpgcheiqridabdiefybhkkhgkpcixesbkvkdxykdleikfcekhdgakkkhsqkngclejffulghzihiililfjkkleieiqekfjlcdljijjlhgdhilfhexohlcohohkckojogfogimmjjkmnimmnjohnnhnkhjhekmckpoomemkjprmyprgiamombogpjqprdqrfqpnprqqprjlrpmfmemnndhiqjlsapnpqqjssoqkgcvpkuufoqrjurnlsippsrtlsrapsssrr...
result:
ok
Test #128:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
20 500 idgnkmrnbkqgpmdkbfdszsrpghevtsnhgwolxsqqwathzcljlwpcegkceborovpjblydpugpdzmprpdwvhzoxmmchtdxrycqxtlqoankpbdsbkkwdhxmfxaiueqaglafodvimcpglygwxtyckrxkuufsvjjsbfsbbxesiuyqnukafrxdtflkkvnchyfayxvgvwvitxgljtcwnuwmmoloqlbsbhdqxuocnycrnprpkdvuboxdffqyyelptzdyegpoywwkplvejokbueqjyzpwmpozhiuyondtgkjea...
output:
nxa`ihifo`dkhmaaexhybiixbanbxa`bbobacebniecwcajtoxqabhcjducddidaeofcwddyceeendcereljfdmxfffdcqfykehfaidlfvjfwfkjrffeggiffiggufgdgnhrliiifimzewhjuchiypithiihiinpikhgyfzokhjoijkjilkujbkmjoohgklviflfolhjyikjadaxldklikdwljiljonnloogmtybmoaomwejokanlmonlspuniojoamophhmqsqjxoagzzmgcqywshqrmpnpbqrnpqqcrhre...
result:
ok
Test #129:
score: 0
Accepted
time: 0ms
memory: 5892kb
input:
40 500 snfrdqgnvyyaraqccmotrtokkfmalyybgpwgulvlyxckrcxcldtepcsadrgnmctvegynxumxxilbssrbpamhbiuqiqlywakejtvwikqspifcememdyupghrwclrlpvulxamihrmengmrcgbweadneunrpgnkulxwnxbcmxquvgmipebjnwojpfxnsbhvyctavdqcgrgwjlkjensloiqioeijlwsscfdgtktugkpxngprzvebltcjijglgaifurynycshpoocpkvtdbwsfxcuszwehszqobvmqwxfm...
output:
udxrdmtnzkknqatwbgekqrtegwwyaittsffweuxdubzffbddgpsdqjilqkvlciqaibfcyzlyztfnfbabidihxbaznayqbrbiwdzgfticjosubjwkoirfgarlalgjktwoifckjbikgfruetklzjrxirzyydhekyugekngdfziryjckoznwjgqoelevesgxmcalzhnchfnydolhllpqflly`suyannpupsplfdakkrfxmzsrchrsnuhejngfnqjzhawkmobwrklqteufdgtjtqqpqimshsskpngijosfwoepdz...
result:
ok
Test #130:
score: 0
Accepted
time: 1ms
memory: 4060kb
input:
8 500 xiqiycbimxqtfqjpslneyqplebchzxulzwjrgtegxuqgrqhvpnpngcjucxelkmjrizcvnrjqtvddxlpgltxwckqmpkpoadbippkbncrqfdfofscnfgpvyqgrbcdadfufemkbkpcdjmhyfokuxquypgtejulbyglpnrbdydywxfcupytfqnviupqgazwtyjbjxwfleheseyheobucdjqcdrefkqmslnrbjjmqerchombsqkofjgsnlwubvzvgedxljfjccwjrrctghbfuwwomjzzpkyxmcxkfxddgrf...
output:
i`nniiiniaaaanaaaiaaiaaababbbbbbabaaabbibabbbbcccccccaccbbcccccddcdcdddcdcccdedeedeeeddeeeeddeeeddeeffffefdedfffeefffefffffffefefggggggggggggggggghhhhhghhhhhhghhiihiiiiihiiiiiiiiifhhihihjjjijijjjjjjjjjjjijjjjkkkkkkkkjkkkjkklllkllkllllllllllllllkmmmmmmmmnnnnnnnnnnnnnmnnnnnnnnnoooopppoppppoopoppponppp...
result:
ok
Test #131:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
50 500 nxzrlyklxqvmvzvobwxktnrdwljurhvzllrjmfjkvwgcbkirbtiwylejxwfihpzvizdwvsgjaaiqkwriqildaoojglbljohibjkufsaagaxyjhzjfofnxmyhkwmlwbhzmydabjtgagwhedfhaypvajepofyhfbdouxwuhnbgztthctbqjqasonbglubknmeknsnbpctlwccyhiyepytqbcaftfrhwfzxocnndardvufksspvgfmsvcurqyeovcofkswrgwanlsgbllolrlsyweanwprleynusyizj...
output:
eccvddcwbedcfedaaicdqfaeecxxdegcfffdeefbefdghhbfihdfohaigvifdfcfshhfhraqdcgddfigfhdggicfedlecbekifegkikicvffgrhccaikghfysfdekkkcuk`ekhvjehkchfhlkidkjkjellkklgkjcekhikgjllmibldjiogokighkoeajlcpioooojcgcjtlpcvofpemjmpjklzlmlnjppbwlnsnnlnsilssnnjiitlphptssqttumptkkttipijtgmnuipqstumnsursmuaorqoqtmrmutp...
result:
ok
Test #132:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
30 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aasaa`taafnpasaadcay
result:
ok
Test #133:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
38 99 qeyynemrcyzwzvuoybvrvzmeehgkxdjsklfkrlthdrgtnwlmgpqrefjgmdwxoifalobzyiffgrdqlwwmvxatxvlhbhqsfnjqpmt YYYYYBYYYYYYGYYYYYYYYYYBBYYYYYYYYYBYYYYYBYYYYYYYBYYYBBYBBBBYYYBYYYYBBYBBBYGYBBBBYBYYBBBYYYYYBYYYYBB kfjamtsoagrrvlrqjnovogtiwsjwauxmqjmklnumwcarztrhzmhekliwilsnnuhbyewgqjzksoybnqnnggodjblpszvkse...
output:
yqnz`kpkiktlzjbaosgvbrtryaomiypruhlrbaauesaqkpvhyqcoqquacpprvhhngjcxwhcqccdcjmphhvlxmrhwlosatdazncb
result:
ok
Test #134:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
20 500 nixynynsrobetbjrzejtjkegkaogsaillemsrxikuuedvhrzjovgsfhkiwjzdstergysibyqpvyrwrrcjddsxlyqdlfwvjabmwanmxzkpihmmjxdutsingdorqgszclfjvcpzzjlemkpngmhrwchrycncoefavqmwcqlgyjzxtskapmxwnbdwnctpjsiabbaaurcjvefbpjouneqgejcpsnaahtylxsahmktvhvfzugxkulocepedrphwsujxowmnpdmbbqjulslqijltopnphxllsbrsbwdhyszd...
output:
p`qrbe`baaffizzaanbcdvyobycjtdfddjbwsdbdjgnocoqbfysddmdqttrfflmddpparqcaaevrflaqfdpeqhbjfbjlvfbbegxreehdcdgfdphefhmfoxgvaeagrghfoyhfhxfhrcxwhagpiwqixdiiginirijtkxjkkimjxkaijkkbgigtaaijiujqukkholguwbkllklvnkkpnjslnnkltnclndlljmnmzmonnslojumlloinieopjnowontommfmcofsothzvogjonhkzlropsphqpnigpeteylpnppq...
result:
ok
Test #135:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
40 500 qvxlguccwpbtfosxdxjcaslntxgmfxzsantgvrtmcyfwuqgucbdychvadnxfreaiklbmgmadqxpsrwocowtjrhjxyovenmbfmgtuyevakqjiuthlzixijiujvgnpelovuzakwbkmcoivedpzaytfbvcrzrexbiqyeqcprollhrjaqwjxqmiravpxfyifmhwbnfysqbdirmozlhellydconrbxfvunxuplujacyuzkxqpedznvprcimjrxpoilkspgtcceatsormsqnbyhndlgqwaytwsxxfttafsc...
output:
mtar`dlgahhndcklhw`ng`ecqpkmezgbvzqoueveadobiuboifkoptrrzgymzmaeslndzsccoglrwfihgirnahfkbroahzabrrhaeydelyhmeoimqcdqnmnstuqvkmmedbvlkcbmrdeactgsbyirzmlaetikkvtakcidpgkyqmbkrnsxzxlpeoozugtsnetxvzevbxqqzdibbwwondlicnpfmozcpoxxbfmtlqhaelurmjbrdnmxjnlgjrdospukxwcopbomrvjaduklputebrfygykjbfnjqeorqixerinc...
result:
ok
Test #136:
score: 0
Accepted
time: 1ms
memory: 3920kb
input:
50 500 lwgcolotodckvwmbefzrabvbqvekrdkwbovegjovpdlhpzdgeqgplvajpdisoxywdlssiaotqlvqdnndntdofaikqyekozxqjpuvwendiexjwqidxlikzcewckbjxdsnwdwfitpdnvwjnrglnhaazibzoizmfkkajvvvbpvcwdpsnhzepxrkcvnwoyyqnvzwqghqwhwtiarsouxqyqigucxxlxsmvxvmyaujclujbrxuyojcwxqgzszgdnuopfkjfnewiwgopkjefficwslltdgsbrditextdwxox...
output:
cpbdfeebfcbacyyfhdcbevddbtccdfdrrfcbfcwfchhzcahhatbfhoupbchdggugszdhbfcgegahpghvhcfdagabucggfgbiexxnhacieyeigwgrhbllllfdglgiqfeybhfxgehediebhxiikelsbdiflmmjhfdkihkjkmmmlkehlejzigkikcwdblbkhjmfmjbahjjhninflhnxhmglokhoookkkognoioefnjojlnoahngmllkokljjhgioljppmlmjonnopkldlknnlknqlqpooqlkqerprqcrrhoiarr...
result:
ok
Test #137:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
30 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aa`ar`hrjraapwamacxa
result:
ok
Test #138:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
38 99 pdcxnpchuhnjkesyrhzhbvigmnzsclduhpzbafsdjoqnvqufwccluyijavnbcvwzjmbslitkeoyyusmydcjgupsjugxcnvphnik YYYYYYYYBYYYYYYYYYYBYYYYYBBYYYYBBGBYYYYYYYYBYYBYYBBYBYYBYBBYBBYBBYYYYBYBYYYYBYYYBBBYBYBBBYYBBBBBBBB aktlvhefxyiyoqbfykdplzvpkqltlcmuoptxhixpddzrwgqvphxngbjhvwojcxztsgmvogdqqphprbqgphbskoqtxcpdbp...
output:
mrsemxxahaymnagshjnr`loqwvbyaxtyypqagslvoypabmdxkgdqfetpozwtoafyrldcybytchwfrecsfotfqwbpiywjbibtrse
result:
ok
Test #139:
score: 0
Accepted
time: 1ms
memory: 3748kb
input:
40 500 uzjmgymcylmysxcrrymwcnofpflbhruopcojnvkcmouoxfwhojapwtnnqefehbrbdxpvqjgmyspqeyybofbetcrfhpaqnljlnrgopvihrreqlxhasxouvgeapflvmxgjyagoxavhhwckjzzjxzdksqmuwizptrfodwvulsqxutedqazctagynmjbuwudnzmrmswbaacywrnwtyebgkbxqpbcdxcszswfpthkfdmzdamuztaigxctsrlsigjmzwsbbeybmymootmivkzmgxjrwkonyiataoefsfmvv...
output:
vhneze``k`ncahelobmqagutyefhazzybelrclerlclvgtbelimcghgguzeffhgcvupfhvwepvpvvhpimwzbtdhopgwhdqdgcinftbdpwqadgijhsvgfyjnbsmcbwyziikfrjmkxxhhnjblgkiwueekoogmyytecaigimpjmjyuramomiosvoprbjenxjuvxnlzpuwncpkjfefdqtvfpciacsgdvbprpwppolhealzlzppgqxqtvxivhwrximoqqxcbobpuynkniksrksssevxuzrneorsuatrasvvekboti...
result:
ok
Test #140:
score: 0
Accepted
time: 1ms
memory: 6272kb
input:
10 500 xsimzmrnrwkrhlqcudoxlgjohikinljmrhetqfzucreypgkxangkacnjgvzxlnqivnukorergxzmidkdjvluajuppwnlijnfzzkhawhhlcisvrcscjsdwsarerilfycpsrbgrplapfsrmcxrqhrztqgrslrbcxjcwuahohnhfbzpfnfilxihrkssyjtorcgorequvyokoteqsargqttlanlpaeivsrwztwymwnjmknihvrarnxhixaxbxsxhlfxcdkbfnyaqtactwzxfbtcmwdvdlcwyzfcmtljpt...
output:
gdddddaaaaaaaadadadgdaaaddaabdbbdabbbbadbbabbbbbcccacbccbdddddcddbdddcddcddcdcdcdbddcddeeeeefffefffefeffggggfggeggggggfgggegegefgffdgghhhghehhhihiiiiiiihijjijhhjijijjijjjjikkkkikjjkjkkjkjikkkkijkkjklllklllllllmmkmmmmllmmlmmmmmmlnmnlmmnnnnmnlnmnnlnnoonokoooooonoooooonopoppppopopppooopqqqqpqqqqpqqqqop...
result:
ok
Test #141:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
13 78 atxrzzdogxijznphsjlluqlrkgskvyztadtywogwecslmxfvqnfwfrdwhplvwhphcldrxatunvxrob YYYYYYYYYBYYBYYYYYYYYYYYYYYYYYBYYYYYYYBYGYBYYBYYYYYBYGYBBYBYBBYBBGBYBYBYYYBGYY bybporjtlvekycuvihdibibipzsqbwcsqzudxvyebzclyhkzqrqiharctxhbkmliuywlamwpdxosqp YYYYYYYGYYYYYYYYYYYYYBYBGYYYBYBYYYYYYYYYBBBYBBYBYYYBBYYBY...
output:
paacapbtddbfeffxbfhgilkgpkjjklljnvmnntbqeppdqqlwoqorrrprrssbuotuilyavvyvwzzryp
result:
ok
Test #142:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
84 372 qipcbroojpntrdpkaexvlxwjoiyovtvihmxautephjvzpdjvjbqqfsuhsutaqouxxnehofrvqmjcutqifyirgkvmhzuacqwgodopnrtoaufvufswewrvqreefwdwdnbrcuuuorjebvsfruunekopkysnwqioiqmithyfszubxeytclafgnhciwajyuuxzlorqepcodfcwsngahmaplzbisdhgqvrpgogvjkngnbkmrdeahyezspwzlovgaxsqkzbhfbdyldilojyhugijuxjifhgspdqpxpbpjygz...
output:
gmskdfngrsqdewaxsnjswnfsilxseqdhvwzxuuvqsrewxhpumpthhlczvlmahfwsinvelcyyonszsrsbcesgacmakysinpyqeopitreofdawhtqnkhkkgkguekxmhwysqxaemnakvhzhvmcnmygyyewqxxaijysrxlpeueajmlmzjxxxevyldzrcgrmrpkwydymgdbguywfwsqnlpezpqexcaldmusoerkwwvdbudsamipudrspmpdgpvwvdejntfzwmgwjhsfppnrfhzlixwralsnkoszkpczrrdyigwnwr...
result:
ok
Test #143:
score: 0
Accepted
time: 1ms
memory: 4104kb
input:
40 500 qdeezcmiwkdfctpgdwdffklbrqeluimxulivoceryupjudrqekkbtjogsxgzsjqhbvktutpwpxzaywigylbssvoasicrtocmpdsjhuvxxmkmouviukufiqdtcyghmevuqrcfdxbavmkwhtleuhsbecvejzuulmwqodlgklwcyaoczmhhtihfwwrjsjzivodqeyhvoobzbjkwouxxtrjfbpprikonyscerskpyllvnodnxscxcqoajuqrodqjlaeptbjcfmbjqlfkaczlvjhvnqaiwkjhfxqlczlyw...
output:
hg`aimtfhwggtucqpbyhwknfceloqrixuybixawxspzdujjigh`m`dzkevljbgabadfghqanpjotbhwjcdfxsphekhfbwromceuwjkmhqljcjydptpkslxxdnnvndppetejybanwbsrnykwftveecchdmmnuqkwgbuyioqjfxvtxivuutuxiwouefsmzadfhqukepvknyfvyeeghmqbqcykhcbxsnlldhpvibubkzghiixvpxlrixrostnngagguzmtglfqvnntikucuizuuvztjnupqshylosvtkywcshdq...
result:
ok
Test #144:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
jkyaaqmqaraaurvmyaaw
result:
ok
Test #145:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
fphacwfassglawaopjww
result:
ok
Test #146:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
acxqacaagocacapaaaayablacaaracaqawgwajaaaaelqadddeeaaawaahaddanaapafafanfabaaaaaafpafagggakaauvaaagaaaagaaaajakfaaqaajxahijaaaaatlawaaaajjlaaahgaaaaaaehksmnnlmuauaaajaaiakaamnvaaaanaaamnxaabaamoapapuaadappaaaaqeaosqopqqdqaaqlaqpaaqoakasdfhmaqfaangwsqaaorxappubsaastsrtswvtraaadupaaaysfavavuygwyaaxxbc
result:
ok
Test #147:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
egagaosalaaprayrpyja
result:
ok
Test #148:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
30 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
favarfaluanaapnatgwa
result:
ok
Test #149:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
mccaadqamdwosqalaaja
result:
ok
Test #150:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
38 99 amimobtouampmyfcupgtlsdjbtftablgthpaamgzurxxpzhqmahepdflzsnsiwgepjejgzvlbndsilxrhegxmxofimocmhunwvn YYYGYYYYYYBYBYYYYYYYYYYYYYYYYGYYYYYYBBYYYYYYBYYYBBBYBYBBYYYBYYYYBYYYYYYBBYYBBBGYBYYYBBYBBBYYBBYYYYB gyzmrybfmjlbxvzqqdbekapnixntkelxammnjmqzppfyfiarfhjrfvzsfsdfwmxyhnaeqktbysrtzteeutpvldzyuldvlq...
output:
ozzmborwthdfoglvdgyontgctxcetbbehvgudapapjtccuewucsjrztzmxenjfuarscorrcaclzjvjxtxgivvqtyrweneivwgpd
result:
ok
Test #151:
score: 0
Accepted
time: 0ms
memory: 4008kb
input:
20 10 azzzzzzzzz GBBBBBBBBB zazzzzzzzz BYBBBBBBBB zzazzzzzzz BBYBBBBBBB zzzazzzzzz BBBYBBBBBB zzzzazzzzz BBBBYBBBBB zzzzzazzzz BBBBBGBBBB zzzzzzazzz BBBBBBYBBB zzzzzzzazz BBBBBBBGBB zzzzzzzzaz BBBBBBBBYB zzzzzzzzza BBBBBBBBBG gdsscwqous YBBBBBBBYB dwinyxqdqu BBBBBBBBBY zhnowhvsns BBBBBBBBBB xkdiostp...
output:
algumapata
result:
ok
Test #152:
score: 0
Accepted
time: 1ms
memory: 4136kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
aacjfadaaoaadaathadyadaydaedacauaaaaaaejheeeatqafeauaaggaaagdcaiiaaaaaaifmgawahmaiagaaihaaajiaaaaakabaakajjmammnallanncaataklnaellokaaxannaaanaakkaoaaaoaaaaamapjaajoaupkpasapuajuoqaautokarrauauuaqacrauasryasanuquwauauatattaaaawlasxgvaetavaxaaeavaadxaxxayavxaaasdjaaxwaayaabakxlabacaaaamwaaewawsoaiaaa
result:
ok
Test #153:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
31 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aaaaacegoaaeagvataaa
result:
ok
Test #154:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
20 10 azzzzzzzzz GBBBBBBBBB zazzzzzzzz BGBBBBBBBB zzazzzzzzz BBGBBBBBBB zzzazzzzzz BBBYBBBBBB zzzzazzzzz BBBBYBBBBB zzzzzazzzz BBBBBGBBBB zzzzzzazzz BBBBBBGBBB zzzzzzzazz BBBBBBBYBB zzzzzzzzaz BBBBBBBBYB zzzzzzzzza BBBBBBBBBY qzrjviywup BBYBYBBBBB mhroevgubl BBYBYYBBBB dfhcfqjgpp BBBYBBBBBB gjnwpser...
output:
aaavraance
result:
ok
Test #155:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
daasamkaiaasiaaxarka
result:
ok
Test #156:
score: 0
Accepted
time: 0ms
memory: 3956kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
gfhpaosaaaanaayaaaos
result:
ok
Test #157:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
nfebtaaaaxopaoapnsvb
result:
ok
Test #158:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
29 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
aakokaarfkadaalxydms
result:
ok
Test #159:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
20 10 azzzzzzzzz GBBBBBBBBB zazzzzzzzz BGBBBBBBBB zzazzzzzzz BBYBBBBBBB zzzazzzzzz BBBYBBBBBB zzzzazzzzz BBBBYBBBBB zzzzzazzzz BBBBBYBBBB zzzzzzazzz BBBBBBYBBB zzzzzzzazz BBBBBBBYBB zzzzzzzzaz BBBBBBBBGB zzzzzzzzza BBBBBBBBBG wvzqnqfrwy BYBBBGBYBB whmfqjpixb BYBBYBBBBB ytdmgqlwso BBGBBGBBBB vjwojycf...
output:
aadhrqvuaa
result:
ok
Test #160:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
23 35 zzzzzzzzzzzzzazzzzzzzzzzzzdzazzzzzz BBBBBBBBBBBBBYBBBBBBBBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzbzzzzzzzzzezzzzbzzz BBBBBBBBBBBBBBBBYBBBBBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzzzzzczzczzfzzzzzzzz BBBBBBBBBBBBBBBBBBBBYBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzzzzzzzzzzzgzzzzzzzz BBBBBBBBBBBBBBBBBBBBBBBBBBYBBBBBBBB zzzzzz...
output:
ddddddddddabdefghijklmnopqcrstuvwxy
result:
ok
Test #161:
score: 0
Accepted
time: 0ms
memory: 4044kb
input:
27 10 vvvnnvvvnv BBBYYBBBYB vvvjjvvvjv BBBBBBBBBB vvvyyvvvyv BBBBBBBBBB vvvttvvvtv BBBBBBBBBB vvvaavvvav BBBBBBBBBB vvvoovvvov BBBBBBBBBB vvveevvvev BBBBBBBBBB vvvhhvvvhv BBBBBBBBBB vvviivvviv BBBBBBBBBB vvvssvvvsv BBBBBBBBBB vvvqqvvvqv BBBBBBBBBB vvvrrvvvrv BBBBBBBBBB vvvkkvvvkv BBBBBBBBBB vvvddvvv...
output:
nnn`xnxnxn
result:
ok
Test #162:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
27 50 iiiiiiiiriiiiiirirrirriiiiiiriiiriiiiiiiriiiiiirii BBBBBBBBYBBBBBBYBYYBYYBBBBBBYBBBYBBBBBBBYBBBBBBYBB iiiiiiiixiiiiiixixxixxiiiiiixiiixiiiiiiixiiiiiixii BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB iiiiiiiifiiiiiififfiffiiiiiifiiifiiiiiiifiiiiiifii BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...
output:
rrrrrrrr`rrrrrr`r``r``rrrrrr`cccccccrcrrcrrrrrrcrr
result:
ok
Test #163:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
27 100 wwwwzwwwzwwwzzwwwwwwzzzzwzwzzzzzwzwwzzwwwzwzwzwwwwzzzwwzzzwzwwzzzwzwzwzwwzwwzzzzwzzzwzwzzzzwzzwwzzww YYYYBYYYBYYYBBYYYYYYBBBBYBYBBBBBYBYYBBYYYBYBYBYYYYBBBYYBBBYBYYBBBYBYBYBYYBYYBBBBYBBBYBYBBBBYBBYYBBYY hhhhzhhhzhhhzzhhhhhhzzzzhzhzzzzzhzhhzzhhhzhzhzhhhhzzzhhzzzhzhhzzzhzhzhzhhzhhzzzzhzzzhzhzzzz...
output:
bbbbwbbbwbbbwwbbbbbbwwwwbwbwwwwwbwbbwwbbbwbwbwbbbbwwwbbwwwbwbbwwwbwbwbwbbwbbwwwwbwwwbwbwwwwbwwbbwwbb
result:
ok
Test #164:
score: 0
Accepted
time: 1ms
memory: 4064kb
input:
27 500 uuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuuunuuuunuuuuuuuuuuuuuuuuuuuuuunuuunuunnnuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuunuuuuunuuuuuuuunnnnuuuuuuunuunuunuuuuuuuuuuuuuunuuuuuuuuuuuuuuuuuuuuuuuuunuuuuuunuuuuunuuuuunuuuuunuuuuuuuuuuuunuuuuuuuuuuuuunuuuuuuuuuuununuunuuunuunuuuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuu...
output:
nnnnnnnnnnnnnnnnn`nnnnnnnnnnnnnnnn`nnnn`nnnnnnnnnnnnnnnnnnnnnn`nnn`nn```nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn`nnnnn`nnnnnnnn````nnnnnnn`nn`nn`nnnnnnnnnnnnnn`nnnnnnnnnnnnnnnnnnnnnnnnn`nnnnnn`nnnnn`nnnnn`nnnnn`nnnnnnnnnnnn`nnnnnnnnnnnnn`nnnnnnnnnnn`n`nn`nnn`nn`nnnnnnnnnnnnnnnnnn`nnnnnnnnnnnnnnn`n`nnnn...
result:
ok