QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#124788 | #5161. Last Guess | jzh# | AC ✓ | 4ms | 4384kb | C++20 | 4.7kb | 2023-07-15 15:34:13 | 2023-07-15 15:34:13 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define MAY_BE_HERE 0
#define MUST_BE_HERE 1
#define CANNOT_BE_HERE 2
char guess[600], reply[600];
int f[26][600];
int cnt_min[26], cnt_max[26];
char ans[600];
template <typename Cap = int64_t>
class Dinic{
public:
struct E{
int to, rev;
Cap cap;
};
int n, st, ed;
vector<vector<E>> G;
vector<int> lv, idx;
vector<pair<int, int>> egs;
bool BFS(){
lv.assign(n, -1);
queue<int> bfs;
bfs.push(st); lv[st] = 0;
while (not bfs.empty()){
int u = bfs.front(); bfs.pop();
for (auto e: G[u]) {
if (e.cap <= 0 or lv[e.to]!=-1) continue;
bfs.push(e.to); lv[e.to] = lv[u] + 1;
}
}
return lv[ed] != -1;
}
Cap DFS(int u, Cap f){
if (u == ed) return f;
Cap ret = 0;
for(int &i = idx[u]; i < int(G[u].size()); ++i) {
auto &e = G[u][i];
if (e.cap <= 0 or lv[e.to]!=lv[u]+1) continue;
Cap nf = DFS(e.to, min(f, e.cap));
ret += nf; e.cap -= nf; f -= nf;
G[e.to][e.rev].cap += nf;
if (f == 0) return ret;
}
if (ret == 0) lv[u] = -1;
return ret;
}
public:
void init(int n_) { G.assign(n = n_, vector<E>()); egs.clear(); }
void add_edge(int u, int v, Cap c){
G[u].push_back({v, int(G[v].size()), c});
G[v].push_back({u, int(G[u].size())-1, 0});
egs.emplace_back(v, int(G[v].size()) - 1);
}
Cap max_flow(int st_, int ed_){
st = st_, ed = ed_; Cap ret = 0;
while (BFS()) {
idx.assign(n, 0);
Cap f = DFS(st, numeric_limits<Cap>::max());
ret += f;
if (f == 0) break;
}
return ret;
}
Cap flow_at(int eid) const {
return G[egs[eid].first][egs[eid].second].cap;
}
};
Dinic<long long> dinic;
// S = 0
// 10..35, 40
// 100..100+len-1
// T = 1000
void add_edge(int u, int v, int cap) {
dinic.add_edge(u, v, cap);
}
vector<int> graph[2000];
void my_add_edge(int u, int v) {
graph[u].push_back(v);
graph[v].push_back(u);
}
int zzk(int x) {
if (x > 0 && x < 100) return x;
for (int o: graph[x]) {
return zzk(o);
}
return 0;
}
void solve()
{
int g, len;
for (int i=0; i<26; i++) cnt_min[i] = 0, cnt_max[i] = 600;
scanf("%d%d", &g, &len);
for (int tt=1; tt<g; tt++) {
scanf("%s%s", guess, reply);
vector<int> cnt(26), max_flag(26);
for (int i=0; i<len; i++) {
int ch = guess[i] - 'a';
if (reply[i] == 'G') {
f[ch][i] = MUST_BE_HERE;
for (int j=0; j<26; j++) if (j != ch) f[j][i] = CANNOT_BE_HERE;
ans[i] = ch+'a';
cnt[ch]++;
}
else if (reply[i] == 'Y') {
f[ch][i] = CANNOT_BE_HERE;
cnt[ch]++;
}
else {
f[ch][i] = CANNOT_BE_HERE;
max_flag[ch] = 1;
}
}
for (int i=0; i<26; i++) {
cnt_min[i] = max(cnt_min[i], cnt[i]);
if (max_flag[i]) cnt_max[i] = cnt[i];
}
}
dinic.init(1005);
map<int, int> free_to_use;
int need_free = len;
for (int i=0; i<26; i++) {
int rest_min = cnt_min[i];
int flag_max = (cnt_min[i] == cnt_max[i]);
for (int j=0; j<len; j++) if (f[i][j] == MUST_BE_HERE) rest_min--, need_free--;
if (rest_min > 0) {
add_edge(0, 10+i, rest_min);
need_free -= rest_min;
for (int j=0; j<len; j++) if (f[i][j] == MAY_BE_HERE)
add_edge(10+i, 100+j, 1);
}
if (!flag_max) {
for (int j=0; j<len; j++) if (f[i][j] == MAY_BE_HERE)
free_to_use[j] = i;
}
}
if (need_free > 0) {
add_edge(0, 40, need_free);
for (auto [i, _]: free_to_use)
add_edge(40, 100+i, 1);
}
for (int i=0; i<len; i++) {
add_edge(100+i, 1000, 1);
}
int mxflow = dinic.max_flow(0, 1000);
/*
for (int u=0; u<=1000; u++) if (graph[u].size()) {
printf("[%d]\n", u);
for (auto [v, w]: graph[u])
printf("\t[%4d] %d\n", v, w);
}
printf("%d\n", mxflow);
*/
int en = dinic.egs.size();
for (int eid=0; eid<en; eid++) if (dinic.flow_at(eid) > 0) {
auto [v, id] = dinic.egs[eid];
int u = dinic.G[v][id].to;
my_add_edge(u, v);
//printf("%d %d\n", u, v);
}
for (int i=0; i<len; i++) if (!ans[i]) {
int ch = zzk(100+i);
if (ch == 40) ans[i] = free_to_use[i] + 'a';
else ans[i] = ch-10+'a';
}
ans[len] = '\0';
printf("%s\n", ans);
}
int main()
{
solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3804kb
input:
4 5 reply YYGBB refer BBBGG puppy YYGBB
output:
upper
result:
ok
Test #2:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
2 12 aabbccddeeff GGGYGBYYYBBB
output:
aabdcbezdzzz
result:
ok
Test #3:
score: 0
Accepted
time: 1ms
memory: 4352kb
input:
25 500 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqoqqqqqqqqqqqqqqqqqqqqqqoqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjq...
output:
abcdefghijklmnzooprstuvwxyzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzozzzzzzzz...
result:
ok
Test #4:
score: 0
Accepted
time: 1ms
memory: 4328kb
input:
24 500 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvuvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...
output:
abcdefghijklmnozpqrstuwxyzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzpzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
result:
ok
Test #5:
score: 0
Accepted
time: 2ms
memory: 4308kb
input:
23 500 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqq...
output:
abcdefygghijklmnoprstuuuvwxyzyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy...
result:
ok
Test #6:
score: 0
Accepted
time: 2ms
memory: 4272kb
input:
22 500 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccoccccccccccccccccccccccccccccccccccccccccccccccccfccccccccccccccccccccccccccccccccc...
output:
azbbdefffghijklmnopqrstuvwxyzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzbzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
result:
ok
Test #7:
score: 0
Accepted
time: 1ms
memory: 3836kb
input:
30 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
vaylabmpqravasaauavj
result:
ok
Test #8:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
31 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
avqduiasiaafbuvvayya
result:
ok
Test #9:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
sawaaooaaaeakaahaaal
result:
ok
Test #10:
score: 0
Accepted
time: 1ms
memory: 4208kb
input:
25 500 eppppsppppppappppapppaswppspwppeupppwpwppppwppspppppppapppppspppappwpppppspspuppppppppppupwppeppppppppuppppusppspppppppwppppppppspeppppppppppepspppeppuppppwpppppppppppppwpppppppwppupppppspppppppppppppupeppppppppsppppeppaeppppppppppppppppppappppppppppppppppsppwppuappppepupuapppeppppppapppppppp...
output:
vayjogcjsnarhzfrshqbxhgirsgmitjvlabdikinenuizmgwwuqtzohxzeudgtmnhsaiacratgwgjljtkyetowdwlaibdvksccbsonlmrdjlgbngconrstmidytrdknwgjvyxzueqskrnvqgzmtvaelfxubiaqctbexjeftotinkqfsusinolqbsxjgcrqwkerywwmyylevubemsnzagqjtuvcuhvrbcnfcxznfymkquskbhffkcxrezezkemfyfgfzirxlhanfbvrldlhfcavqzzcbyhycwtknftnxhomqg...
result:
ok
Test #11:
score: 0
Accepted
time: 3ms
memory: 4156kb
input:
25 500 smxeetdiacxotgkpibsieraggqfjdbjxykzpiinrjxkmcczngkgpidtnacrzonzmrjsyfaiptigawddifgqxiiqibyymxvzncvifqsyfxmeodqwvwgqegpizkzfvsyywomkaviwjcasacijfbpjibvsroitinpfddjzcdkmxeisynrzipizmoyveveqwsfaqixobgrkstwtdtcfbwrvyvrgwdcmjozmitwcfitpzqdnikqbcpzyerwwigzdiczfmagmvacqxwbbiiiqrgxwvprvicjdsajinpmrrn...
output:
lxrggumnthrcukqbzoljgstkkayvmovrpqfbjjwsvrqxhhfwkqkbnmuwthsfcwfxsvlpytjbuzktdmmnykarnnanoppxrefwhejyalpyrxgcmadedkagkbnfqfyelppdcxqtendvhtlthnvyobvzoelscnuzwbymmvfhmqxrgnlpwsfjbjfxcpegegadlytajrcoksqludumuhyodsepeskdmhxvcfxjudhyzubfamwnqaohbfpgsddzkfmjhfyxtkxethardoojjzaskrdebsenhvmltvzwbxsswengqqwz...
result:
ok
Test #12:
score: 0
Accepted
time: 3ms
memory: 4168kb
input:
25 500 zzzzzzzzzzezzzzzyzzzyfzzzzzyzfzzzzzuzzzzzzzzyezezzzyzzzzzzzzzzzzzzzuzzzzzzzzfzzzzzzzyzzezfzzzzzzzzzzzzzzzzzzzzzzzfzzzzzzzzzzzzzzuzzzzzzzzzzzzzzzzzzzzuzzzzzzzzzzzyzzzzuzzzzzzzyyzzzzzzzzzzzzzzzzzfzzzzzzzzzzyzzzzyzzzzzzeezzzzzzzzzzyzzzzzzzyzezzzfefzuzzzzzzzzzzzzzuzfzzzzzzezzzfzzzzzzzzzzyuezzfzzz...
output:
qjtwjfaynbvccrdxmkyemidubqxmbidthnhseryxlaeymvbvdqgmjplbtulcjwhffjcsftewuqbxixoaeklqmfcvjiyeuthdcnfrqlwcoynrwjtxyinarlkxyfwkcjwxsqbcldqgnhuohjjbalwyasdpgxqdrbenwmyonrsplnurofmmjjfkxwoqabotkkoatikpndnkqcqxmlpggmanbphuvvttrwehopqgmkreelbdmyvrhgivicskkpqgklfpyytlsxixrlogyvqanirnpjbxexfdmsvgfiepdgrsdfgd...
result:
ok
Test #13:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
26 500 ffafffffafffffffffffffaaffaffffffffffffffffffffffffafffaffafffffffafffffffffffffffffffffffafaffffffffffafffffafffffffffafaffffffffffffffffffffaffffffffffffffffaffaffffffffffffffaffffffffffafffffafffaaffffffafafffafffffffffffffffaaffffffafffffffffffafffffffffffafffffafffffffaffffffffffafafffff...
output:
jwqgkmcwfmttddjkrgeiupgfkpfhchbnthnxduniuodldbwubupqebtfneqjtwbtbpfnjtbblwpkwpmlmjcbhtnethftfwbhspbcnjiqbhjwwqhlbijtwbifhqnunbnhulnhnemgnhrhujflhjhlplbeklebltcfuefibwgchwiujeenkfnjxitedgusfpxowsfcosffogyohkfifogrfrrcdskevggktsttffwnsowcfojjetdpkpytqcweovropxsrsrtxvkqryirsosftjpjpgipmrftgcotxitpqgbci...
result:
ok
Test #14:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
26 500 eeeeeeeeeeleleeeleeleelleelellelleeeleeeeeeeeeeeeeeeeeeeleeeeeeeleeleeeeelelleeelleeeleeeeeeeeeeeeeeeeeeleeeeeeeleeeeeellleeeeeeleleeeeeeleeeleeeeeeeeeeeeeeleeeeleeeeeeeeeeeeeellleleeeeeeeeeeelleleeeeeleleeleleeeeeeeeeeleeleeelelelleeeeeeleeeleeeeeeeeeeelleeeeeeeeeeeleeeeeleeeeleleeeeeeeellee...
output:
anwwzydgsgeaxgiaertejmxxudxcxeaeegyvertppdvrdzfksvijdayieapbbgaceyfebbbirkahxckchxvrbebwkwawkwffdrafprsghjdkbckgxrwpbkvxnhbjgkkikakjgvicihdwrnbtatpkrrdrftpceuboanckirrkadabpkbghxxihkcagspciscpxxousgwbdhynwdxshcicadawgayxygnbtgkmhrxnfjrootkjbrxbyogoojsidbhnordovpvvptbuomajjxtbstntxffimdmsmhxsvpkhntjp...
result:
ok
Test #15:
score: 0
Accepted
time: 2ms
memory: 3860kb
input:
26 500 dddddddddddkddddddddddddddddddddkdddddkddddddddkddddkddddddkddddddddkdddkddddddddddddddddddddddddddddddddddkdddddddddkdkddddddddddddddddddddddddddkdddddddddddkdkkkddddddddddddddddddddkddkddddddddddddddddddddddddddddddddddddddddddddddkdddddddddddddddddkdkdddkddkdddkddddddkdddddddddddddkddddddd...
output:
jnjcyaxvcfiqncbrbhwifbjbcrmjvvfbsxnfcidjbbjbbyysxhiaseebchnbhjnuhcubshtndhpeiuvtjhmejfnegyepxemtmtfeethicttdttcanxwhadlsvctemetayueenxucefhgjvtjvpqrrqwwvqtiquqiqddcxwimewegtpnihipfppzdpgdirnrrpfrffffmrfqcjhpjicrfgaghgftnrmeffttpjmgjcdqtxcaqjnfmcgxvcxtdqshamdvnszamdjxeigmqcmlhwunpzcamasamfnmpsfswsthc...
result:
ok
Test #16:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
2 1 s B
output:
z
result:
ok
Test #17:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
5 3 idn BBY mvh BBB cva BBG you BBB
output:
nza
result:
ok
Test #18:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
3 2 jt BB bg BB
output:
zz
result:
ok
Test #19:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
4 8 jzhqnmbc BBBBBBBY quubxmwq BBBBYBBB zkmtxamf BBBYYBBB
output:
ctxyyyyy
result:
ok
Test #20:
score: 0
Accepted
time: 1ms
memory: 3728kb
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: 3820kb
input:
13 78 imwrldcrlcooqlzmcczciijjughombdengtcurojkwqyuoqltmduvwebvyysshwjythllxhrwmcepz YYYYYYYYYYYYYYYYYBYBYYYYYYYYYYBYBYYBBYBYGYYYBBYBGBBBYYYBBYYYYYBGBYYBBYYYBBBYYY pkcwlbnthqplkuohoonvnqbouaakqdpwsyoscpqagkfhfpualsnonjnkkdtudoyvknpjgyhaqoxwak YYYYYYBYYYYYYYYYYYBYBYBBBBBBYYYYYYBYYBYBYBYYYBBBYBBBBYBBB...
output:
oceejfrjrgbegfhihhizkjiiljlhtlzoupmzpmxzkmpzoyretieqrcsdqseqqtzjtvtwxwwzycztry
result:
ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
38 99 veadnsajqcnbynqxawytaccryhlefhbhusmjhplsemwsagxkiryxfwrsarpmhsrpikievjpafqszuqklxetizrtlwxzxyelalsr YYYYYBYYYGYYYYYYGYYYYYYBYYYYYYYYYBYYBGYBYYYBYYYYGBGBYYBBYBYYBBBYYBYYYGYBYYBYYYBBBYYGYBYBYBYBBBBBBBB njkybjdzyrkufafkessouzzsbkyimahkltsqqpngkgghqodbebxahavilwxmbmkqkucahpokaktlylhnmyjyxwbmrqhepj...
output:
opuejvbaccpmuywvadnufktqwejvzqybpwebcpgegcfpnmnnimytxztcoqgvluzgaihzejzxvnptlijyacziataqghhtoqwfjdz
result:
ok
Test #23:
score: 0
Accepted
time: 2ms
memory: 3952kb
input:
4 113 suwodmkfmlkafcxpdgicvnrluhqkmulfirwtawvjxzzufmxruiiezmyebjlpxkzujfxjosfdqlbwfqtyripgsshmclhmtsosukwlgnzqvtbygnlau YYYYYYYYYYYYYYYYYYYYYYYYYYYYYBYYYYYYYYYYYYBBYGYYBYYYBBYGYYGYYYGBYBBBYYBYYYYYGYYYBYYYBBBBYYBBYBYBBYYBYYBBYYYYYYBYB qpizotexiviavifrwmnhmqgxvxdueohjcyrzsinuuuhpbknejcjupvqhtnlsssylqg...
output:
aaiabbbbccccdddeeeeeffffggdgghiijiiijjkkkkkllmlllmmmnnneoolooozpppppqqrrrsqtfsvtttvuguvvvvwwvwwwxxxxyzyyyyywyyyyy
result:
ok
Test #24:
score: 0
Accepted
time: 2ms
memory: 3828kb
input:
102 377 gocqhgzrtqkevpckmjqhgbhpxtoliiukyxibpizzagbxroteetcwzpgzybsaxrhvudaxrrzjhisrbumzvaaaokwzpekgczhkbjqlgrdijvecheemmcoieoyhsyhooaxzmronnoovfdwelqbhlrqovoiubzbdixkvzujlsadyysnxcmvcxcsayqjyidlignyemacoyyuwjvpkitgsyjuzjyjtgxzamytxssxbocvprlhksvhegfjuldompxslryoubylyxzaospsxecpctamowqxxngbjtvoskmhv...
output:
fzhbpvvtfsjzghjjvoanwlhesznrmaqdkvrmnkxxcuaxtenfaqpctuywoclxzlgiscpcylgmjmtltvcjmmohwaiihbsonoraefpauuszkmewlodhhorizaizitonwailoikleknwtlngirnvxeujutmnszyjltnniospmismtvvtnltapcyfmjwhhabewciomfutgmqufzdvregkfbllubjmwxvqjiaoicgvslnzmcykvxszfjqevigtekrfbmcihthffbubmertrhniybzfxpjdpyejmvnmyvzyribcyhkw...
result:
ok
Test #25:
score: 0
Accepted
time: 2ms
memory: 3852kb
input:
84 372 esizksnrmnyidougizdjmkksweafwdywugqdkisbdjaxfjghvoiwxhsmntnkyrimjajlspiqfomzyvpxdpispoveqzrcpfyntfxpcllewbdftkcwpjodchqeyfavuainqvggspnirpjpdcdcljmwzfkbrzleubsvxoeyzwzmmkrbiujgtcwpkeqtenikfnwqspnahiqwdxarppclogyrdpmqwuhqrdhgjfvjxifuksfhpkxjbmywimtettgrtgexekpaacpvtgorcljdnodtdudsatgszvvkpxkhh...
output:
priirafhcttvbcwmukqupwazyrzdryqixzkfnnamuzjifxtwhryteowgwdtrygfvyaxpjzvolkimwxfqpqzevqjmhzezhvtzyowazevweuzictoaxwabyiknexmxymtqvfcvysakdlegsotvhbzrrfcimfazueugoqtrdbcqrkxdtqatexonjtkeargeblphfcxscjdcaqzatcdksezpuwgvunnyymffvdfdpwrhfmvpawqoafeujyguhlelzcfuhnmgqrsxxzfeaxpyvtjxthrqevetoixfmdmzjvkwxixn...
result:
ok
Test #26:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
120 341 qddkzllppvsamvuytcyvfmcgdsowlmasqwecvmbfkfgbmiluxdghcvyfiyynhobehlxsoslwjoxkkjmmcjjyjhuntirpeszmmsfcdduerkrzasnxsczqzcyunsqaalvjkkdrksdjhgojrkljxzflsdljjlbjrhjhhblrqhgtljjieelickdyszvkcskljuykzcpeuttphlonwanfndlkqcbgkjvocnwugyyxxbaccwpyrmyaapkciubysrjvemksuamhojymppamhhvvockwocvvjdmmssedjuzn...
output:
tnraljmrauiwhqddhuqxevuwjktugbqedadidsxnduvdoawjznplzlwxkgvfwyrcvyvkcliahpquktdvezcoeoxlmjrflyvrvynqmchlgbxnhxxlmdqdnsugabizimrirmzwdyewmjojiaifcbbrkivmfjuynkrwmctmonrblnataybzyyynwojbqozhdbpyxejgrdsknwzulbicasbwdjmwylxjawtrhgawavmilelwmoomtvlohtdsorjlixtcfedwfabomegtndzvhhfyizcnhiacpvicuwrkmiccrwdk...
result:
ok
Test #27:
score: 0
Accepted
time: 4ms
memory: 3760kb
input:
500 500 uzkbwmwxenfvjjmbfpvgdgkfcrtjgftkcsdhgxlqcqyrtzqggauozihovqxyepxlqsndunqfvrwqhjszvzmttihgcwvyxugzbkxjwfqvvpakmrkohzrutlbfludsfkzmjrzkqsnstnxnlieshrqfqqfgttcsdinuvqzyueqhhtknnbnhstvabfyfpwszpkwvfzjlfnzgnlzzdeqcemnvcrbbxytfhajyvmaxfmczviyqafmkwmmrelmpmzcbwjltbejfuyizjyggmhkgmuhjijtsrfwzmmmkqieh...
output:
xtkupmikoalqczppaqstzuiezbugnmrfezofiejbxedkwmhldzkqactqmmcsuwmjddllfifimjtratgnnerahiklscixwmfrciloflzwalrxbtfglaouusctqbsevtkhaqtcqqothbasjyihutvpkdgaweyploaqfzsuqjotuxviounxiapvtcfovxyeutvfmgvhyzrcilfuxnappehaifxawqghytxvrylxyxuxkzqmoprdphfgaidifgmdfyvzyzvaxlzxfqbithwwglczjhxuoobaxsotlgfhkdauudoi...
result:
ok
Test #28:
score: 0
Accepted
time: 2ms
memory: 4268kb
input:
2 500 cjvtcyhtzxnkypncxcydztkdxkosxdtlxzaetauygumxwzgkqittrtirkgnjuwanpdokgrbvwwlxxmivnzgnfelcxzmggmfwrtuexpxxyxuniivgwiykbzhnfbhgtoizuumgvoazbkcgzyhtamdsnnuejfwgmgbffdpnaeulrjfiflxrfqmkxkqkfwqcylsieetenjwbgmzewvgownfiylsvjzijpgrdfozciarqzqckecrwevmdtilipcerlcmbvogajnlfiwwcfurfxgtwbavfogarxcovbrwvlo...
output:
aaaaayaaaaaaapaaaaabbbbbbbbbbbbbbbbbbccccccccccccccccccccddddddddedddeeeeeeeeeefffffgfffffffffgfffgggggggggggighgggggggghhihhhhhhhhgiiiiiiiiiiiiiijjjjjjkjjjkkkkkkpkkkkkkjkklmlllllllllllllllmmmmmmmmmmmmnmmmnnnnonnnlnnjnnnnnooopoooooozooooppppppppippqpqqqqqqqqqqjrrrrrrrrrsrrrrrrrrrrrrsrrsssssssssstttt...
result:
ok
Test #29:
score: 0
Accepted
time: 0ms
memory: 4232kb
input:
10 500 ltzpvgzioqzjaorwvcfawsuxrpiaxelpvjvbzkmhmukkanhddeuwnwfbqeiccwqiqsntudhfrrxrwjmphcocxtzbljjcdjmksdvnoklkzvljhmyxsjgzsmuezdeieobpeojmxphuhbkxuqvtokknihunzjztuhuqurethoyiiamwzqppwuiljeygsrclivocqngmwgqeghfwtwunuyvcxcjjufbxwhmijurlgodhscoalsqbdxnizkkjtmqfaynndanjjfzldqukrpmqnsynrvoncnqymegdgvvga...
output:
zzbczabgobkcbabavaabbaabxckbkbbbbcbccwvcdccdcrhecccedcddqdedkuddfdddeemieeefgaepvrgfzefefgfvgbgffdghfgfxgffgphggshhgigghkohjhzhhhihhqiiiisjioqjjiinjjiikijibdibighikkkklkmllkkwmlmymllllmmlmmqtllmnnzlmmmnmmmmmommomnmnmnnnnoobnnnonoanngopplssbporlqoovuooyxzokpgxddpoorwosinpkpqpqppanpzplkpbipqppsrpqpjap...
result:
ok
Test #30:
score: 0
Accepted
time: 2ms
memory: 3980kb
input:
20 500 gidefqbkbebgnvcgrjfmkuqtipyqlpvrjndoddvuhkntkznjdkfvggaoavkllvbigfvdafoxziprpozvhukhwheyasblhleoxfxwwruvsilcdrttxcbqfnvplqtemgsoftmsnzrgaikbqmyrbykhtpbmrfpgvjiqszkdapksfhbdkmdawcgonddqgzasjtvrjbgkfwxyopyxhprkrsaoxfblohlqyeenggeusnfvgkxalqzhziuckhyhhmefhjpvfjzolfowjvjeklnxgmymaubfcuineyiuzlzpb...
output:
zmeablzoloznhlaaaskmbdgaavbazboacadabziuadccgtonawvmuczfpcebcygmelrfofchcctmcmhgbieeuqfeevefewghfujzwfbnifgzfueafgghhfqlwjhuhihivkggahkkyjzwhgtnbligngsvghtakgggivzjckhggzikijihihaifbsfhfipiiwhnoikjpsaijjhmlwrlhhfrxezjjnjmkjbklwmklrkisxkkegokkkwlknkclnnmhbmpmhxmlgjqqmdnnszzeclmljqllyknmufanolnjrznybh...
result:
ok
Test #31:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
40 500 hgrkbariyienlarbtwpgttrlmwgdwjisgwtuelybkqyzibmerddzhxpkrikkdglakynfmvzntqkldilwlredsuwiyhvfmdfymethhuqztlwzlsjsoznrcemnwutebgioqndeywylttipnfkjzwrykcsmyeruqzryjuhcyirlakfmzwyjlisxtpdibravckhsunbfdczcfjcdnjcdkhqticcslsqmbldpvatkvnlgcnjzzpsjgoxbdqaqogdiqwngjjyaxcurpfcotfthvlhnyqvkxalealplywzbj...
output:
zdipaunsvfbbkgwbcjgjdivgeryignfecegqncudywqrmgvrokvcyaeecgvhjdxypqliggpowetgkhefsbyyubqdlzbhupeegfhkdrzuukyevtbmowkxhmafbgsyshaxqifuxjzicqxkhoejcxslkxfuboqwhaxgblniakqgfobotjiizupkmgmlmaczeaqvaqmfdomzjmlztjfiinugnjciiqovnlhmmjcdqoubzvwenibmoamdruknmipvmqjjgwbzavwztlqkuyjsjyvpxqluxwmuflqilbkflrepekyt...
result:
ok
Test #32:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
2 10 dkzttcuhkf BYBYBYBBBB
output:
ctkyyyyyyy
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
4 10 hzyqaqgudo YBYBYBBYBY drzekuoozp BBBBBYYBBB ydmoszopir YBBYBBBBBB
output:
ahouyyyyyy
result:
ok
Test #34:
score: 0
Accepted
time: 1ms
memory: 3788kb
input:
8 10 xpcbenntvx BBYBBBBYYB guunnaqbzh YBBBBBYBBB vkgjtzyejd YBYBYBYBBB bmlrgczqhc BBBYYYBYBY gjeqpkftzq YBBYBBYYBB ytqggdmtoy YYYYBBBBBB okyanrydin BBYBBYBBBB
output:
ccftqgrvyw
result:
ok
Test #35:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
10 10 lvqefvmhvh BBYYYBBBBB hwzwczqwzo BBYBYBYBBB ywzwszxeyd BBYBBBBYBB pxryhjeyhe YBBBBBYBBB fpplflfrid YYBBBBBBYB wffgroprrh BYBBBBYBBB atnazpsxkj BBYBYYBBYB wjftdvgbca BBYBBBBBYB lxejbsshfq BBYBBBBBYY
output:
ceifknzpqu
result:
ok
Test #36:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
2 20 gvmxjisdtqdzqlcythxc BYBBBBBBYBBBBYBYYYBB
output:
hlttvyyyyyyyyyywyyyy
result:
ok
Test #37:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
4 20 juwgnsochomtjjrwkxzx BBYBBYYBYYYYBBYBBYBB xcfresnspwhbnpufpzut YBYYYYBBBYYYBBBBBBBY nicdnycdwkcwxkzlexij BYBYBYBBYBBBYBBBYBBB
output:
bdefhimoorsxtwyyyyyy
result:
ok
Test #38:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
8 20 gfbhjraeqpkknoxynzor YBBYYYYYBYBBYYBBBYBB eoqxnsiomjhzyechxzfk YYBBYYBBYYYYBBBBBBBB izclftrifyoacpdwwaxi BYBBBBYBBBYYBYYYBYBB vkmnjqckgcojyuccmzsy YBYYYBBBYBYYBYBBBYYB kotrkwcofjzhzgwiegsj BYBYBYBBBYYYBYBBYBYY kuoenzkgqkxjkenvaywp BYYYYYBYBBBYBBBYYBYY ntfjwmseryvxlgimrynx YBBYYYYYYBYBBYBBBBBB
output:
aadgehjjnmporsuzvwvv
result:
ok
Test #39:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
10 20 fgyncfbwipgvfxmohdbo BBYYYBYYYYBBBBBBYYBB icbhpbqvluuvwljfzrci YYYYYBYBBYYBYBBBYYBB cushsnrenivjfzblmwbz YYBYBYYYBYBBBYYBBYBY iqfqmazradptgidhmewe YYBBBYYYBYYYBBBYBYYB kebuhncdbrmdpxqmizic YYYYYYYYBYBBYBYBYYBB vmccbyguslsftfilufvg BBYBYYBYBBBBYBYBYBBB dvrpdiwvdltezikdbpvv YBYYBYYBBBYYYBYBYBBB ...
output:
zbdeichkpnqrutuwtyza
result:
ok
Test #40:
score: 0
Accepted
time: 1ms
memory: 4284kb
input:
2 500 gxnlcmqfsmxkzleyreubambwtiyuisiplwrjastyivijshzmfuyjqbqwmtiixxwivmqxpbuboruzaaapaxrllfbonnouzwmjuouvzcoyxytfxmhtfcvsbjvnltirhojtxhtdiqasoajfhrcinjrkzstidvhhdwynweaacmuhctyzeelatwnropiqifxsgxntfycvjrhwpmzeytliurapssrixkjndjzwtjonqzmhhtqyqjacafxkwfrnvjyjcswxrkmhstxgrdaxacuqiqtmdwuiuwzjjekzsaycgc...
output:
aaaaaaaaaaaaaaaaaaaabaaaaaabbbbbbbbbbbbbbbbcccccccccccccccccdddddddddddddddeeeeeeeeeeeeefffffffffffffffgggggggggghhhhhhhhhhhihhhhihhhiiiiiiiiiijiiiiiijjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkklllllllllllllmmmmmnmmmmmmmmmmmmmmmmmmnnnnnnnonnnnnnnnnoooooooooooopppppppppppppqqqqqqqqqrqrqqqqqqqqqrrrrrrrrrrrssssss...
result:
ok
Test #41:
score: 0
Accepted
time: 2ms
memory: 4360kb
input:
7 500 kucxpooswpgshqxdswdpxnonzujecioriraskzligwznnduirvonmjmozyxkotblntnzmsgacdjxsrelfbcwhffnqsshpdnuiyvekpkkzhfqadrnhymofwpahuefzyauxunwxjsexozlkauixivyrdrckaxiicawzsvqshnexswpqlnwpfwqxfsqjgefxylqizfouiqmbtkxrjcdpjfhetrphazpatrwkbikmswrsjmuvlmkuhfvzvfpqawtkgtmykusaspvinyqteptvvfgynrehmekerkbpgcbgf...
output:
bbaaaaabaaaaaaabaaabcbbbbbbbbbbbccccccccdccccccccccccedddddedddgdgedddddeedeeefeheeeegeeeeeeeeggfgffffffffgffggfffggggggggggghihhhhhhhjhhhjhhihhihiiiiiiiiijjiiiiiiiijjjjjkkjjjjkjjllklklkkkkkkkkkkklkkklkmklllllllllllllmlllmmmmmmmnmmmnmnmmnnmmmmmmmmmnnpnnonoonnnnoopooooooopooppooooopppppppqppprppppqqq...
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 4364kb
input:
8 500 zsuejmayajrezxaeoppddvtufobaqqrnadgiydzodggiskvrvfyassjbdhbufhmxctpfdqvhykrkqjjltksstdnskjfspencdneizkxxtfdheyhvmnsjdbrjusilipmplxvnfxthruxwdukolyqivyaufoewysvppuqdcdmvwdwgtaqejnfmgtylhgrfcjqagvotoosbisnibzntaetxvemftcocguvgindrppzlooryrqicloefmktmimfqyxlletbymenpljkjybhyfuahardknwfejcojkxyzsl...
output:
aacbaababaaabacaaaaaaaaabbcbcbbccbbbbcbbbccccecdcdcdcccccccccddcddddeededddeeddegeeeeeeefegeffeeeegeeffffgffffffffffgffhgggggggghgggihggghgghgggihhhhhhhkiijiiiiiiiiijiiijkijiijkjjjjjkjjkkkkkkllkkkkmkkkkkllkkkkmlmmlnlmmlnlllmlllllmmmmmmmnonnqnnnooonnnnnonnoononnnoopooooooooopppppppqppqqpppppqppppqpqp...
result:
ok
Test #43:
score: 0
Accepted
time: 2ms
memory: 4300kb
input:
10 500 fwpisiecngmypltgnpgwungiorybsqujrjynxduhbxkzzcpmprjkmcngffwriwlauogonaytiewzmvhmfkbqzbhvbuzaxgmrzwhznemrkgkqcfcxznjgqfxvivnzxkttungprndxzumatgitszsuhxrbxiyblepjljdwccbmodtyikdewbqekqnyrdpveilrjuidvbxmidaudrahboegnxxojlllcijvhewxbqhckkdisyyoieqnybydwpyiupduxdxdcbsiflmqomhorvpximunuvgeqrpojynfz...
output:
aaaaabbbaaaababbdbbdbacacacdcacacaacaccccdcccdcccccccdddcccddddeeefffeeeegeeeefeeeeefeeeeffggfgffffffgffghfgfgffffghhgggghggggihhhhhhihhiiiiiikiiiiiijiimljjjjmkjkkkjkkjjjmjjjjjjjjjjljkljjjlkmkkkmkkkkkkkllkkkllllmlmlllmmmllllllmolmllmlllmmmmmmmmpqnnnoonnnprnnnonnnonnnnpnnqnonnnooopqoqoooqpoooppppppqp...
result:
ok
Test #44:
score: 0
Accepted
time: 2ms
memory: 3920kb
input:
50 500 rzxpevxmcsvfyfmnmokxtsjtkisntufznueipsounknjbdgoieqoeobnfuncfrokfgdsdujxvtluensnrnyosfsywmltfikmpgofyyutxgxltspvwnqnfvgeolxirwbvvwgwwbxbwbbswrefaklrdmdlzgxpltvbucwfgrpggpobkapydjkzbgfarvqfzssyeepxzesalnpbnuastjecnatiljloelrojistoqxxrwdiehnwbubijlcsgserxmlbbchlhqlndtvmbaztvhspfxdyfuodupczzusgi...
output:
wnwdycwynzjwigzcxxyahvbxzchcipqvzdyaaatcbajzxyyzaacbddchqyapbbjcikemazaazbdbaafzaczbradzbbzdazefjmeecaghdclcicadgcgeaaecehlsgekfeddeogegejjhghihzcugckfigdektdgdefhriegjrfikghekfefizokkkehlhffvyjfpknkrjgfhhjlfnhskjzqpsmffinitlnijzklikiknniinivnjiijojmyowusknnorstkzqpmjtolltvmtmeokpmkmkmolmmoporvpkkqk...
result:
ok
Test #45:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
160 500 hayqlkswaloyrwgikgdxyqsorgjgsohxuyrlfdgptnogrfzfrcmkhyvnpohpgtjhhlalckgubhvbbtinzpykjfayxwqctbmbjdtguonvdihewfxphkfngblmtlxiidbpxnxeiswxfrvbflvisrvxkqqeqzinhgobjfbxhbtfageuinrzyqzhrsqttlmfxgqsdaxkyiajiitwnxnlqggrncbzwrzhtctcunpkhdlqkqtkyfvcuwqftujpufwgeqkrzdfngmshdiwhobeieunukpjgvbdwhjtkaccm...
output:
mjpyvrzpguatqaxutfeenauznkxsfgqfrfdaoydwqimxssimpofnqfailvbgkmearxhgxjvtluftknckiwaeyuedbogewrnlfyzatjgtgrpvjnehxhvwkcydnkwnvxgbifqobxxchmltkwyqpgaanlyunugwtxmayycilokxdtzhcwgpmleawmsvacdywnpnpevqwpkyssvakkmpmslqmgucrzrqoufaausspnahpwkcvrfxhbwcccsbnntbfpstmaesxspfwtseyluftmrkcmifuofjnnhmwfrbveoudsgx...
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
3 2 qf GB fq BG
output:
result:
ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
2 25 mzopyxgqdtsjvueklciwbrhna BBBBBBBBBBBBBBBBBBBBBBBBB
output:
fffffffffffffffffffffffff
result:
ok
Test #48:
score: 0
Accepted
time: 1ms
memory: 3776kb
input:
2 25 jagfzkndilpxwsbrqytcvuhem BBBBBBBBBBBBBBBBBBBBBBBBB
output:
ooooooooooooooooooooooooo
result:
ok
Test #49:
score: 0
Accepted
time: 1ms
memory: 3796kb
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: 1ms
memory: 3740kb
input:
2 20 ynjmhdwofqxsaubvlktc BBBBBBBBBBBBBBBBBBBB
output:
zzzzzzzzzzzzzzzzzzzz
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3792kb
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: 1ms
memory: 3796kb
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: 3744kb
input:
3 3 abc GBY daf BYB
output:
acz
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
3 3 abc GBY daf YYB
output:
acd
result:
ok
Test #55:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
4 4 bcda YYYY cdab YYYY dabc YYYY
output:
abcd
result:
ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
2 4 aabb YBBB
output:
zzaz
result:
ok
Test #57:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
2 14 welcometonwerc GGGGGGGGGGGGGG
output:
welcometonwerc
result:
ok
Test #58:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
2 10 aaaaaaaaab YBBBBBBBBY
output:
bzzzzzzzza
result:
ok
Test #59:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
10 40 nvolvefindingafeasibleflowthroughaflowne YBGYBYYGYBYBBYBYYYYYBBBBYYYYYGYBBBBGYBBB tworkthatobtainsthemaximumpossibleflowra YYGYBYYYYYYBYYYYBBYYBYYYYYYYBBYBYYYGYBYB tethemaximumflowproblemcanbeseenasaspeci YYYYYYYYYYYYYYYYYYYYYBYBYYBBYBBYBBBBYBBG alcaseofmorecomplexnetworkflowproblemssu YYBYBYY...
output:
inobtamielpiinthmmropaotmorfwoyxuzzlezsi
result:
ok
Test #60:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
20 20 maximumflowproblemsi BYBYBBGBBYBYYYBBGBBY nvolvefindingafeasib YBGBBYBGYBYBBYBBBBYB leflowthroughaflowne BYBBYBYYYYBBBYBBYBYB tworkthatobtainsthem YBGYBYYYYYBBBYYBBBYY aximumpossibleflowra YBYYBBYYBBYBBYBBYBGB tethemaximumflowprob YYYYBYYBYBBBBBYBYYYB lemcanbeseenasaspeci BYYBYYBBBBBYBBBBYBBY ...
output:
inoptomiyationthezrz
result:
ok
Test #61:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
2 10 mympqinaqs YYYYYYYYYY
output:
ainmmpqqsy
result:
ok
Test #62:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
5 10 yoqojkyfrq YYYYYYYYYY yoqyroqfkj YYYYYYYYYY oqyykoqrjf YYYYYYYYYY rqkjyqooyf YYYYYYYYYY
output:
fyokorjqqy
result:
ok
Test #63:
score: 0
Accepted
time: 1ms
memory: 3748kb
input:
8 10 ogrpxwryvc YYYYYYYYYY cwyprvorxg YYYYYYYYYY cvrwxrgyop YYYYYYYYYY corwprgvyx YYYYYYYYYY pwvcgroxry YYYYYYYYYY cvpgrwrxyo YYYYYYYYYY xgyrpowvrc YYYYYYYYYY
output:
ryovwpxgcr
result:
ok
Test #64:
score: 0
Accepted
time: 1ms
memory: 3752kb
input:
2 20 lfyzddchsnrcfbfhpxkh YYYYYYYYYYYYYYYYYYYY
output:
bccdffdfhhhklnprsyxz
result:
ok
Test #65:
score: 0
Accepted
time: 2ms
memory: 3736kb
input:
5 20 bhczdehumywygnhaeeka YYYYYYYYYYYYYYYYYYYY ezgwuhykcbaehyhednam YYYYYYYYYYYYYYYYYYYY kdzyancbeuyhhmghaeew YYYYYYYYYYYYYYYYYYYY emhkzewgdhbhnyauacey YYYYYYYYYYYYYYYYYYYY
output:
aabcedeegkhmuhnwhyyz
result:
ok
Test #66:
score: 0
Accepted
time: 2ms
memory: 3760kb
input:
20 20 kczuooznpwpyhwvericy YYYYYYYYYYYYYYYYYYYY ewkyynocucivzrzpwpho YYYYYYYYYYYYYYYYYYYY ozpihwckecpuvyrnwzoy YYYYYYYYYYYYYYYYYYYY kczihoyecnzwwpuopvry YYYYYYYYYYYYYYYYYYYY rwehopuyockzywzicpvn YYYYYYYYYYYYYYYYYYYY cupzeoonrvwwzkihycpy YYYYYYYYYYYYYYYYYYYY cvpkhocnuwizzewyryop YYYYYYYYYYYYYYYYYYYY ...
output:
zeickchpyynruvpwoozw
result:
ok
Test #67:
score: 0
Accepted
time: 1ms
memory: 3792kb
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: 2ms
memory: 4044kb
input:
2 200 kjgxibzaqovyhfahtzepmneqlrtyqskqjclybnijqdnnaqjwqpcdyhqcivkhiamwnnnrekynlwdhhtwoluuxuivncktinkkmgnavexykunaefwtdtccjdvnjrsshktuiqmugothxrrkrxfbzhzawqdvcnjwfbemdjwmsozfyialxnxbqhndzyhoskwmuamcdsrzxttte YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
zaaaaaabaabbbbccccccccdddddddddeeeeeeefffffggghhhhhhhihhhhiijiiiiijjjjjjjkkkkkkkkkkklllllmmmmmmnmmnnnnnnnonnnnnnnnooooppqqqqqqqqrqqqrrrrssrsrssstttttttttttuuuuuuuvvvvvvwwwwwwwwwxxxxxxxxyyyyyyyyzazzzzz
result:
ok
Test #69:
score: 0
Accepted
time: 1ms
memory: 4116kb
input:
5 200 sfcjckdgmwmnnlqezqgivfbrgkwmqronyyojlpqwajmjmgjhtlnsjcmsysflrpmrluakngchrsuncwwbqmlpavprqyvhwplrtqhxpzgtxixarzjsvrfquqemtgfryynowgowzyiyxxjarzfaevasxohhqwsleahueveixdjlybnsxnsbtufoiihtstlhczsczzazjwou YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
zzzaaaaaaczzbbccccccddeeeeeefffffffggggghggghhhihhhhhiiiiijkjjjjjjjljjkkmlllllllmlmlmnmmmmmnnnnnnnnoqooooooppppppqqrqrqrqqqqqrrrrrrrrssssststsssstststtutuuuuuvvwwvvvvwwwwxwywwwxxxxxxxyayyyyyyyaabbzzzz
result:
ok
Test #70:
score: 0
Accepted
time: 0ms
memory: 3972kb
input:
20 200 krxqaxppwikekhvmjispucbtwyennwxkqsvjhwpvcvtqgemfpnvsjoppwvqbyslciwosyqjircnsrpmicagujcstajnwuztjpyjxrwbjpelhukuwynyfjhfoxerfvnotzxgqrrckgsjbtnfmhjtpqcteosfpfjgesbwrxvrtdxhrnrdzlnlnivfwrsxkpvsqkwuyfqgh YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
aawzcbbbdbdccecgceecceceefgeghffgfhfggfhfffhhhkjhlikiiikliilklnkmmnumomojnjookopkpjknpnrjqjjpjpnqnnjjnpprjjjrnpntrqpqqupsqpsqqtppqstubtsurrsrrurusrrxtrswtwvvstststvyyvsvwxsvwvvwwyvyyvxyxwxxxwxwaxwyzzw
result:
ok
Test #71:
score: 0
Accepted
time: 2ms
memory: 4280kb
input:
2 500 blgymzrpzujbijgjxyuadmopdmktpzaovnuecztkbzxgzyvisyljaevyfufxyhyqiqdueuswizdfbebeofpeixebkcoylfbfnbckcmafvwcppobihsmxnvhrsacfeozhlqloqithcbvguyslmdqksinnirkziaicjfrpxhceqgxsbiowjixmoflvtvuquoidzfpusisagkefodwcsvqdwvnfhfygrrobkelcsxdaoddqtmvgxkhnouoqizqwvvudriluplgazarubzbsomyqcaycjjwmyqsmabeisi...
output:
aaaaaaaaaaaaaaaaaaabaabbbbbbbbbbbbbbbbbbcbccccccccccccccccccccddddedddddddeddddddddddddeeeeeeeeeeeeeeeeeeefffffffffffffffffgfgggggggggggggghggggghhhhhhhhhhhhhhiiiiiiiiiiiiiijiiijiiiiiiiiiiiijiijjjjjjjjjjjjjjjjjjkkkkkkkkkkkkklkmllllllllllllllmmmmmmmmmmmmmmmmmmnnnnnnnnnnooopooooooooooooooooooooooppppp...
result:
ok
Test #72:
score: 0
Accepted
time: 2ms
memory: 4336kb
input:
3 500 fndjpiklrigzxvhtgavgqxjhgclbcusixstqcvopskxdxeaksfcfrlkzdsqjddqnijuqqmxzafjbljcqivkozdwwyjzysrkkpxrymnuavmcjemoiaayfnldynfkjgzzlcywayfwtlcaicnawiagrmlhwrjcdvxrbxavfjqwkejfaahukajyupcyulvnbpqewqooacxbryistjptowptrpiclmkgdpnchtrgijujimyloxgxpxqqhhnidbeiasewjkydmpkecplkxlsyzbsyheqeigyyyujupwdjqzg...
output:
aaaaaaaaaaaaaaaaabbaaaaaaabcdbbbbbbcbbbbbbccccccccdccccceccceeddddddddddddddddddeeeeeeeeeeeeeeffgfffffffffffffffggggggghgggghggggggggghhhhhhhhhhhhiiiiijiiiiiiiiiiiiiiiiiijjjjjjjkkjjjjkjjjjjjjjjjjkkkkkkkkklkkkkkkkkklmlllllllllllllllllmmlllmmmmmmmmmmmmnnnnnnonnnnnnnnnnnnnoooooooooooooopppqppqppppppppp...
result:
ok
Test #73:
score: 0
Accepted
time: 3ms
memory: 4284kb
input:
10 500 bupnuqzdcpbbxnmovthxvephnapgnxykdqpefrnsxlalrhtxogfxlpfrcxjmocibrokuejfvalrapnhvzuabrhjfdcnnnaygwtkgoenbewrtlzzdhxmzndkphodrcjbcyivsaxbugccvkqzbygufcpqljzopxafwzyxceegfdqtqqufvtptbllewhlraeotvtdiwnjnbkedfhsfpvrydnerajvkwidyhptbvtstjbwqucskqlecziliyqqrxvahlbahjzlxebblyfmjkxpuyitksjtqsxkmzatzur...
output:
yyzzaacaeacdacabaabacbaacbabaaaabbcaaabacbbaacbbcababbaabbccbdccbbbbbgcddecccdcccddeffedeedefddedededffeddedeededdeedegefeffffffgfhggffffgifffffghhiggggghggggghhhhhhkhjhihhihhhhhhiiiiiiijjiijkkjjjkkjjjljjjjljjjjjkkkkkkllklmkkkkkkkllllmllmlmmllllmllmllllllnnnnnnonpnnnonnnnonooonnnponooooopoopppprpqpp...
result:
ok
Test #74:
score: 0
Accepted
time: 0ms
memory: 3924kb
input:
80 500 dvbyutdpoihytugjpvxnzcreuwneaqokypvmieezkevfpngozhxowvwbavznhmbjosgnvskifmpbaflkoxivossyqaoxkvvioupzyygerlqpntmxkctrcodkogiqrvnhkczcdhbnvihopmchnnyayletjmvsflwdmozsgrwkqdijrjzrodqqadsnsmzulhumosmwmohoibrcqswjaohlzmjpjnwifwqunludixjhhupgettgefwzcvygiycdtrenhbydhaopdrzogaadrqwiqiogounuhozeifmox...
output:
tfeoqwjveqvevajzbdsqvioyrxgqczsezzctrhkypwwcgqcicoiylhfnldbswiwviwiajcmbelzpfmagtdhoidejrvxalpdlwzocanhpbooifdqoihqfdzzukvjoniucfvejigklikgkqsaolmeofjyrblombwiiycxotibmghhvhqoxjgvvokfmoeybzceobyhvogyaftoqxyepphriudgfwwggkdcqcboajznsqdesfhgdddyamtsagrjuhcfswrckkqafhkjdrioyhgjfvajpahcrxcoppqhvhygxwoyb...
result:
ok
Test #75:
score: 0
Accepted
time: 4ms
memory: 3864kb
input:
500 500 dvbyutdpoihytugjpvxnzcreuwneaqokypvmieezkevfpngozhxowvwbavznhmbjosgnvskifmpbaflkoxivossyqaoxkvvioupzyygerlqpntmxkctrcodkogiqrvnhkczcdhbnvihopmchnnyayletjmvsflwdmozsgrwkqdijrjzrodqqadsnsmzulhumosmwmohoibrcqswjaohlzmjpjnwifwqunludixjhhupgettgefwzcvygiycdtrenhbydhaopdrzogaadrqwiqiogounuhozeifmo...
output:
tfeoqwjveqvevahzjdtqvooypagqdzsezqctrhbywwbsshcinoiymhqzqdbswiwvidiekcmselzpgmagtlhoidgjrdxmppnnfzonmshploaigdwoihvfduzxkvnoniucnvrxigpsikgkcskolvxofjyrblomkwiiyuxotibmghhwhqoxzgvvoqjmojjbzcxoejhvwidfvtoqxyepphrivngrwfggxdmqcwoaxcnsqdgsfheqbdymqutagrmuyclewsvkzqrfhmjdriozizefvvrpamrrxcofpqevwykehoyb...
result:
ok
Test #76:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
2 20 xztanpyxqtcnpuzqqyoq BBBGBBBBBBGBBBBBBBBB
output:
wwwawwwwwwcwwwwwwwww
result:
ok
Test #77:
score: 0
Accepted
time: 1ms
memory: 3752kb
input:
10 20 opwtpwvtwxouoyqsotzp BBBBBBBBBBBBBBBBBBBB gzynqjtxzqtzdwupyqxw GBBBBGBBBBBBGBBBBBBB nqrqzyuqqtqoquynuxwo BBBBBBBBBBBBBBBBBBBB rovrxornrwtoymtnnrpu BBBBBBBBBBBBBGBBBBBB wdxtnppzptvzzuzlvqrr BGBBBBBBBBBBBBBGBBBB uusqpvwtntwxxxdryuqn BBBBBBBBBBBBBBGBBBBB nxxnnpzsztyndvxlrron BBBBBBBBBBBBGBBGBBBB ...
output:
gdmmmjmmmmmmdmdlmmmm
result:
ok
Test #78:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
15 20 woourpqrstqycprorzzw BBBBBBBBBBBBGBBBBBBB ypswlxvouotyzsqrpxpo BBBBGBBBBBBBBBBBBBBB rvporyxupxswysrrzqvd BBBBBBBBBBBBBBBBBBBG trrqqnpspvprxzzwvszp BBBBBBBBBBBBBBBBBBBB vyoynttqpvwonpxopsor BBBBBBBBBBBBBBBBBBBB tyuyqntwonprcnngorwp BBBBBBBBBBBBGBBGBBBB xyptttooymynxuvspuqz BBBBBBBBBGBBBBBBBBBB ...
output:
dmafljmmmmmmcmmgmmmd
result:
ok
Test #79:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
20 20 syzuzqoytozsurzpsono BBBBBBBBBBBBBBBBBBBB wesrqwxttsyosvbtsqqq BGBBBBBBBBBBBBGBBBBB osrvrpppwpqynwotpffv BBBBBBBBBBBBBBBBBGGB vwvrywzppxslxsunfuxy BBBBBBBBBBBGBBBBGBBB nwurxytqswvputotrvsz BBBBBBBBBBBBBBBBBBBB przuyqqnkwuztupqptfm BBBBBBBBGBBBBBBBBBGG lrqpyysqxnwvjovffosm GBBBBBBBBBBBGBBGGBBG ...
output:
lemmdbhhkmmljmbffffm
result:
ok
Test #80:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
2 500 zxwpopwryvxwuszirrorrqtsnwrwuoonyqsruqtpvwtxmnzxtsrivsnttuxvzjsywsqspssqqvusyqoppwwzzzrwsxwowyznnnttxvgtrptuavzxotqqsuovspzzvxrvqqqvnpqnypeqqwyospooqnuzxtxypyutvoernuctyqzvqsdwpvuunrsypvzvuqqsvqqoxuuznqvvxusynpnuqwzrnosxqslunwvxooyzzsqrvzupyprkvqntnwwowxnsrtnsvszzsxsqysnnsrnwwwqzvyxowoinppbqxy...
output:
mmmmmmmmmmmmmmmimmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmimmmmmmmmmjmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmgmmmmmammmmmmmmmmmmmmmmmmmmmmmmmmmmmemmmmmmmmmmmmmmmmmmmmmmmemmmcmmmmmmmdmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmlmmmmmmmmmmmmmmmmmmmmkmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmimmmbmmmmmmmmm...
result:
ok
Test #81:
score: 0
Accepted
time: 1ms
memory: 3844kb
input:
10 500 epjvurrwqwslokprtxxnoqpvozzqynewutfwopypqopcxvswnlwavyotqvzfovuvznzuttpztqtvnnysqzrpszbrtwxwvlzqzofwtwrprruwoqzruxunyszooyvzpfwoqrsurpzeozxwuznvvuyorztufnvvuuwxpzpxtusyzwpvwqvmxytssnqsupxxyoxrpqttwwwnkqyyzppuyxqodqsywlrunuxsorzorpqurwrvxqyqynxvoqtsyrvxzvnxzszpunupyqnopxrtprozwtvxzxwrnnnrspvwo...
output:
emjfmkmmmdmlmkmmcmmmfgebgmmmmmelmafmlmkmmefcmmmmalmammmmmmmfamgmjmmgkmmmmmmmmmfmhmgcdkbmmimmjlkmmjfmecmmmejmlemacmicgfmmmmihdfmkmbfmfkbemmmkmlmmmmkmmmkmfchmemmkmgddmjmmmmmmmkmmmmmlmfmgmmmmlmmdmmmmmmmckmfhkbdebmmfdfmlmlmfekgmemmmgmmmlmmmmmjmmmlmmimmmgbmmbdmmmmmfmfmmhmmmmmjkalmjmgdbmmkmcemmdaaammmmmmm...
result:
ok
Test #82:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
15 500 zryswnworvevunwutuxmnzpbspdpqctwosopnwswrwvyyvptypvzqwzzcontrtooysryxxgvrquvnnfnvqetnourqrxbwywtoqwvtvzqhppsnyptroqtsoxwzrqryylrzntnssvtrqxrsnzpxvzxpqrusplhrftenrtsxvpvnpxuokwtzruqtzsryqnywowwurnyoztuwqtrpptysuqvrprpfovwepypwstvipnzgxgwrndvwonuwqwtxotpvxyywzzozwzwtnzozvtsoytxsnqywvarnpnooorps...
output:
fbjmimgemdemmfmadbmmgigbhddbmcmmmmkmalmjmmmmmmbeilmhmdamcmeljdijammmmmgmhafmmbfmmbecmkimmmmbmmffjmmamemmhlmembamgkgmhmahmcmbgmlaciiimmiifcaggimmjfhmmkjfgelhmfmegbjmmmfmmddmikmmimmhmmmmmfggembhfegehmmlmfmmabmmcmddjgecfjccelkmmmmmimmmgmgikmdklmmcejcjmamcmmmjmmfmdmmgmmkmicemglhmmejbbmaeamedmmgccmfmaamj...
result:
ok
Test #83:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
20 500 xzqwxnzjotrpypunovrukuwwzxynowyxywvvpnvtnozoqyaxpdorsvpyvvqpsoxrsxwrsnatxosrvuynpylrxvywwqmzqzppuvuytyqurgpwxynoqyrqxpuzytunxrnrrtowrpzuvyorvquopsuqquyrvvnzoupvqrvrdqnoszvxtqnvrxtpotxttuoozppwwysytonzyryntwntustoxqzvvpnsxrvswpxntrwnxtrczqqxtdwksqostroutslsrvyyxsqyywqpwwwuvqwulrspywrnbwnxqswxz...
output:
jcmmcekjmdmhjdcmjcadkmmmmgkmflkkmghllfmkdmmcimamjdmilgcmmjmemgjmfmkmimabmmemcbbjcmlglmmcmamdkhggjhlbmmfcggkeliijfmhammmlmgkcmdamimdmamfmfmlkmmddhakmhclhmikimmbmmdccdmmcjiemmejmlgbeabmmjhfjmcjaemkmlkdimliecmimmfdlmdfgemcmgfacffdhcmhmmmacmhdemdhkbkcghbhcmellhhbkilmmmmmdmimmmjgmlkhmbgmmbimhmmaamlmdllbi...
result:
ok
Test #84:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
100 500 xyretptvzrvrxtppxwtoqznyquonurrunoyxxxusttovzmhvuwtquvrvqdovpivrswrwxvstvstrqtywtwtktsqnfsspvrxorvtnovwtpprxncrprsuvsqruqznvsbtsnpszznujxzziwcwsrtfspsnuowypvvtqtpxwlnnxnpsirzspqplsrpqvxzxrrwpywnonrtmzqyrprzwvxuwvntsunuznowququzzntwqvonpvtxpntzqznswrzqwzrsjntzypsnfypvvounhxuqoysxoprwqyuovoxov...
output:
flkebccliaedgbhbadhlkhglfhfkaefkmdgjdhkdkfkdmmhekdellmiemdkacikbafmfgjgglihhjcbkgbfkhegcfmgbgjfgkmhgjbmhdjmfmckmfkmibjbcgkgmhbadafehijdjmbaidceiabfjmlfimfehgccgadfmlcdbkkfiebmdjflkfmcfijlidedkcgededmilldmidaaajchaidikekhdahflcjakgmghjfdfdcdeimkijcamdaahjgjkeagaklfilcjecjhglkcejbefafiffcmklifdbfllhba...
result:
ok
Test #85:
score: 0
Accepted
time: 4ms
memory: 3764kb
input:
500 500 uynxusnuyztownaqulnzvqzstswqszvpsprsvytsvquwqntnusnxnnvhzhwazupswyyyrpvkpqqpqurtzyixswqxxswprtcqzrtxpxoutrsvtyqsxoyzuuttwtzwqiporzwpnurtpuvywzdyvqozlprvxqmyutqrswnvuzazoqzzwqsonxptownoywrqsrzhowotpupprzuttkvouxrxzzuosspwiwsghyxzourxwtsyorrqwwowxstcylzvpnwzrsqrspszyzptptquzwspyuoroossxqxrnrso...
output:
ccgfmibddhcmefadjlcmijidheabcmdikmcdfadhdieadkaiklfbhefhbhdaecjbcjdjglkkgklegfmlcmilhlaeckefelcahklhgggcddlfbilefbkebdcflfdkciffbgbdkcbhkjmjamdjmkbmlfbciemlhhfagifijjahhbhceijmbclimfbajmekcmchfellkalblelcgkhdigbagjdledjcifmghjagdjlkhcbhbjfcgcffjlfcelaejfbjdekdeckjlgkjdbabfgghkdkmfjibcikhbkmedjkfhelj...
result:
ok
Test #86:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
26 26 abcdefghijklmnopqrstuvwxyz YYYYYYYYYYYYYYYYYYYYYYYYYY bcdefghijklmnopqrstuvwxyza YYYYYYYYYYYYYYYYYYYYYYYYYY cdefghijklmnopqrstuvwxyzab YYYYYYYYYYYYYYYYYYYYYYYYYY defghijklmnopqrstuvwxyzabc YYYYYYYYYYYYYYYYYYYYYYYYYY efghijklmnopqrstuvwxyzabcd YYYYYYYYYYYYYYYYYYYYYYYYYY fghijklmnopqrstuvwxyzabc...
output:
zabcdefghijklmnopqrstuvwxy
result:
ok
Test #87:
score: 0
Accepted
time: 1ms
memory: 3740kb
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: 1ms
memory: 3828kb
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: 1ms
memory: 3788kb
input:
14 100 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb YYBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBYBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB ccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddd...
output:
qbdsdffefeehhokohwjnynnossumogpsiprttttiowvmvzzzwwapaedgxhjdizikklxftdkkfttxxzmmrmtlmorovtnlsuufluwy
result:
ok
Test #90:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
5 20 fxyezqqsaxwjkmwdbcmz YBBYYYBBBGGBBYBYBYYB cccccccccxwcczqmmdfe YBBBBBBBBGGBBYYYGYYY dddddddddxwddezqmfcm BBBBBBGBBGGBBYYYGYYY eeezeedeexweefeemmqc BBBGBBGGBGGBBYBBGYYY
output:
mfqzvvdevxwvvcvvmvvv
result:
ok
Test #91:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
8 20 xtebkrvpbhlsbbdwfxnl YYBYYYBYBBBYBBYYBBYG aaaaaaaaawrxtsnpbdkl BBBBBBBBBYYYYYYYYYYG cccccccccxwrptsnkbdl BBBBBBBBBYYYYYYYYGYG ddddddddddnwxrkstbpl YBBGBBBBBBYYYYYGYGYG gggdgggggnpkwxrsdbtl BBBGBBBBBYYYYYGGYGYG iiidiiiiiptdkwrsnbxl BBBGBBBBBYYYYYGGYGYG jjjdjjjjjtxndkrspbwl YBGGBBBBBYYGGYGGYGYG
output:
kpjdtwxzzjzndzrszbzl
result:
ok
Test #92:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
10 20 rijdojmjmlqsnybaekud YYYBBBYGBYYYBBBBYBBB cccccccjccccrsimleqj BBBBBBBGBBBBYYYYYYYY eeeeeeejeeeeeirsjqml YBBBBBBGBBBBBGYYYYYY fffffffjfffflisjqmre BBBBBGBGBBBBYGYYYYYY gggggfgjggggqilrsjem YGBBBGBGBBBBYGYYYGYY hghhhfhjhhhmsigerjlq GGBBBGBGGBBGYGYGYGYY hgiiifijhilmiiqegjsr GGBBBGBGGBYGBGYGYGYY ...
output:
hgllrfqjhstmtizezjgz
result:
ok
Test #93:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
12 20 fabeuuqijeeiqvmlxikx YYBBYBYYYBBBBBBBBBYB akaaaaaaaaaaaaaqjufi BYBBBBBBGBBBBBBYYGYY ccccccccaccccckfiujq YBBBBBBBGBBBBBYYYGYY ddddddddaddddkfjquic YYBBBBBBGBBBBYYGYGYG kfffffffaffffiqjdudc YBBBBBBBGBGBGYGGYGGG ggggggggaifgfdqjkudc BBBBBBBBGYGBGGGGYGGG hhhhhhihahfkfdqjhudc BBBBBBYBGBGYGGGGBGGG ...
output:
ipnrzojpakfpfdqjzudc
result:
ok
Test #94:
score: 0
Accepted
time: 0ms
memory: 4312kb
input:
5 500 qnplnayaqcthgzrscaeffrjqhrnssuhmegcoitgfoztimbhediaxqwrcxvfabdgcszrewoenuesjalgbkfgetfnsucfxnrlvmnxwihsgnhadsgubjaglsxsjmyvofzsxpmintxsvyialuxxelmbirqhofndroyvkfxdntxdmvhboqypmxpewwevxfymbnvrxcsoutvmshadbjdgxswjdcviwlcjemdjnkeyudrhdqwhiqbtosjqfgseyerovvnhilpgodnfnpmznmypkbwyfzjsvobstnynyvdtedh...
output:
bbbbbzbbqbbibbccdccccccccccccecdddddddddddddadaaffffffffffgffffagggagggaaaaaeawvaaaaaaayaaeyxeesmveeseeeeeeezeeeeveeeeeeeyxoeeggggxhhhhhhhhhhhiiiiixiiiiiiisxiijvjvjjjjjxjjjjjjjjjkkkkkkukkkkkklulllllllhlllllgmmmmmrmmmmrmmndmqmmmtmnnnnnnnqnnnnnqntptppppppppppqpqpnprpqrrqrqookooooooqooqqoooodqqoqrrsrrr...
result:
ok
Test #95:
score: 0
Accepted
time: 2ms
memory: 4128kb
input:
10 500 jncrnalnwtivhccjacwevrondacihuksbxcfzraslpdykexafbpxtxwdywjdxoxftifjlhsputwfznboqhgahcuxppyxiqfhuzunswiddtfjohaghympeqadrxijhfoouqpacfgkjnsturviadtwybnryakwkdmtmqqhmkmxziauaacvqebrhiuxnxzpnykmzidwrepmwqclynwfammeafyanrizsihsutuaeyxxpqwhisxznckmggtbmjpqwbcxgxvrdtbujqebrhoqekispgdiyqpiwodkixesj...
output:
aaaaabaaaaaalcgjakaaeayaocdccecskldcgbccbpccbccccczddddfjdtpddddffgfffeyfeeepeeeyebsebubbpesbbbbebeevbbyfbbbrbbwbzifffffggguygogggggvghgghhhuusshshhhthiioiiuiximwiwuijujjajjjwjjjtjjjskwktokklkkruvkkkktuswkxllmlplmllpllwflllswlmmmqtmmmoooonwoonnommnsoioklrmsmoonnqnjnnoosrqissqsgsmssmssttqcqgonlqqnocq...
result:
ok
Test #96:
score: 0
Accepted
time: 2ms
memory: 3796kb
input:
22 500 gektomdzdkkeqsukkkjxppgwmeqldbovakxqbvdgarmqqowxvljdsmantqgcjppfcrcfhibtbhaxgaacxavpjzrkttzvvuyvrvainfgzytcowfzmjgsqbfhmqpnnksxfzddpjvunkphzpghkqtjvrtwaokjovhftfxyvzjyarskrjaiotntdyjakoqcfjkjzysvrqkrcenbykrwsacfylkhrwxxbfdmpaoegezxppsertmxynyffrodszzojlbqittjsglekbkytierwmbposhebqjzpvkxgxihrs...
output:
muubpxuvtkmgyroafqnjsndxahpfovfrzyflqsvgvkoeaxecogjnwgybfruvpyofgaktrgtnpkpgnfmblyutewednvjmynjvearhynguvftcvylfqbgbzapghhwdfsghnkdriduqerzymretorcyedculwisspeqcsxchxhrazaiucelzbrjfpstrjuusavepgqkdqpevpdulzjnwcivmdjvkvdrdkcpmxwyqqlvlnqdfcjuhkdriazupzfghsrcxvfoohjoweqtpqvawreroflfzcizdcwzvqpsyhuatqhy...
result:
ok
Test #97:
score: 0
Accepted
time: 2ms
memory: 3864kb
input:
80 500 rqbdmywktaijlbpcjblkmjvsztskxgpxgsqxfotxhbypeeeweorhksgtfrkstrhriwiyznnzyfclnmkqkabjqdrkoltoglioupjvfynemwvlqawrasffdukcamirncrdwkqwlxexnobtswlhtitcmemwpwnvlwgqrcloxcsjwnmqbefvytpdfwefpqgrggsztmybvotcwlzihwqtsrnxsoacsnambbidvohgjgqtbxnqoyjxwjwykbosssdipjmjveqsbxryvtuqwkyjsyeipwvzsrecugzregtay...
output:
hvlhtoafdfakdmwzdfeqzimhmphiqrsoucefcybyauxmdsqnygjaksbstemayxxydepymhzcpfvjotbumsjbyuoxssggqfhxcgovglnoduoktsntkadzehbqkidequkadtyncjrsrnulnwaaeethuqmziovrxmkwmkmbarmyblprtrsrtwiiyojxubpuzlniasjdxtefsfgjchoygezzamvdnlauxmgtjrwqmxrimwupyajkrunqvomzqdyqzvfioyqpbidvgjdngcjlqyrresceukckcaajlthlfmlxlopk...
result:
ok
Test #98:
score: 0
Accepted
time: 1ms
memory: 3740kb
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:
qaxxaaaxxa
result:
ok
Test #99:
score: 0
Accepted
time: 1ms
memory: 3740kb
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:
angraauaaa
result:
ok
Test #100:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
29 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aakagnnaoswaaaxyayag
result:
ok
Test #101:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
aaaaayaycaabacewagabataaarcaaadfaadcacdgcxwavaaadadaafaaasogabqadxaafegpsaagaapahheahiaaahqawpaijaaaliaaajpajapqaakkaaaknawaaaaagamldulaalamaalmaqaamjaamaaamaaaanaaoaaaajmnaoqanakaeonnpanqaaaaaaaraaraaqaaaprprppaaaapadaarautraaayuaasaaagqrurwamwaaajaxlaaaskaagavraasnvfaavsaauadaapukvyvxveaoaagnxafxb
result:
ok
Test #102:
score: 0
Accepted
time: 1ms
memory: 3808kb
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: 1ms
memory: 3856kb
input:
7 50 tuqaulrnzyyywybpuoehdugdptglplvlppkhhxxppdrkhxdxgd YYBYYYBYGYYBYBBYYYYYYBBYYYBBYBYBYYYYYYGYBBBYYBBBBB bkunohhytsznqcntvetgbzflhcujlzhxtvublqxznscjshvzve BYYYYYYYYYYYBYYYYYYBBYBYYBYBBBBYYBGBBBGBYYBBYGBBBB zpqthwonsjjxcxxuwdgpsglsmpbepexhyvodtbrgpwktudklnz YYBYYYYYYBBYYYBYBYBYGBYYYYBYYBBYYYYYYBBB...
output:
azacddehzhihklmmsnnnsnkosupitpppotupptxtvywxuhmtya
result:
ok
Test #104:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
20 500 uabfdcdgyqmxgsgauxvngxyebdglyakjsndkpgbzmtpxubzwzdrypaikyjxzwztpawxmbkjdhywlrrwdwmyjuzpkfvzeitcoovjzzjtfalpetwkahtczbujpaymnaketzdwjdpldpchnxbzajnrafcpsowhmszkllmotxhrtbsyujplndjudidelwuxvoxwngolxctirjebsqncludnyzneyxboxjakvyleabonpsmowvzoaovyttvhnpbesttbyfgvctharxoozjffdfzlzjtbnmiqspqhwthrcf...
output:
bezcbhafzwwdewlzzxcnbmbfxaacccbsafbmbafanyudmhbbbvaeotbhfdxacthdeubrzjaqgzbrabdcfddffzedsdsapefdmqwfxlszaekficdaddhiehcgavcmggtlughgeitnygtgigighgsgmkhhigegmgziyihnizgfjkitvliaiiylmctiljamofikfkhnpijikkrikwjvkmjinqyjijnukulzwpmjflokjnvdkljpplcnmnxmpmvatvsponwcrhbmqnnjrunzayqonnspnnazuwponponoqkoaqol...
result:
ok
Test #105:
score: 0
Accepted
time: 2ms
memory: 3980kb
input:
50 500 mlflhmhmlvhbaykqextwbeswdlqmlhhzmofeicwyhuvyqjqwuumnpmirtgrboepaosruvhipeadhtwuxtqlfshfbaakarzfzenjinaijsidcoqytyytevycrdrwammzsvysailfremryrtlonlpohxhhonhnmqdnuuynwbilcotucdxbphurpzvjjkaujunppehudtrkggggweudqbmvoqtoxvyzspjzajlxpsmynskdzxrwtujidbsbjpbwlizsejugkzavkznxakoshvaxjceniggefvuqdtwbj...
output:
vzbuuvavbwaewbvwovzqewwdexaebxxcagajjwgwwfbdexzcdxczgdxxxaieaacbgcbbaczbagozadeazbebjaccfcfbqiafcaccqbaabbefhodekbhbchbcghacdbhjedkdnehdvfendigehugdlmjgghfjhlpmhlifgikhjsnknzkhgnjpfkkkrigjhjglmqfhijknfshfuriphfkrgghfhimfikpfliikfmrmfuggnsifkrnlkiigpmfqktflfftinqfjikkpyurknilqojkmkpksmnkrxpmwmjmrjuol...
result:
ok
Test #106:
score: 0
Accepted
time: 2ms
memory: 3908kb
input:
20 500 ayuwtllhqnfdehzldgmmouamniqnnprwlbmoppiokmpxscydolhqqgywjsqlnrsyttoloaoikjvzrxskmwowxtjssclswpoxfefjqqtzxkcxgxtywwdrmkcoyemldljtjvkcirjhcivgcdfijpasmesqpceeoixqaazxtwyggdxtxtksunhwzqvkrttrjwnjxbakjsxdonknqsanteluehvzaytivsfrgpqxoalwbywfuxdyasbshpskglzhdkrsnsxiwypylzmjdtlddtqwvrnomjwhjrerozduc...
output:
cduzaaaaarzyifamyfoaalczedlbicxccjdebdhfonembmukbbhcjfsbeppqcsbbbgbldbabrvgadhsdewviybbbdebhprflgfeyeefffwemjfefeegldffgfjwkfifvgggaugjgigjrjiplgsgeugktghkahttynhhsmqqhizyhfhlhtiagqhximyjikziclniimjajtkxjigbtdjlcmvzjklajgokjjkehledwbjkkikklkvbwppnarvuildlmoyqmnwmlzrqknvqndnrnyvhpppthopfptycurqrplusr...
result:
ok
Test #107:
score: 0
Accepted
time: 2ms
memory: 4264kb
input:
10 500 hlowainqwhleemhxgeexvauvsmdxrakudyhvuxjhqreepyfkndruyzuwrfnhaevzdkpfnknymitnqjuvudbwcylkjcmwlwfhavsjmpadfoylhtwuaukxdgwxeqgbwciafzierqihjaxqsbxjbhyiamjwgoupnzlkwoxgfrsclagaevkwfiylpvfboozmplswttjigghixkrlfrpaluroddagokgyayvixdjynfvfawkhenogfymqrvprzqlsnxhzmvyvcvtfftaflzvvxhtuifjoktfpdnvrercle...
output:
yaabuaaaalaaacxakabavcacbmyaacaadahdoaapbvsbcmcbcfmbbwvwbhwbcbwbezkdtccaddccccugfeddneddemsmdedkqdeeheeeeffflebeeeeeefdeoeajkflhjfqrffwggfvagbgognigggivichbngggggahgphhrohhqhggegkihimjihminiiijkijiijjifiwzijkktmkkkkzwllkskkrfkslallllllllmllllndmmmmmpmntmnnnmbmnommndmmmmmnnunnooonnzonpcnofnoeolhokppc...
result:
ok
Test #108:
score: 0
Accepted
time: 2ms
memory: 4008kb
input:
20 500 iwwobprhmoyngxrwogeznqjfucciihleorxsgxcxjxlsqhoaakvkwnbhfrazxbrtqwoothwtdoprguinirothdiawdjqddwmbnkkbinwjeuwqydrugiccywxayagrkbnsjaoriyrpynldjiglrhikiipcynkxfobdyoxzqmsvthlplvbebkfepbfpttdgspybmjcyidxaxaodjkilaysrrowetbxkcrwgphhmyeplxvnpsxsinbnmfxoulwuyfcnfypmzuvtqxctqnrlgvbrvjxjzvjxvbfoowmsn...
output:
aaqzaaatybytdbotbgaaahjevcdxcdbbregrbvdbebbxbpdbknzbzdvcvdfkldetctfhupukfgayhdokqcdchmytfeuccdccgyccdjfjgdfdmefyuqfhijfpckfxoeufifggeescpmlzeijieenhcejhhgkbmpdihohgcnpvuhgmwzjihjwjtjlgfpgkrlhhicsctkriqhujpamktjksexjklkxkivmjilkhduiskxjuriklegclsjnjlmloldmwmlnavxllpzlukqmlrvplrhhhmmllmpjhfwponqtmmmfn...
result:
ok
Test #109:
score: 0
Accepted
time: 2ms
memory: 3856kb
input:
40 500 lennpvhaesjwznotiemclquvfbhxnphpnyhrrijylkxrrstrgmlekwahzzspctybovapkvlepgdspzvxvtclrmtelffwvumcoituylxnqxubwcenuvxvsgxvxuzavuyiimznvigzmrkqoavtwfcybxznhxyfrbxaefvfimfpwuesbqrpwxrunxctvgvapwllecsfrsosbmludeljvximxbsmqsgnzhwisflkihogdbqixxxkwprooumwovxwuxwwpfzsudgtanewxdfxiyegukigcxmjhgojmqnjv...
output:
dhhrjfxtkblovcqrulrbbmjatktgabgxubfwmpbjucowpzgrpaaytxynxyrvjbcjposelvdnrdcjcfdzumeqsvxxjsyqxkodmoqysnyuswaixfbhypbqeafoivbekmnmzdkdfptcncpoapangpspatvyftaxcwpnagdbioqeetdkctopovkudkflndjuwtenowqfihieldiaikdlvedptkjlmhwxhhgegxyihyqkmehmezjuzjxjutplefqpbgfhwxmapshsnwljvgvdhgjjgzqibzwuwbhvhkthrqwtnteq...
result:
ok
Test #110:
score: 0
Accepted
time: 3ms
memory: 4312kb
input:
7 500 nhjurmfptwpsgukjwqqhganfrtbsavaviwabjwanivosdqwewclocqgeawyuyetiaxqocqksukadafixlzcqjkjkfuvwbnzflkcqdixhbbfhnaxeyfjfvcpucfjvplgcrjlqjlozveqmgkbpierghfibktmipvabndpkokrvgvhgikrhqgcnkkwzcldzhamtnsusuxhqsqyrfgvsiegjbnmbtlzlvyiatojxleldtnbfrnxaqaavqdtwsasyxeeqbjfbjuakywcptyayfjgghqxunfdlqlgvazgafv...
output:
aababaaaaabbbaaaacaaadaaaaabbabaabccbbbbbcbbbbbbddccecccccccecddccdddedddddeeddddedddddeefeeeeeeeefeeeefggggfffffgfggfgffgffgffffffffgggggghighgggghgghhihhhhjhhhhhihhhiiiiijiiiiijjjjjjjjjjjjkkjkkkkkkkkkkkkkkkkkklklkllmlmllllllllmlmllllmmmmmmnmmmnmmnnnnnnnonnnooonnnnnnnnnnnnpqooooooooroqoopoopppqpppp...
result:
ok
Test #111:
score: 0
Accepted
time: 0ms
memory: 3976kb
input:
50 500 fjvtcvkdhphwksdhxuvuhnienmtontugyffzpbliffkcrjbcizldydjqftrqatumvwjjcoshkhciwxkcpwevqafbwttxwkujdigaimazfudmyvcqesaastwfggmcjsmtcearbrzqynmdkgxgzizlaxhbkohbbotkachpjqkmmsvmkogiqhixbngwksteeiaauktuqciihftqwrdwvqcmyqgpwjtipsnoqnsagzjomnqjtzvsylpdqdpapfxdoodbxvxyqmrvkuillaszpnkcahbvakbktrfuqsats...
output:
xxacyxbhyxwyjwyaiyddysadfcxccdzdidgagfxdbcaeyxdacgcmxzyybfihbdbbbdgcecybabllbbdbciiyfdrcrydbcfgahddecfegareetamcchnseghozedddmgadfgqenpnefgllemlefjpngmiegeofggizmffmsnjtfjnhpjgggkfqphfgiigfjfuilmithdjiikshjmhglgggoqnjtnlqjpjhypnjulzkjnqjjnqlckjnmnjjmklnkkllknoofvoyotkulpttslonlqrklnlpollptnkqxpyrqkt...
result:
ok
Test #112:
score: 0
Accepted
time: 2ms
memory: 4292kb
input:
10 500 hdvfzntztjftzhwhklupivisrzogiwdrvuzwabuysraiqrygyefzzyyqgoqyzstcpariuppstyipwyujymubwtkcmfudnbjvmlmpgzpcvrmttcrmzfhqjfezhilsgunngmtfgnrclefuqlhwryparsnyzjchxgfkbjavwicenzieajerrkkzjqnghwsocvkjosrmnmbjhsrrqocvdhdsbwqyswlqmdmnkavexchlvhrehczyzoawbqrpxfrznuebwokclufvnxdgmyglcjnbtqwvikptktkbiczvu...
output:
aaaaaaabbcaaaabbaabaaacaaabbaaabbbcbbccceddcddcdddddceccdccccccgcccdecccdddddddeddeeeeeheefeffeffefffffffffffffffgfgfggggghghhighggihhgigggggggghhhhihjhhihihhhhhkiiijiiiijijkkijjiiijjkjjjkjkjkjljljjjkkkkklklkklkkkkllkmklkkkkmllmlllmllmllllnlmmmmmnmmnmmmmnoonnnnnnnonoonnnnnnrnooooooqoooqoooopoopppppp...
result:
ok
Test #113:
score: 0
Accepted
time: 2ms
memory: 3964kb
input:
50 500 indtujtskbwgmxdvkibvrirswzrvcpiyuyyntxadwsxjixpvgxlliyghubywoqxiloiiebktsgjjfubluyqavdckcutsvuiimgpupytjwcpnoirjqumjbzbkcwlogbmybogrdjhckdepplvunflsveokgbraqorfaozqhjnqwbiigzycaaopcwqvbxxzddipozyzkaynmtxssdoxkljivtotbsrbejeagduwyddmdcxermruoiqxnvddybpxhwhigealmtnzbnfwmvnrfaqptoeazypbqnmhhsmbk...
output:
dxavavqduzubyvxuixgaavaccxvdyacaifccvynexxzgaifaazxybxpbjfzddnockahxmfibkxbyxhxyaopebcxdnbghdbfchyzbjibbmmyibzczfkebekcbhgcfcdobddcdicingbdcbbkiejdejsgfhkiqdjsjidifgdfkrikgkfshdefdhidhjnlmhggdheqhudnhgekheegieggmojphigeqpgjnhlonmjkumkmkkrtomjjokjumulllpjkmljrpnuljoomntllxuljlsnmlswnqolsmnulpmqnoroll...
result:
ok
Test #114:
score: 0
Accepted
time: 2ms
memory: 3896kb
input:
20 500 slcocdoeuswpovhxnefsxdchgfnwlduobfdajvwtydpyssopemfjmxxhybwyccommiyistixveoywghtfxdmdturqyumojdxdsxbhqmscboezlfgmrlwccygpbltparhkieqratosgogmxykbihmrryxqgqfygytxttksfhknglfbhejqjzitxzsbzirrtzffaigozubkirbzbnnmihyybpqsravofyatvxuykzjnkkygmtfexebdhhcitnenvitiiegtlwedrupvhbgwsdpprkjdhubvmkvxyusu...
output:
bduabwzbzafbeaabicdaagcaahffeeeyscybaeacaczlgcdzdccwdccdbdxyldierpycdrtchjddcepeepogmeedffffffukadqdudgghkhczuglyhhhhihnibhbcgiljrjbbhtaihylfhihrjfnkdzjjhshjljikxbebikftvilijlyjrazkletxjjixopkumjjomllltkllokmjrmnknqegklokbkmnmpqnwqkkylgknkummhkmksmjmaonxesisnmfmluboytnoaonjsoopsorruornuvjsrgbtpgubfr...
result:
ok
Test #115:
score: 0
Accepted
time: 0ms
memory: 4300kb
input:
10 500 roqwtjzrjuwkjwdsrncguryxigdlozkssldrhkipfguyoldfyrosbquckzszvbfjkbhtvatcgdbnkrgszdlwlgnqvlyyrztbdpnvtvqyedmoevnpvoycipvhgglyxhsojpyjjquksdkqlwsglcisppapjlrvowqpzxgzfurbiuwjorofabhyvolrcdarwpshlkvigmnwucgffluinlyqblzuqbziqthcrqgtkyxphdsmbdezmiydqrumajjwofoqsgkghsjjarlkjgqrfigsadcyjdvhxigntkfwt...
output:
azazaaabcababaaaaaabaaabaacbcbbcbbbcbcbbdbbbbcbbbcfccccdccedcdddddddeefefefeeeheeefeeeeeeeffgfffffgffffffffffhggghgggggghhgghgghggihhiihhhhhjihhhhhiiihhihhiihihjiijjjkjjjjkjjjjjjjjkkjjkjjkjjjlklkkmlklklkkkmkklmlmlmllmllmnllllmmmmmmnmnnnnooononnnonnnnnnnnnnnnnnqpooooooooppooqoopoqooopoooopqspqpppqppq...
result:
ok
Test #116:
score: 0
Accepted
time: 2ms
memory: 3856kb
input:
84 372 cghxpccqxmpjhtjdglpdovwbzyqusjaaaczvnuxwducxekfdxytfvidgytsrnsqttxtrbkxlfpiioewbjuhchzmaifgmgozzszkpzehdtrbuakovkrqcsufpylbvidlaysqeaphobqoswwlgvfqlcwmxalphjpjghaphienececljwcyzgwerjpblvsjpyglbhcrncsyutwoyiuswxfwisljgbkffxgcrtlbhcsikvelbqjpaztaasiszygtchgirkazcpgfcfxplcefbpgofwjacaubweqfkmrbf...
output:
hqyecyaaesovzbstegaxbvmsopqajgogzvkmedykxzfulzfmpdzunbukhzvipcuxejqnjgnjyxtmxgnrmoemicwazqxvxrxpvadnbdkyhodesgotytdhgonnifetqoeaivzprxzmicgazvmxcxxdefbxiwtwsdigpjojdlnmixfikifxldzbilkffuetlhqqsextndlxfnahwbszpudqyrfgnhzdftjxuienlthsjvbgqucbftynpnlzpfxmhvtifavfdchtcfwefmepysaaljuyqjuxiwzoskitkgbiyfon...
result:
ok
Test #117:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
40 500 bngwwqulygjlplyrkicksgvqqycoamxfcoydohxhytmdmskpyjwuhziugselpxqspsbzoecnmtcgkyrbphotgkvlalmmgzpnenyzurybwxlpllgnrvxgykkqqmqmmbansntkcgmbuovmzpzfinlzwofqungisfrttnxsoqulqmwdyurgvuuppkbgczyyegxmrdufnowmahnflulqmtkhpjjrmawolznbmzfcesnawzxiqhaekaphgdhxfpczmdjmogxtezqhvnxyoaoaapgctcprzcegjajvmplbf...
output:
aaiirbgkyfdxaejcrspxhhafdhimbnwrfsaxjdjucfetjrxwjhvanjlybfldydsklaqfdfbbnbkruehhpdttelmkhpemlpdncbtjiwpztihdcztfewkzqfvcvgwdfstcfjdzdoehdgikinfritocfgnkkjgpjbiyqexeuoudebqujcxrlqtedbdhicxbqqdfrtnbdzvydnhkktsmgaycvbdquhsbfefuegeecpivhokdslxbcunxleqrqtlxelrzwqnuekjenqmukjnsossfulltrckicmvkpohtgifpxwbw...
result:
ok
Test #118:
score: 0
Accepted
time: 2ms
memory: 4244kb
input:
10 500 golmkejjbmsldxyvlvmbmgoaivglyqadcjhtedubrsjwtdkliqsltksdijsfeyvuttgvbcoqcmhcdjwnbatcprrrpmmnnqgamphfsbsesxqhwpnuxhcxqxeawyptrprmloahypvaivqyzugftstanjrxbbudyrvbkrvmhfqjatvypaevjlgxchmlgxtymnndzwosslntpihighkkspkuspqhxduqoiqlirubexhhpifeiogxqggfdvavhequdgjskvycqehyqgdcmgsuxbksdhhvlpqhhuumviqhu...
output:
azizaabiambjycacabbcmbbbovbyhbbcbbvblzbcbecedcdcccsceedidvdbxddddidedddmdeedejdgeeehgeffhicfffffmgahfgfhafeqgfgfhfgfgggozgivijggdggjhdhihhpihhhhjiyiiqijjjjjjmjwljgkjjjkjkaujnkjljkfjhinlolclokwlkfvkdmwlikkkxlllellillmmmbmfnjmirmeeczmmtmmommmomkmusiomnpknnfonnnoknhfnoxnnnnxounjonononnopozogopptpprcppp...
result:
ok
Test #119:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
nraaaaknaaakaakkalai
result:
ok
Test #120:
score: 0
Accepted
time: 1ms
memory: 3780kb
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: 1ms
memory: 3752kb
input:
38 99 lemacjdnpybypkogwdtvhlhmlvzbhkbjaztriqyynvsftexmhjzzxyjthuaeozdpdxpjhtaqtqnddedkjlltttkklenffpfgpjl YYYYYYYYYYYYYYYYYYYYYYYYBYYYBYYYBYYYYYYBYYYYYYYYBGYYYBYBBYBYYYBBBYBYBBBYBGBBBYBYYBBBBBYBBYBBBBBYBYB ffoiuvnagcedozbnvdgcwehekesyjmonuaviekpeeetvihyvwtnvwucerddzlzdiiltbqtyfyfquaifdjdyadkytyookgn...
output:
jxdzvsbczlpjjcgmgqicnemjuovxeruwfqgsrkxwhieeutrujjtokrhzzoxuzyrxamgnqbeecqxmyzczdqjkkvzeqjyblgmistp
result:
ok
Test #122:
score: 0
Accepted
time: 2ms
memory: 4216kb
input:
10 500 avcyabyfbhldqyquiroxejrovopyxbgfslzbrmbbbhvxiozmwggujoagvafzguvgzztetufaehlozosicgjrhqnboxoqzxnwlinkwjtfcmstnhsxpbusuvudgepfwkpuenqjvmpuljzrewqmcldwmglpqfcezkmfueprdnceqlkeobrubhwmugcvkjvimcvqtdhgtcqxzldhntduytagztfheqmlkrvkfllddoemookesremmaxxavxeescpkijpneujkxokegzvfjtpvtwfiosefakjcziiczgco...
output:
baeabctasqaaybacaaaadaccaaababbbabkdbbcccbvccncrcktccvcdqcfcccedmddddiddddxhdssiddeadmddehglleeejyexeeeigiffgggkzffcolbfgffhhgfffgggjghjhgjapghbxpgggihhihhhfcmhhhzhhhcihidkcijhiiijiiiijlljjkjexvjkjjvgjjwjjkkklpwkkkkkgkkmlklllmvdnllnlflxmwlsdmnmmmmmnnymopnnonnnnnvobnnnqptocqopoppfopqppzpiqwrqqqqrrzrq...
result:
ok
Test #123:
score: 0
Accepted
time: 2ms
memory: 3928kb
input:
20 500 rhqrqfrgwyrzxmjqbfwzxjvlvykkreypsulclulaqxnwwnbongeepchnwgrojedulbplkkwfbxrxbkwtuztgxcfucyirctbhqmfyiicasmzpgtyqucsahojdjewbbxkaoupnzejlvgognwxxjgvtrnctdbblbhovfeellhuglseearomgbdtlnjmhnefntguonarkwoylusekasgztbqelwycvioxwgrmjxnvcxkdbrzfkldjzotbnzuvhyxyesfvaucxynavbkyaisfryutwqeginaehujgakoyp...
output:
zyhzuaabizaizzsgaaebjarnaaijbvbltaexralhusauaqbfldcwbbdyeewbxxebhkdccccehdefmecchexgcczchbqfnffccdjdiodqdhofhglhwdgeirdjrkdudxbvyfdfnffdihokieibzzgsmtcbdbpjqmmqtojikimsixieijikkjqjqwhlkojzjtreimaljjkkymcoxljpwlqjxjkjclhfjovislojxpyfmgqlllnooovoaqiponvbnnnownaflhsnpuxniqckccnrwnqvccqgqppqpdofbkxttzht...
result:
ok
Test #124:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
38 99 lcnqdbnunbdbzudjlrywtorribfyxduvteracrxyunifgbivvkzxefslommakqzpqkoipbfckyhghwtjafiwnybobniqqrcybxi YYYYYGYYYYYYYYBYYYYYYYYBYYYYYBYYYYBYYBYBBYYYYYYYBYYYBYYYYYYYYYYYYYBYGYYBYBYYYYBYYYYYBBBBBBBBBBBBBYB zvnepeuvrwzqrkmgoylqikrcnudzlzehdcyopuqytavurqzqygnpszcnykpfrsjdtlavrlgkkvswqkqrccffxugrcifdqo...
output:
zuwrgbbhhkjnuziavazugaylsscdgisswzcryqhljpljhkximftnnlzwfvimbxsnkbqepptdzslzkbxofsxllhhmiqbmffjmomz
result:
ok
Test #125:
score: 0
Accepted
time: 2ms
memory: 3872kb
input:
40 500 nociyvndtnjzbwfnkoirbeayjufjxljvsglmgbzyqddrlttohklanglgkepoezadibbyjpptxbsbeahwmdssetnwxyifixbcftwpekfiiormtpmyufikfguubzkngohpnroobefeanihvowxgdktkxpkyacxawaafupqcerckoyntlmvgdiehqgdmhftmlorsawglxdvtinmzdluinsnyeywxnvpossghmmnskkafswbeywoomhbidilmfzfjabgormdohxxlqewowhsjddlvltadnetadbynlguo...
output:
xaoungexdfzvrbircjhreutykhbaaivfmbyqiozqcnfijyfzgqrjqaistuoebeztwcetxsuggpdxqxpjxerwbkwefgryftssonrdhjtlrinlqsxcirjqjjfrfhhfydhaalgizsgdekuhejmdxlktavuqksdoeoaxamfnilucjjlfkjlugzaopcyrnnjfejwlsultilcoamprmgegjfaycikwnqpgshmuolmrfqlewrtrfontzgqrwflplvklesnemqlugjjtcfnhrzqzhnamojdhjlzdupzvjkgdevlbljvl...
result:
ok
Test #126:
score: 0
Accepted
time: 2ms
memory: 4384kb
input:
7 500 nngsllnxkpwnspcftnkpuhpuqcmirgfpmtejqrbhhdzylwumotzkqwyvmijqbklpgqewnldqkvgzbxcdhmkqtwsiifslmnpfqqgdotjptxpofzkspqsmegmgmsdyxndckfpdofzmggpiwgrrwhrciavopdwyqxzxthudmqheezbdqihpmkgezeklynghjlufystcgnujxdvrrlgiogbfudpahzltwlnmkmkcqmqmegpuhlgswhuelsoyomaqzgwwxvdkiwfokyetrkjahataworndgcvtqeoznxewh...
output:
zaaaabaaaaaaaababaaaaababbbbbbbbbcbbbcecbbbbccccdccedccccdedddedddddddfdedefeeeeffeegefffgffffggfffffffffggfghgggfgggjghhhgiggggghihhhhhhhhhhhhhhiiihjiiiiiiijiiiiiiijiiiiljkjkjkjjjkjjjjjlkkkjjmlkkkkkkmkkkkkkkllmllllllmmlmmmnonmmmnmnmmnmonmnnnnnnnnononnnnnoooooooopooorpqpppppqpqpppppprppppppqpppppqqt...
result:
ok
Test #127:
score: 0
Accepted
time: 2ms
memory: 3948kb
input:
50 500 uikgvhvrmqsubmwdwhxcmtcpocrpxijhuvsniexaseairmkcbeklcgefagvtljfgiegaocuyuiqwxlxdpxurnojyioqamgwofiwfcmmjgyvigfvcjozervzfmkitsoakpqkjepbkpifrcuydaadlnyzuzqcivynubiadaagsmiahneoivnrxwyebomunjamdlnnbumabxevqugcbfgbqgduhgvjxtreauohsxzpqvglrttolbwlzpgbcqwgocnurrqkpximajmscldqajgqtvdmatypajhmynzcfj...
output:
yabyevcyxwyxavyahzvdxzdevbzzyyzlkyoicddjxceagqohcabxzacqzabkafhzcisblbdvkdnjcdbebebceezdbjhzbcophmgcleddctgfcmgbizkigfcggdeidinebfjzcdhbhgcdfbbhgbbbetehhthfkdgpijjgedoeflmeikjfijjnjkhngfikhggtgmzklljmrhhjgfmxphgztkhkqowoiikmvhjzkkmhrqkjkjijpizmtkkmssimukpznkpiqtknkkuxxviiliyolralmnlnxonprqlmnzpssqmo...
result:
ok
Test #128:
score: 0
Accepted
time: 2ms
memory: 3992kb
input:
20 500 idgnkmrnbkqgpmdkbfdszsrpghevtsnhgwolxsqqwathzcljlwpcegkceborovpjblydpugpdzmprpdwvhzoxmmchtdxrycqxtlqoankpbdsbkkwdhxmfxaiueqaglafodvimcpglygwxtyckrxkuufsvjjsbfsbbxesiuyqnukafrxdtflkkvnchyfayxvgvwvitxgljtcwnuwmmoloqlbsbhdqxuocnycrnprpkdvuboxdffqyyelptzdyegpoywwkplvejokbueqjyzpwmpozhiuyondtgkjea...
output:
nxzbzhzfdddkhmaaebhybbixaanbxacaaoaacebniecwcdjtodqfbhcjducdcicacffcwddyfeeendferdljegmxeffihqeykghfaidlfvjfwfkjrffggffffiggujjhknhrliihjimzewhjukhiyphtkiijiinpiijgyfzoklioijjiiliujbkmjoohgjkvnfknolhmyikmadaxldklikdwlpilollnllngmtybmoaopwejoqapqmonpspursojoamophhmospsxoagzzmgcqywshprtpnuboonoqqcqhqe...
result:
ok
Test #129:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
40 500 snfrdqgnvyyaraqccmotrtokkfmalyybgpwgulvlyxckrcxcldtepcsadrgnmctvegynxumxxilbssrbpamhbiuqiqlywakejtvwikqspifcememdyupghrwclrlpvulxamihrmengmrcgbweadneunrpgnkulxwnxbcmxquvgmipebjnwojpfxnsbhvyctavdqcgrgwjlkjensloiqioeijlwsscfdgtktugkpxngprzvebltcjijglgaifurynycshpoocpkvtdbwsfxcuszwehszqobvmqwxfm...
output:
udxrdmtnzkknqatabgekqztegwwyaittszxweuxcubzdfbddgpsdqjilqkvlxgqaibfcyzlmotfncbzbixihxbaznlyqbrbiwdzgcticjosubjwkoirfgmrealgjktwoecckjbidgfrentdlzfrxirzyydhehyuhrdfgofziryjckoznwjgqoqleveslxfcalzhfchfnydolhllpqfllyosuyajnpupsplfdakkrfxrzsrcfrsnuhefngfnjjztawkmobwrkliteufdgtjtinpqimshsnkpngijrkfwvepdz...
result:
ok
Test #130:
score: 0
Accepted
time: 2ms
memory: 4344kb
input:
8 500 xiqiycbimxqtfqjpslneyqplebchzxulzwjrgtegxuqgrqhvpnpngcjucxelkmjrizcvnrjqtvddxlpgltxwckqmpkpoadbippkbncrqfdfofscnfgpvyqgrbcdadfufemkbkpcdjmhyfokuxquypgtejulbyglpnrbdydywxfcupytfqnviupqgazwtyjbjxwfleheseyheobucdjqcdrefkqmslnrbjjmqerchombsqkofjgsnlwubvzvgedxljfjccwjrrctghbfuwwomjzzpkyxmcxkfxddgrf...
output:
aaaaaaaaaaaaabaaabaababbbcbbbbbbdbccdbbdbcbccdcccccccdccddcccccddededddedeeeddddefeeeffeeeefgeeeffeefeefefghgfffgifffgffffffggggggggggggggihhhiihhhhhhhihhhhhhihhiijiiiiijiiiiiiiikjjjjjkkjjjkjljjjjjjjjjjlklklkkkkkkkkkmkllmmllllnllmlllllllmmmmmnoponnnoopnnnnnnnnnnnnnnonnnnppppooooopooqppppqqpqpppqrppp...
result:
ok
Test #131:
score: 0
Accepted
time: 2ms
memory: 3968kb
input:
50 500 nxzrlyklxqvmvzvobwxktnrdwljurhvzllrjmfjkvwgcbkirbtiwylejxwfihpzvizdwvsgjaaiqkwriqildaoojglbljohibjkufsaagaxyjhzjfofnxmyhkwmlwbhzmydabjtgagwhedfhaypvajepofyhfbdouxwuhnbgztthctbqjqasonbglubknmeknsnbpctlwccyhiyepytqbcaftfrhwfzxocnndardvufksspvgfmsvcurqyeovcofkswrgwanlsgbllolrlsyweanwprleynusyizj...
output:
tcvvdtcwvedbdbwaauuakwaeaxxmdbgyuffdbyfbafdguyafagdakcacayefcfaaydcahyunccbbbeddchbgffcceyjdcbcgdfcedbbycjdcdyccyjhdghemyfdejhijukneefvjefklhehlhedhidddlhkgedfjmejgikgefjmiqiseekgmgighhgepilrpiklfeirgnjtkgnqffjmfjfogflukjlihmitqjkkhnkhihlisnmqiiilmbotkplkiimlpkklpikirkrmniipisklinrmknmrlomloikzlxuol...
result:
ok
Test #132:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
30 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aasaaysaafnpasaadcat
result:
ok
Test #133:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
38 99 qeyynemrcyzwzvuoybvrvzmeehgkxdjsklfkrlthdrgtnwlmgpqrefjgmdwxoifalobzyiffgrdqlwwmvxatxvlhbhqsfnjqpmt YYYYYBYYYYYYGYYYYYYYYYYBBYYYYYYYYYBYYYYYBYYYYYYYBYYYBBYBBBBYYYBYYYYBBYBBBYGYBBBBYBYYBBBYYYYYBYYYYBB kfjamtsoagrrvlrqjnovogtiwsjwauxmqjmklnumwcarztrhzmhekliwilsnnuhbyewgqjzksoybnqnnggodjblpszvkse...
output:
gqnzxcpkiktlzjbrosxvbrtryalmiypcphkjbaauepaoksvhyqsoqqoaczprvhhngtquwhcqccdcjmphhvlrmrhwluaaydapncb
result:
ok
Test #134:
score: 0
Accepted
time: 2ms
memory: 3968kb
input:
20 500 nixynynsrobetbjrzejtjkegkaogsaillemsrxikuuedvhrzjovgsfhkiwjzdstergysibyqpvyrwrrcjddsxlyqdlfwvjabmwanmxzkpihmmjxdutsingdorqgszclfjvcpzzjlemkpngmhrwchrycncoefavqmwcqlgyjzxtskapmxwnbdwnctpjsiabbaaurcjvefbpjouneqgejcpsnaahtylxsahmktvhvfzugxkulocepedrphwsujxowmnpdmbbqjulslqijltopnphxllsbrsbwdhyszd...
output:
pyqrbeabaafficdaanybdvyobdyjtbdbbjbwsdbdjgnocoqbbyscdmdqttrfflmddpperqeeadvrdlaqzdpeqhijebjlvfbbegxrgghgcdgfdphefhmfoxfvaiagrfgfoyfffxfhrkxwhagphwqixdhiginirhjtkxihjimixiaijkkbgiltaaijmujqukklojguwbkljkkvnkkpjjsljjkktkclmdllmmnmzlllnslnpumlpnqnieopqnowontnptfmcnfsnthzvnptonhszlronsnhqpnigoeteylpsppq...
result:
ok
Test #135:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
40 500 qvxlguccwpbtfosxdxjcaslntxgmfxzsantgvrtmcyfwuqgucbdychvadnxfreaiklbmgmadqxpsrwocowtjrhjxyovenmbfmgtuyevakqjiuthlzixijiujvgnpelovuzakwbkmcoivedpzaytfbvcrzrexbiqyeqcprollhrjaqwjxqmiravpxfyifmhwbnfysqbdirmozlhellydconrbxfvunxuplujacyuzkxqpedznvprcimjrxpoilkspgtcceatsormsqnbyhndlgqwaytwsxxfttafsc...
output:
mtarwklgahhndcklhwfngxbcqpkmezgbvzqoudfeawoaiuboidyoytrrzdkmzmaeslnozscyoylrwbihbirnahbkiroahzayrrhaeydelykmeoyhqndqnmjstukvsemedbvlkcbmrdeoltgsbyirzllaetikpvtakcidggkyqgbkrnsxzxepeegzugtsnetxvzevbxoqzdubbwwnndlicnpfmlzcpoxxbfmtlqhaelummjbrdnmxjnlgjrdospukxwcopbmmrvjadukcputebrfygykjbfnjqeoqpixerinc...
result:
ok
Test #136:
score: 0
Accepted
time: 2ms
memory: 4008kb
input:
50 500 lwgcolotodckvwmbefzrabvbqvekrdkwbovegjovpdlhpzdgeqgplvajpdisoxywdlssiaotqlvqdnndntdofaikqyekozxqjpuvwendiexjwqidxlikzcewckbjxdsnwdwfitpdnvwjnrglnhaazibzoizmfkkajvvvbpvcwdpsnhzepxrkcvnwoyyqnvzwqghqwhwtiarsouxqyqigucxxlxsmvxvmyaujclujbrxuyojcwxqgzszgdnuopfkjfnewiwgopkjefficwslltdgsbrditextdwxox...
output:
amwyzxvxabvxcyyahdwwcvcvbhwcacyglccbfwgyyzbgbacyzmabhgikbcecggugjzdcbfcgedazkghjayfcabzbucdgbbaaellmaaceekehftgkcbjfadfagbdijaajbhdwddhedickhwffdeimjcdfcmmjhecechfjihkelceziefuffeefbpnugtkgeifminohgfhkimflggphhgkogfggjkkfnazfilqfnifffhoahnpjjlilklhjhtihljohjjhjhnnhpklxhknnhknklloioolkhwoklnylltniumr...
result:
ok
Test #137:
score: 0
Accepted
time: 1ms
memory: 3788kb
input:
30 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aaharjrrwraapmaxacra
result:
ok
Test #138:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
38 99 pdcxnpchuhnjkesyrhzhbvigmnzsclduhpzbafsdjoqnvqufwccluyijavnbcvwzjmbslitkeoyyusmydcjgupsjugxcnvphnik YYYYYYYYBYYYYYYYYYYBYYYYYBBYYYYBBGBYYYYYYYYBYYBYYBBYBYYBYBBYBBYBBYYYYBYBYYYYBYYYBBBYBYBBBYYBBBBBBBB aktlvhefxyiyoqbfykdplzvpkqltlcmuoptxhixpddzrwgqvphxngbjhvwojcxztsgmvogdqqphprbqgphbskoqtxcpdbp...
output:
mrsemxxahaymnagshjnrqloqwvbyaxtoypgarslvoydabmdxkgtqfetpyzwfoayyaldcpbytchwfrecsfotfqwbpiywjbibtrse
result:
ok
Test #139:
score: 0
Accepted
time: 2ms
memory: 3876kb
input:
40 500 uzjmgymcylmysxcrrymwcnofpflbhruopcojnvkcmouoxfwhojapwtnnqefehbrbdxpvqjgmyspqeyybofbetcrfhpaqnljlnrgopvihrreqlxhasxouvgeapflvmxgjyagoxavhhwckjzzjxzdksqmuwizptrfodwvulsqxutedqazctagynmjbuwudnzmrmswbaacywrnwtyebgkbxqpbcdxcszswfpthkfdmzdamuztaigxctsrlsigjmzwsbbeybmymootmivkzmgxjrwkonyiataoefsfmvv...
output:
vhnezeifkrnaaheloemqagutgefhazzywebrcbrrlclvgtbelixefhcduzeffhgxvupfhvwepvpvvhzimwzbtdhopawbbqdgcinftjcpwqadgijdsvgzyjnbsgcrwyzigkjrjmkxxhhnjbigkikueekoogkyntecaigimnjlgyuraholiksvoprbjenxjuvxnlznuwncpkhyefdltvfpcvacsgdvbprewopolhealzlzppglxqtvxivhwmximoqqxcbobpuynstiksrtmslevxuzmneorsualrasvvekboti...
result:
ok
Test #140:
score: 0
Accepted
time: 2ms
memory: 4308kb
input:
10 500 xsimzmrnrwkrhlqcudoxlgjohikinljmrhetqfzucreypgkxangkacnjgvzxlnqivnukorergxzmidkdjvluajuppwnlijnfzzkhawhhlcisvrcscjsdwsarerilfycpsrbgrplapfsrmcxrqhrztqgrslrbcxjcwuahohnhfbzpfnfilxihrkssyjtorcgorequvyokoteqsargqttlanlpaeivsrwztwymwnjmknihvrarnxhixaxbxsxhlfxcdkbfnyaqtactwzxfbtcmwdvdlcwyzfcmtljpt...
output:
yaacaaaaaaaaaabababbcaaabbabbcbbccbbbbddbbcbbfcccccdcdceddddddeddedddfddeddfdededeeffeeeeefhfffifffgfhfggggghggigggggghggghghghjghiighhhjiiiiiiikiiiiiijkkjjkjkkjkjkjjkjjjjkjjjjmkllkmkknkllkkkkllmlmllllmllllllmmmnmmmmnnmmnmmmmmonnonpopnnnnonononpooooopopooooooqooooooppprppppqpqpppqqqsqqqqrqqqqsqqqqrr...
result:
ok
Test #141:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
13 78 atxrzzdogxijznphsjlluqlrkgskvyztadtywogwecslmxfvqnfwfrdwhplvwhphcldrxatunvxrob YYYYYYYYYBYYBYYYYYYYYYYYYYYYYYBYYYYYYYBYGYBYYBYYYYYBYGYBBYBYBBYBBGBYBYBYYYBGYY bybporjtlvekycuvihdibibipzsqbwcsqzudxvyebzclyhkzqrqiharctxhbkmliuywlamwpdxosqp YYYYYYYGYYYYYYYYYYYYYBYBGYYYBYBYYYYYYYYYBBBYBBYBYYYBBYYBY...
output:
daacabztdeffhffxbgigkljjpjmnkklolvpnntbqepodqqlwrprrrrsuvtsbqovuilyavwyrbzyrpp
result:
ok
Test #142:
score: 0
Accepted
time: 2ms
memory: 3756kb
input:
84 372 qipcbroojpntrdpkaexvlxwjoiyovtvihmxautephjvzpdjvjbqqfsuhsutaqouxxnehofrvqmjcutqifyirgkvmhzuacqwgodopnrtoaufvufswewrvqreefwdwdnbrcuuuorjebvsfruunekopkysnwqioiqmithyfszubxeytclafgnhciwajyuuxzlorqepcodfcwsngahmaplzbisdhgqvrpgogvjkngnbkmrdeahyezspwzlovgaxsqkzbhfbdyldilojyhugijuxjifhgspdqpxpbpjygz...
output:
gmskdfngrsqdewaxsnjswnfsilxseqdhvwzxuuvqsrewxhpumpthhlczvlmahfwsinvelcyyonszsrsbcesgacmakysinpyqeopitreofdawhtqnkhkkgkguekxmhwysqxaemnakvhzhvmcnmygyyewqxxaijysrxlpeueajmlmzjxxxevyldzrcgrmrpkwydymgdbguywfwsqnlpezpqexcaldmusoerkwwvdbudsamipudrspmpdgpvwvdejntfzwmgwjhsfppnrfhzlixwralsnkoszkpczrrdyigwnwr...
result:
ok
Test #143:
score: 0
Accepted
time: 2ms
memory: 3868kb
input:
40 500 qdeezcmiwkdfctpgdwdffklbrqeluimxulivoceryupjudrqekkbtjogsxgzsjqhbvktutpwpxzaywigylbssvoasicrtocmpdsjhuvxxmkmouviukufiqdtcyghmevuqrcfdxbavmkwhtleuhsbecvejzuulmwqodlgklwcyaoczmhhtihfwwrjsjzivodqeyhvoobzbjkwouxxtrjfbpprikonyscerskpyllvnodnxscxcqoajuqrodqjlaeptbjcfmbjqlfkaczlvjhvnqaiwkjhfxqlczlyw...
output:
hvbaimtfhwagtucqpbyhwknfueloqdixuybivawxsdzdubjighumkdzkevlefgebafeghqnnpcotbhwjcdfxsphxkhfnwromcehwjkmhqljcjydptpkslxxdncvndppctejybafwbsrnyzwutvcecchtmmguqkwgbuyioqjfxvtxivuutuxiwoupfsmzadfhkugepvknymvyeegojjbqcykhcbxsnlldgpvibubkzlhiixvpxlrixrksxnngagguzmtgrfqonntikucnizuqqzsjnqpqshylosvtkywcohdr...
result:
ok
Test #144:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
ykyaaqmqaraaurvmwaaj
result:
ok
Test #145:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
fwhawofaspgpawacljsw
result:
ok
Test #146:
score: 0
Accepted
time: 2ms
memory: 3896kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
ayxqayaagoyacapaaaayablacaaracaqadgdajaaaaelqacdddcaaawaahagianaapaeafaneabaaaaaafpafaggfakaauvaaafaaaafaaaaiakhaaqaajxagghaaaaatkawaaaajjlaaahgaaaaaaeojsmllmjuauaaajaaoakaammvaaaanaaamnxaabaapoapapuaadanpaaaaqeansqspqqdnaaplaqraaqoakaqdfhmaqfaangwqqaaorxappubraastsvsswutcaaadupaaatsfavaswvgwwaaxxbc
result:
ok
Test #147:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
eyagalsaraaorapgpyja
result:
ok
Test #148:
score: 0
Accepted
time: 1ms
memory: 3788kb
input:
30 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
falarfatuanaapvawgna
result:
ok
Test #149:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
mccaasjadlwmoqaqaada
result:
ok
Test #150:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
38 99 amimobtouampmyfcupgtlsdjbtftablgthpaamgzurxxpzhqmahepdflzsnsiwgepjejgzvlbndsilxrhegxmxofimocmhunwvn YYYGYYYYYYBYBYYYYYYYYYYYYYYYYGYYYYYYBBYYYYYYBYYYBBBYBYBBYYYBYYYYBYYYYYYBBYYBBBGYBYYYBBYBBBYYBBYYYYB gyzmrybfmjlbxvzqqdbekapnixntkelxammnjmqzppfyfiarfhjrfvzsfsdfwmxyhnaeqktbysrtzteeutpvldzyuldvlq...
output:
ozzmbjrwthdfpglrdgyontgctxcetbbehvguvadapjtccuewocsirztzmxenjfuarscorncaclzjvjxtxgivvqtyrwegedvwopu
result:
ok
Test #151:
score: 0
Accepted
time: 1ms
memory: 3804kb
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:
aumlpagata
result:
ok
Test #152:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
aabjfacaaoaabaathadxadaexaddacauaaaaaaejhdedatqaeeauaaxgaaaficahfaaaaaagomgawahmagajaaijaaaiiaaaaakabaakaiimammnajkalkcaataollaellmpaaxannaaanaakkanaaanaaaaapanjaajoappkqasaoqajqooaastrkarrauasuavacxauawryasanutuwauauatavtaaaawlawvguaetauawaaeayaaduauuayavxaaasdjaaxyaayaagakxlaxacaaaameaaedawsoaiaaa
result:
ok
Test #153:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
31 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aaaaavegoaaeagtacaaa
result:
ok
Test #154:
score: 0
Accepted
time: 1ms
memory: 3724kb
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:
aaanraacve
result:
ok
Test #155:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
saaiamkaxaaskaadarka
result:
ok
Test #156:
score: 0
Accepted
time: 1ms
memory: 3728kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
sohgaopaaaanaayaaafs
result:
ok
Test #157:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
sfebtaaaaxooanapnpvb
result:
ok
Test #158:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
29 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
aaxokaarfladaasmydkk
result:
ok
Test #159:
score: 0
Accepted
time: 0ms
memory: 3732kb
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:
aadvrquhaa
result:
ok
Test #160:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
23 35 zzzzzzzzzzzzzazzzzzzzzzzzzdzazzzzzz BBBBBBBBBBBBBYBBBBBBBBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzbzzzzzzzzzezzzzbzzz BBBBBBBBBBBBBBBBYBBBBBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzzzzzczzczzfzzzzzzzz BBBBBBBBBBBBBBBBBBBBYBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzzzzzzzzzzzgzzzzzzzz BBBBBBBBBBBBBBBBBBBBBBBBBBYBBBBBBBB zzzzzz...
output:
ybcdefghijklmnopqrstuvwxyyayyyyyyyy
result:
ok
Test #161:
score: 0
Accepted
time: 1ms
memory: 3764kb
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:
nnnxxnnnxn
result:
ok
Test #162:
score: 0
Accepted
time: 1ms
memory: 3752kb
input:
27 50 iiiiiiiiriiiiiirirrirriiiiiiriiiriiiiiiiriiiiiirii BBBBBBBBYBBBBBBYBYYBYYBBBBBBYBBBYBBBBBBBYBBBBBBYBB iiiiiiiixiiiiiixixxixxiiiiiixiiixiiiiiiixiiiiiixii BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB iiiiiiiifiiiiiififfiffiiiiiifiiifiiiiiiifiiiiiifii BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...
output:
rrrrrrrrcrrrrrrcrccrccrrrrrrcrrrcrrrrrrrcrrrrrrcrr
result:
ok
Test #163:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
27 100 wwwwzwwwzwwwzzwwwwwwzzzzwzwzzzzzwzwwzzwwwzwzwzwwwwzzzwwzzzwzwwzzzwzwzwzwwzwwzzzzwzzzwzwzzzzwzzwwzzww YYYYBYYYBYYYBBYYYYYYBBBBYBYBBBBBYBYYBBYYYBYBYBYYYYBBBYYBBBYBYYBBBYBYBYBYYBYYBBBBYBBBYBYBBBBYBBYYBBYY hhhhzhhhzhhhzzhhhhhhzzzzhzhzzzzzhzhhzzhhhzhzhzhhhhzzzhhzzzhzhhzzzhzhzhzhhzhhzzzzhzzzhzhzzzz...
output:
bbbbwbbbwbbbwwbbbbbbwwwwbwbwwwwwbwbbwwbbbwbwbwbbbbwwwbbwwwbwbbwwwbwbwbwbbwbbwwwwbwwwbwbwwwwbwwbbwwbb
result:
ok
Test #164:
score: 0
Accepted
time: 2ms
memory: 3876kb
input:
27 500 uuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuuunuuuunuuuuuuuuuuuuuuuuuuuuuunuuunuunnnuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuunuuuuunuuuuuuuunnnnuuuuuuunuunuunuuuuuuuuuuuuuunuuuuuuuuuuuuuuuuuuuuuuuuunuuuuuunuuuuunuuuuunuuuuunuuuuuuuuuuuunuuuuuuuuuuuuunuuuuuuuuuuununuunuuunuunuuuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuu...
output:
nnnnnnnnnnnnnnnnnlnnnnnnnnnnnnnnnnlnnnnlnnnnnnnnnnnnnnnnnnnnnnlnnnlnnlllnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlnnnnnlnnnnnnnnllllnnnnnnnlnnlnnlnnnnnnnnnnnnnnlnnnnnnnnnnnnnnnnnnnnnnnnnlnnnnnnlnnnnnlnnnnnlnnnnnlnnnnnnnnnnnnlnnnnnnnnnnnnnlnnnnnnnnnnnlnlnnlnnnlnnlnnnnnnnnnnnnnnnnnnlnnnnnnnnnnnnnnnlnlnnnn...
result:
ok