QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#196909 | #5161. Last Guess | RobeZH# | AC ✓ | 6ms | 4364kb | C++14 | 4.1kb | 2023-10-02 04:05:45 | 2023-10-02 04:05:46 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
#define subnb true
#define Lnb true
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
const int N = 505, INF = (int)1e9;
struct edge {
int to, cap, rev;
edge(int _to, int _cap, int _rev) {
to = _to, cap = _cap, rev = _rev;
}
};
struct Dinic {
vector<vector<edge>> G;
vi level, iter;
Dinic(int n) : G(n), level(n), iter(n) {}
void add_edge(int from, int to, int cap) {
G[from].push_back(edge(to, cap, sz(G[to])));
G[to].push_back(edge(from, 0, sz(G[from]) - 1));
}
void bfs(int s) {
fill(all(level), -1);
queue<int> que;
level[s] = 0;
que.push(s);
while(!que.empty()) {
int v = que.front(); que.pop();
for (auto &e : G[v]) {
if(e.cap > 0 && level[e.to] < 0) {
level[e.to] = level[v] + 1;
que.push(e.to);
}
}
}
}
int dfs(int v, int t, int f) {
if(v == t) return f;
for (int &i = iter[v]; i < sz(G[v]); i++) {
edge &e = G[v][i];
if(e.cap > 0 && level[v] < level[e.to]) {
int d = dfs(e.to, t, min(e.cap, f));
if(d > 0) {
e.cap -= d;
G[e.to][e.rev].cap += d;
return d;
}
}
}
return 0;
}
int max_flow(int s, int t) {
int flow = 0;
for(;;) {
bfs(s);
if(level[t] < 0) return flow;
fill(all(iter), 0);
int f;
while((f = dfs(s, t, INF)) > 0) {
flow += f;
}
}
}
};
int k, n;
string str[N], col[N];
int res[N];
int in[26], want[26];
int block[N][26];
int lower[N], upper[N];
int cnt[N];
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cin >> k >> n;
k--;
rep(i, 0, k) {
cin >> str[i] >> col[i];
}
fill(res, res + n, -1);
rep(i, 0, k) {
rep(j, 0, n) {
}
}
Dinic flow(n + 26 + 3);
int s = n + 26, t = s + 1, smid = t + 1;
fill(upper, upper + 26, INF);
rep(l, 0, 26) {
rep(i, 0, k) {
int b = 0, g = 0, y = 0;
rep(j, 0, n) {
if(str[i][j] - 'a' != l) continue;
if(col[i][j] == 'B') b++;
else if(col[i][j] == 'G') g++;
else y++;
}
lower[l] = max(lower[l], g + y);
if(b) {
upper[l] = min(upper[l], g + y);
}
}
}
int sum = 0;
rep(l, 0, 26) {
// cout << char(l + 'a') << " " << lower[l] << ", " << upper[l] << endl;
assert(lower[l] <= upper[l]);
sum += lower[l];
}
assert(sum <= n);
rep(l, 0, 26) {
flow.add_edge(s, n + l, lower[l]);
if(upper[l] == INF) flow.add_edge(smid, n + l, INF);
}
flow.add_edge(s, smid, n - sum);
rep(i, 0, k) {
set<int> cs;
rep(j, 0, n) {
if(col[i][j] == 'G') {
res[j] = str[i][j] - 'a';
} else if(col[i][j] == 'B' || col[i][j] == 'Y') {
block[j][str[i][j] - 'a'] = 1;
}
}
}
rep(i, 0, n) {
flow.add_edge(i, t, 1);
if(res[i] != -1) {
flow.add_edge(n + res[i], i, 1);
} else {
rep(j, 0, 26) {
if(!block[i][j]) flow.add_edge(n + j, i, 1);
}
}
}
int f = flow.max_flow(s, t);
// cout << f << endl;
rep(i, 0, n) {
for (auto e : flow.G[i]) {
if(e.cap == 1 && e.to != t) {
res[i] = e.to - n;
}
}
}
rep(i, 0, n) cout << (char)(res[i] + 'a');
cout << '\n';
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3608kb
input:
4 5 reply YYGBB refer BBBGG puppy YYGBB
output:
upper
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
2 12 aabbccddeeff GGGYGBYYYBBB
output:
aabacbeaddaa
result:
ok
Test #3:
score: 0
Accepted
time: 1ms
memory: 4112kb
input:
25 500 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqoqqqqqqqqqqqqqqqqqqqqqqoqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjq...
output:
abcdefghijklmnaooprstuvwxyzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaoaaaaaaaa...
result:
ok
Test #4:
score: 0
Accepted
time: 1ms
memory: 4132kb
input:
24 500 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvuvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv...
output:
abcdefghijklmnoapqrstuwxyzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaapaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok
Test #5:
score: 0
Accepted
time: 1ms
memory: 4132kb
input:
23 500 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqgqqqqq...
output:
abcdefagghijklmnoprstuuuvwxyzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 4112kb
input:
22 500 ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccoccccccccccccccccccccccccccccccccccccccccccccccccfccccccccccccccccccccccccccccccccc...
output:
aabbdefffghijklmnopqrstuvwxyzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
30 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
vajyablmqpavasaarauj
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3920kb
input:
31 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
ayddusasiaafbiqvayua
result:
ok
Test #9:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
38 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
kawaasoaaaeaoaahaaal
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: 4008kb
input:
25 500 smxeetdiacxotgkpibsieraggqfjdbjxykzpiinrjxkmcczngkgpidtnacrzonzmrjsyfaiptigawddifgqxiiqibyymxvzncvifqsyfxmeodqwvwgqegpizkzfvsyywomkaviwjcasacijfbpjibvsroitinpfddjzcdkmxeisynrzipizmoyveveqwsfaqixobgrkstwtdtcfbwrvyvrgwdcmjozmitwcfitpzqdnikqbcpzyerwwigzdiczfmagmvacqxwbbiiiqrgxwvprvicjdsajinpmrrn...
output:
lxrggumnthrcukqbzoljgstkkayvmovrpqfbjjwsvrqxhhfwkqkbnmuwthsfcwfxsvlpytjbuzktdmmnykarnnanoppxrefwhejyalpyrxgcmadedkagkbnfqfyelppdcxqtendvhtlthnvyobvzoelscnuzwbymmvfhmqxrgnlpwsfjbjfxcpegegadlytajrcoksqludumuhyodsepeskdmhxvcfxjudhyzubfamwnqaohbfpgsddzkfmjhfyxtkxethardoojjzaskrdebsenhvmltvzwbxsswengqqwz...
result:
ok
Test #12:
score: 0
Accepted
time: 2ms
memory: 4012kb
input:
25 500 zzzzzzzzzzezzzzzyzzzyfzzzzzyzfzzzzzuzzzzzzzzyezezzzyzzzzzzzzzzzzzzzuzzzzzzzzfzzzzzzzyzzezfzzzzzzzzzzzzzzzzzzzzzzzfzzzzzzzzzzzzzzuzzzzzzzzzzzzzzzzzzzzuzzzzzzzzzzzyzzzzuzzzzzzzyyzzzzzzzzzzzzzzzzzfzzzzzzzzzzyzzzzyzzzzzzeezzzzzzzzzzyzzzzzzzyzezzzfefzuzzzzzzzzzzzzzuzfzzzzzzezzzfzzzzzzzzzzyuezzfzzz...
output:
qjtwjfaynbvccrdxmkyemidubqxmbidthnhseryxlaeymvbvdqgmjplbtulcjwhffjcsftewuqbxixoaeklqmfcvjiyeuthdcnfrqlwcoynrwjtxyinarlkxyfwkcjwxsqbcldqgnhuohjjbalwyasdpgxqdrbenwmyonrsplnurofmmjjfkxwoqabotkkoatikpndnkqcqxmlpggmanbphuvvttrwehopqgmkreelbdmyvrhgivicskkpqgklfpyytlsxixrlogyvqanirnpjbxexfdmsvgfiepdgrsdfgd...
result:
ok
Test #13:
score: 0
Accepted
time: 1ms
memory: 3996kb
input:
26 500 ffafffffafffffffffffffaaffaffffffffffffffffffffffffafffaffafffffffafffffffffffffffffffffffafaffffffffffafffffafffffffffafaffffffffffffffffffffaffffffffffffffffaffaffffffffffffffaffffffffffafffffafffaaffffffafafffafffffffffffffffaaffffffafffffffffffafffffffffffafffffafffffffaffffffffffafafffff...
output:
jwqgkmcwfmttddjkrgeiupgfkpfhchbnthnxduniuodldbwubupqebtfneqjtwbtbpfnjtbblwpkwpmlmjcbhtnethftfwbhspbcnjiqbhjwwqhlbijtwbifhqnunbnhulnhnemgnhrhujflhjhlplbeklebltcfuefibwgchwiujeenkfnjxitedgusfpxowsfcosffogyohkfifogrfrrcdskevggktsttffwnsowcfojjetdpkpytqcweovropxsrsrtxvkqryirsosftjpjpgipmrftgcotxitpqgbci...
result:
ok
Test #14:
score: 0
Accepted
time: 1ms
memory: 4076kb
input:
26 500 eeeeeeeeeeleleeeleeleelleelellelleeeleeeeeeeeeeeeeeeeeeeleeeeeeeleeleeeeelelleeelleeeleeeeeeeeeeeeeeeeeeleeeeeeeleeeeeellleeeeeeleleeeeeeleeeleeeeeeeeeeeeeeleeeeleeeeeeeeeeeeeellleleeeeeeeeeeelleleeeeeleleeleleeeeeeeeeeleeleeelelelleeeeeeleeeleeeeeeeeeeelleeeeeeeeeeeleeeeeleeeeleleeeeeeeellee...
output:
anwwzydgsgeaxgiaertejmxxudxcxeaeegyvertppdvrdzfksvijdayieapbbgaceyfebbbirkahxckchxvrbebwkwawkwffdrafprsghjdkbckgxrwpbkvxnhbjgkkikakjgvicihdwrnbtatpkrrdrftpceuboanckirrkadabpkbghxxihkcagspciscpxxousgwbdhynwdxshcicadawgayxygnbtgkmhrxnfjrootkjbrxbyogoojsidbhnordovpvvptbuomajjxtbstntxffimdmsmhxsvpkhntjp...
result:
ok
Test #15:
score: 0
Accepted
time: 0ms
memory: 4068kb
input:
26 500 dddddddddddkddddddddddddddddddddkdddddkddddddddkddddkddddddkddddddddkdddkddddddddddddddddddddddddddddddddddkdddddddddkdkddddddddddddddddddddddddddkdddddddddddkdkkkddddddddddddddddddddkddkddddddddddddddddddddddddddddddddddddddddddddddkdddddddddddddddddkdkdddkddkdddkddddddkdddddddddddddkddddddd...
output:
jnjcyaxvcfiqncbrbhwifbjbcrmjvvfbsxnfcidjbbjbbyysxhiaseebchnbhjnuhcubshtndhpeiuvtjhmejfnegyepxemtmtfeethicttdttcanxwhadlsvctemetayueenxucefhgjvtjvpqrrqwwvqtiquqiqddcxwimewegtpnihipfppzdpgdirnrrpfrffffmrfqcjhpjicrfgaghgftnrmeffttpjmgjcdqtxcaqjnfmcgxvcxtdqshamdvnszamdjxeigmqcmlhwunpzcamasamfnmpsfswsthc...
result:
ok
Test #16:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2 1 s B
output:
a
result:
ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
5 3 idn BBY mvh BBB cva BBG you BBB
output:
ana
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 3920kb
input:
3 2 jt BB bg BB
output:
aa
result:
ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
4 8 jzhqnmbc BBBBBBBY quubxmwq BBBBYBBB zkmtxamf BBBYYBBB
output:
ctxccccd
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3636kb
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: 3724kb
input:
13 78 imwrldcrlcooqlzmcczciijjughombdengtcurojkwqyuoqltmduvwebvyysshwjythllxhrwmcepz YYYYYYYYYYYYYYYYYBYBYYYYYYYYYYBYBYYBBYBYGYYYBBYBGBBBYYYBBYYYYYBGBYYBBYYYBBBYYY pkcwlbnthqplkuohoonvnqbouaakqdpwsyoscpqagkfhfpualsnonjnkkdtudoyvknpjgyhaqoxwak YYYYYYBYYYYYYYYYYYBYBYBBBBBBYYYYYYBYYBYBYBYYYBBBYBBBBYBBB...
output:
otyxjcrjrgweefeegfezehihkiihthziuibzjwxzkjlzoyletielmcsdpoemqmzjtpqpsrrqtcvqwy
result:
ok
Test #22:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
38 99 veadnsajqcnbynqxawytaccryhlefhbhusmjhplsemwsagxkiryxfwrsarpmhsrpikievjpafqszuqklxetizrtlwxzxyelalsr YYYYYBYYYGYYYYYYGYYYYYYBYYYYYYYYYBYYBGYBYYYBYYYYGBGBYYBBYBYYBBBYYBYYYGYBYYBYYYBBBYYGYBYBYBYBBBBBBBB njkybjdzyrkufafkessouzzsbkyimahkltsqqpngkgghqodbebxahavilwxmbmkqkucahpokaktlylhnmyjyxwbmrqhepj...
output:
opuemvpfvcqpuywvadnutktbwejvzqybcwebcpgegcfpnmnnimyjaztcoqgvxuzgaihzejzxynptlijoacziataqghhtlqwfjdz
result:
ok
Test #23:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
4 113 suwodmkfmlkafcxpdgicvnrluhqkmulfirwtawvjxzzufmxruiiezmyebjlpxkzujfxjosfdqlbwfqtyripgsshmclhmtsosukwlgnzqvtbygnlau YYYYYYYYYYYYYYYYYYYYYYYYYYYYYBYYYYYYYYYYYYBBYGYYBYYYBBYGYYGYYYGBYBBBYYBYYYYYGYYYBYYYBBBBYYBBYBYBBYYBYYBBYYYYYYBYB qpizotexiviavifrwmnhmqgxvxdueohjcyrzsinuuuhpbknejcjupvqhtnlsssylqg...
output:
aaiabbbbccccddddeeeeeaefffdfggggghiiijiijjkkkmkkalllllmemmlnnnzooooopqppppqqfrsrsrvtgtuuttvvvvvvwwxwwwxxxyyzyaaca
result:
ok
Test #24:
score: 0
Accepted
time: 1ms
memory: 4084kb
input:
102 377 gocqhgzrtqkevpckmjqhgbhpxtoliiukyxibpizzagbxroteetcwzpgzybsaxrhvudaxrrzjhisrbumzvaaaokwzpekgczhkbjqlgrdijvecheemmcoieoyhsyhooaxzmronnoovfdwelqbhlrqovoiubzbdixkvzujlsadyysnxcmvcxcsayqjyidlignyemacoyyuwjvpkitgsyjuzjyjtgxzamytxssxbocvprlhksvhegfjuldompxslryoubylyxzaospsxecpctamowqxxngbjtvoskmhv...
output:
fzhbpvvtfsjzghjjvoanwlhesznrmaqdkvrmnkxxcuaxtenfaqpctuywoclxzlgiscpcylgmjmtltvcjmmohwaiihbsonoraefpauuszkmewlodhhorizaizitonwailoikleknwtlngirnvxeujutmnszyjltnniospmismtvvtnltapcyfmjwhhabewciomfutgmqufzdvregkfbllubjmwxvqjiaoicgvslnzmcykvxszfjqevigtekrfbmcihthffbubmertrhniybzfxpjdpyejmvnmyvzyribcyhkw...
result:
ok
Test #25:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
84 372 esizksnrmnyidougizdjmkksweafwdywugqdkisbdjaxfjghvoiwxhsmntnkyrimjajlspiqfomzyvpxdpispoveqzrcpfyntfxpcllewbdftkcwpjodchqeyfavuainqvggspnirpjpdcdcljmwzfkbrzleubsvxoeyzwzmmkrbiujgtcwpkeqtenikfnwqspnahiqwdxarppclogyrdpmqwuhqrdhgjfvjxifuksfhpkxjbmywimtettgrtgexekpaacpvtgorcljdnodtdudsatgszvvkpxkhh...
output:
priirafhcttvbcwmukqupwazyrzdryqixzkfnnamuzjifxtwhryteowgwdtrygfvyaxpjzvolkimwxfqpqzevqjmhzezhvtzyowazevweuzictoaxwabyiknexmxymtqvfcvysakdlegsotvhbzrrfcimfazueugoqtrdbcqrkxdtqatexonjtkeargeblphfcxscjdcaqzatcdksezpuwgvunnyymffvdfdpwrhfmvpawqoafeujyguhlelzcfuhnmgqrsxxzfeaxpyvtjxthrqevetoixfmdmzjvkwxixn...
result:
ok
Test #26:
score: 0
Accepted
time: 1ms
memory: 4068kb
input:
120 341 qddkzllppvsamvuytcyvfmcgdsowlmasqwecvmbfkfgbmiluxdghcvyfiyynhobehlxsoslwjoxkkjmmcjjyjhuntirpeszmmsfcdduerkrzasnxsczqzcyunsqaalvjkkdrksdjhgojrkljxzflsdljjlbjrhjhhblrqhgtljjieelickdyszvkcskljuykzcpeuttphlonwanfndlkqcbgkjvocnwugyyxxbaccwpyrmyaapkciubysrjvemksuamhojymppamhhvvockwocvvjdmmssedjuzn...
output:
tnraljmrauiwhqddhuqxevuwjktugbqedadidsxnduvdoawjznplzlwxkgvfwyrcvyvkcliahpquktdvezcoeoxlmjrflyvrvynqmchlgbxnhxxlmdqdnsugabizimrirmzwdyewmjojiaifcbbrkivmfjuynkrwmctmonrblnataybzyyynwojbqozhdbpyxejgrdsknwzulbicasbwdjmwylxjawtrhgawavmilelwmoomtvlohtdsorjlixtcfedwfabomegtndzvhhfyizcnhiacpvicuwrkmiccrwdk...
result:
ok
Test #27:
score: 0
Accepted
time: 6ms
memory: 4180kb
input:
500 500 uzkbwmwxenfvjjmbfpvgdgkfcrtjgftkcsdhgxlqcqyrtzqggauozihovqxyepxlqsndunqfvrwqhjszvzmttihgcwvyxugzbkxjwfqvvpakmrkohzrutlbfludsfkzmjrzkqsnstnxnlieshrqfqqfgttcsdinuvqzyueqhhtknnbnhstvabfyfpwszpkwvfzjlfnzgnlzzdeqcemnvcrbbxytfhajyvmaxfmczviyqafmkwmmrelmpmzcbwjltbejfuyizjyggmhkgmuhjijtsrfwzmmmkqieh...
output:
xtkupmikoalqczppaqstzuiezbugnmrfezofiejbxedkwmhldzkqactqmmcsuwmjddllfifimjtratgnnerahiklscixwmfrciloflzwalrxbtfglaouusctqbsevtkhaqtcqqothbasjyihutvpkdgaweyploaqfzsuqjotuxviounxiapvtcfovxyeutvfmgvhyzrcilfuxnappehaifxawqghytxvrylxyxuxkzqmoprdphfgaidifgmdfyvzyzvaxlzxfqbithwwglczjhxuoobaxsotlgfhkdauudoi...
result:
ok
Test #28:
score: 0
Accepted
time: 0ms
memory: 4276kb
input:
2 500 cjvtcyhtzxnkypncxcydztkdxkosxdtlxzaetauygumxwzgkqittrtirkgnjuwanpdokgrbvwwlxxmivnzgnfelcxzmggmfwrtuexpxxyxuniivgwiykbzhnfbhgtoizuumgvoazbkcgzyhtamdsnnuejfwgmgbffdpnaeulrjfiflxrfqmkxkqkfwqcylsieetenjwbgmzewvgownfiylsvjzijpgrdfozciarqzqckecrwevmdtilipcerlcmbvogajnlfiwwcfurfxgtwbavfogarxcovbrwvlo...
output:
aaaaayaaaaaaapaaaaabbbbbbbbbbbbbbbbbbcccccccccccccccccccccdddddddeddddddeeeeeeeeeeafafffffffffgfffffffgggggggighggggggggggghgghhhhhghhhhhaaaaiiiiiiiiiiiiiiijjjjjjpjjjjjjjakkkkkkkklklklkkkkkmlllllllllllllllmmmmmmmmlmmjmmmmmannnnnnnnnznnnnnnooooooiooooooooppppppjppppppqqqqqqqqqqqrrrrrsrrrrrsrrrrrsrrrr...
result:
ok
Test #29:
score: 0
Accepted
time: 1ms
memory: 3980kb
input:
10 500 ltzpvgzioqzjaorwvcfawsuxrpiaxelpvjvbzkmhmukkanhddeuwnwfbqeiccwqiqsntudhfrrxrwjmphcocxtzbljjcdjmksdvnoklkzvljhmyxsjgzsmuezdeieobpeojmxphuhbkxuqvtokknihunzjztuhuqurethoyiiamwzqppwuiljeygsrclivocqngmwgqeghfwtwunuyvcxcjjufbxwhmijurlgodhscoalsqbdxnizkkjtmqfaynndanjjfzldqukrpmqnsynrvoncnqymegdgvvga...
output:
wzwvwwwgowkcwwwavwwwxaaaxakbkaabbaaccwvxbcbbbrhbbbbbbbccqccxkudccxccccmiexexxaxpvrxxzxxxxeevebddddeddddxddddpeeeseefffffkofffzfffyyfqgyygshgoqhgghnggigggjybdibighigyhgghghhhhwhhhyyyizyyiiizqtiiiniziizzizjijjzjjjkkkkkkkkzmmbzlzzmzallglmzlssbzlrllllvulnyxzlklgxddplmrwmzinnkmzmmpnanmzmlkmbivzmnsmnmzjam...
result:
ok
Test #30:
score: 0
Accepted
time: 1ms
memory: 4120kb
input:
20 500 gidefqbkbebgnvcgrjfmkuqtipyqlpvrjndoddvuhkntkznjdkfvggaoavkllvbigfvdafoxziprpozvhukhwheyasblhleoxfxwwruvsilcdrttxcbqfnvplqtemgsoftmsnzrgaikbqmyrbykhtpbmrfpgvjiqszkdapksfhbdkmdawcgonddqgzasjtvrjbgkfwxyopyxhprkrsaoxfblohlqyeenggeusnfvgkxalqzhziuckhyhhmefhjpvfjzolfowjvjeklnxgmymaubfcuineyiuzlzpb...
output:
qmettlvoloanhlqqsssmsvgusvbazsoassdawbiusvssvtonuwvmussfpcubayumalraofaauctmamuubiaeuqwaxvcubwacwujzwwbnibgzfuvacgcbhdqbwjcuhbwivkwcahckydzwwctnblienxsvwwtakxgxxvzxckfggzxkfjexxeaxfbsfffepezwenoikjpsaeeigmgwrfegfrxezfffjzfhbyiwyyhriisxgkegghgiwgjnkcgkgghbmpghxihgjqqmdigszzecigljqhhykhhufaholijrziybh...
result:
ok
Test #31:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
40 500 hgrkbariyienlarbtwpgttrlmwgdwjisgwtuelybkqyzibmerddzhxpkrikkdglakynfmvzntqkldilwlredsuwiyhvfmdfymethhuqztlwzlsjsoznrcemnwutebgioqndeywylttipnfkjzwrykcsmyeruqzryjuhcyirlakfmzwyjlisxtpdibravckhsunbfdczcfjcdnjcdkhqticcslsqmbldpvatkvnlgcnjzzpsjgoxbdqaqogdiqwngjjyaxcurpfcotfthvlhnyqvkxalealplywzbj...
output:
zdipaunsvfzmklwbcjgjdivgermkgnfecegqnousywqrmgvrokvpsaeengvtudxypqxpggpowrtgkhwssbyyuyqdlzshupeugvycdrzuukyevtbmowkxhmafrgsysuaxqiuuxjzicqxkxoejcxslkxfuboqwwaxgbvviarqgrobotjiezcpamgmlmaczeaqvaqmfdomzjmlztjfiinugnxciiqcvnlhmmbcdqoxbzvwenibboacdrubnmipvbqgygwbzavwztlbkfyjsjyvpxqluxwbuflqilbkflredekyt...
result:
ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2 10 dkzttcuhkf BYBYBYBBBB
output:
ctkaaaaaaa
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
4 10 hzyqaqgudo YBYBYBBYBY drzekuoozp BBBBBYYBBB ydmoszopir YBBYBBBBBB
output:
ahouyaaaaa
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
8 10 xpcbenntvx BBYBBBBYYB guunnaqbzh YBBBBBYBBB vkgjtzyejd YBYBYBYBBB bmlrgczqhc BBBYYYBYBY gjeqpkftzq YBBYBBYYBB ytqggdmtoy YYYYBBBBBB okyanrydin BBYBBYBBBB
output:
ccftqgrvyf
result:
ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
10 10 lvqefvmhvh BBYYYBBBBB hwzwczqwzo BBYBYBYBBB ywzwszxeyd BBYBBBBYBB pxryhjeyhe YBBBBBYBBB fpplflfrid YYBBBBBBYB wffgroprrh BYBBBBYBBB atnazpsxkj BBYBYYBBYB wjftdvgbca BBYBBBBBYB lxejbsshfq BBYBBBBBYY
output:
ceifknzpqc
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
2 20 gvmxjisdtqdzqlcythxc BYBBBBBBYBBBBYBYYYBB
output:
hlttvyaaaaaaaaaaaaaa
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
4 20 juwgnsochomtjjrwkxzx BBYBBYYBYYYYBBYBBYBB xcfresnspwhbnpufpzut YBYYYYBBBYYYBBBBBBBY nicdnycdwkcwxkzlexij BYBYBYBBYBBBYBBBYBBB
output:
bdefhimoorsxtwyaaaaa
result:
ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
8 20 gfbhjraeqpkknoxynzor YBBYYYYYBYBBYYBBBYBB eoqxnsiomjhzyechxzfk YYBBYYBBYYYYBBBBBBBB izclftrifyoacpdwwaxi BYBBBBYBBBYYBYYYBYBB vkmnjqckgcojyuccmzsy YBYYYBBBYBYYBYBBBYYB kotrkwcofjzhzgwiegsj BYBYBYBBBYYYBYBBYBYY kuoenzkgqkxjkenvaywp BYYYYYBYBBBYBBBYYBYY ntfjwmseryvxlgimrynx YBBYYYYYYBYBBYBBBBBB
output:
aadgehjjnmporsuzvwaa
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
10 20 fgyncfbwipgvfxmohdbo BBYYYBYYYYBBBBBBYYBB icbhpbqvluuvwljfzrci YYYYYBYBBYYBYBBBYYBB cushsnrenivjfzblmwbz YYBYBYYYBYBBBYYBBYBY iqfqmazradptgidhmewe YYBBBYYYBYYYBBBYBYYB kebuhncdbrmdpxqmizic YYYYYYYYBYBBYBYBYYBB vmccbyguslsftfilufvg BBYBYYBYBBBBYBYBYBBB dvrpdiwvdltezikdbpvv YBYYBYYBBBYYYBYBYBBB ...
output:
zbdeichkpnqrutuwayzh
result:
ok
Test #40:
score: 0
Accepted
time: 1ms
memory: 4120kb
input:
2 500 gxnlcmqfsmxkzleyreubambwtiyuisiplwrjastyivijshzmfuyjqbqwmtiixxwivmqxpbuboruzaaapaxrllfbonnouzwmjuouvzcoyxytfxmhtfcvsbjvnltirhojtxhtdiqasoajfhrcinjrkzstidvhhdwynweaacmuhctyzeelatwnropiqifxsgxntfycvjrhwpmzeytliurapssrixkjndjzwtjonqzmhhtqyqjacafxkwfrnvjyjcswxrkmhstxgrdaxacuqiqtmdwuiuwzjjekzsaycgc...
output:
aaaaaaaaaaaaaaaaaaaabaaaaaabbbbbbbbbbbbbbbbcccccccccccccccccdddddddddddddddeeeeeeeeeeeeefffffffffffffffgggggggggghhhhhhhhhhhihhhhihhhiiiiiiiiiijiiiiiijjjjjjjjjjjjjjkkkkkkkkkkkkkkkkkkklllllllllllllmmmmmnmmmmmmmmmmmmmmmmmmnnnnnnnonnnnnnnnnoooooooooooopppppppppppppqqqqqqqqqrqrqqqqqqqqqrrrrrrrrrrrssssss...
result:
ok
Test #41:
score: 0
Accepted
time: 1ms
memory: 4128kb
input:
7 500 kucxpooswpgshqxdswdpxnonzujecioriraskzligwznnduirvonmjmozyxkotblntnzmsgacdjxsrelfbcwhffnqsshpdnuiyvekpkkzhfqadrnhymofwpahuefzyauxunwxjsexozlkauixivyrdrckaxiicawzsvqshnexswpqlnwpfwqxfsqjgefxylqizfouiqmbtkxrjcdpjfhetrphazpatrwkbikmswrsjmuvlmkuhfvzvfpqawtkgtmykusaspvinyqteptvvfgynrehmekerkbpgcbgf...
output:
bbaaaaabaaaaaaabaaabcbbbbbbbbbbbccccccccdccccccccccccedddddedddgdgedddddeedeeefeheeeegeeeeeeeeggfgffffffffgffggfffggggggggggghihhhhhhhjhhhjhhihhihiiiiiiiiijjiiiiiiiijjjjjkkjjjjkjjllklklkkkkkkkkkkklkkklkmklllllllllllllmlllmmmmmmmnmmmnmnmmnnmmmmmmmmmnnpnnonoonnnnoopooooooopooppooooopppppppqppprppppqqq...
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 4068kb
input:
8 500 zsuejmayajrezxaeoppddvtufobaqqrnadgiydzodggiskvrvfyassjbdhbufhmxctpfdqvhykrkqjjltksstdnskjfspencdneizkxxtfdheyhvmnsjdbrjusilipmplxvnfxthruxwdukolyqivyaufoewysvppuqdcdmvwdwgtaqejnfmgtylhgrfcjqagvotoosbisnibzntaetxvemftcocguvgindrppzlooryrqicloefmktmimfqyxlletbymenpljkjybhyfuahardknwfejcojkxyzsl...
output:
aacbaababaaabacaaaaaaaaabbcbcbbccbbbbcbbbccccecdcdcdcccccccccddcddddeededddeeddegeeeeeeefegeffeeeegeeffffgffffffffffgffhgggggggghgggihggghgghgggihhhhhhhkiijiiiiiiiiijiiijkijiijkjjjjjkjjkkkkkkllkkkkmkkkkkllkkkkmlmmlnlmmlnlllmlllllmmmmmmmnonnqnnnooonnnnnonnoononnnoopooooooooopppppppqppqqpppppqppppqpqp...
result:
ok
Test #43:
score: 0
Accepted
time: 0ms
memory: 4128kb
input:
10 500 fwpisiecngmypltgnpgwungiorybsqujrjynxduhbxkzzcpmprjkmcngffwriwlauogonaytiewzmvhmfkbqzbhvbuzaxgmrzwhznemrkgkqcfcxznjgqfxvivnzxkttungprndxzumatgitszsuhxrbxiyblepjljdwccbmodtyikdewbqekqnyrdpveilrjuidvbxmidaudrahboegnxxojlllcijvhewxbqhckkdisyyoieqnybydwpyiupduxdxdcbsiflmqomhorvpximunuvgeqrpojynfz...
output:
aaaaabbbaaaababbdbbdbacacacdcacacaacaccccdcccdcccccccdddcccddddeeefffeeeegeeeefeeeeefeeeeffggfgffffffgffghfgfgffffghhgggghggggihhhhhhihhiiiiiikiiiiiijiimljjjjmkjkkkjkkjjjmjjjjjjjjjjljkljjjlkmkkkmkkkkkkkllkkkllllmlmlllmmmllllllmolmllmlllmmmmmmmmpqnnnoonnnprnnnonnnonnnnpnnqnonnnooopqoqoooqpoooppppppqp...
result:
ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
50 500 rzxpevxmcsvfyfmnmokxtsjtkisntufznueipsounknjbdgoieqoeobnfuncfrokfgdsdujxvtluensnrnyosfsywmltfikmpgofyyutxgxltspvwnqnfvgeolxirwbvvwgwwbxbwbbswrefaklrdmdlzgxpltvbucwfgrpggpobkapydjkzbgfarvqfzssyeepxzesalnpbnuastjecnatiljloelrojistoqxxrwdiehnwbubijlcsgserxmlbbchlhqlndtvmbaztvhspfxdyfuodupczzusgi...
output:
wnwdycwynzjwigzcxxyahvbxzchcipqvzdyaaatcbajzxyyzaacbddchqyapbbjcikemazaazbdbaafzaczbradzbbzdazefjmeecaghdclcicadgcgeaaecehlsgekfeddeogegejjhghihzcugckfigdektdgdefhriegjrfikghekfefizokkkehlhffvyjfpknkrjgfhhjlfnhskjzqpsmffinitlnijzklikiknniinivnjiijojmyowusknnorstkzqpmjtolltvmtmeokpmkmkmolmmoporvpkkqk...
result:
ok
Test #45:
score: 0
Accepted
time: 2ms
memory: 3828kb
input:
160 500 hayqlkswaloyrwgikgdxyqsorgjgsohxuyrlfdgptnogrfzfrcmkhyvnpohpgtjhhlalckgubhvbbtinzpykjfayxwqctbmbjdtguonvdihewfxphkfngblmtlxiidbpxnxeiswxfrvbflvisrvxkqqeqzinhgobjfbxhbtfageuinrzyqzhrsqttlmfxgqsdaxkyiajiitwnxnlqggrncbzwrzhtctcunpkhdlqkqtkyfvcuwqftujpufwgeqkrzdfngmshdiwhobeieunukpjgvbdwhjtkaccm...
output:
mjpyvrzpguatqaxutfeenauznkxsfgqfrfdaoydwqimxssimpofnqfailvbgkmearxhgxjvtluftknckiwaeyuedbogewrnlfyzatjgtgrpvjnehxhvwkcydnkwnvxgbifqobxxchmltkwyqpgaanlyunugwtxmayycilokxdtzhcwgpmleawmsvacdywnpnpevqwpkyssvakkmpmslqmgucrzrqoufaausspnahpwkcvrfxhbwcccsbnntbfpstmaesxspfwtseyluftmrkcmifuofjnnhmwfrbveoudsgx...
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
3 2 qf GB fq BG
output:
result:
ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
2 25 mzopyxgqdtsjvueklciwbrhna BBBBBBBBBBBBBBBBBBBBBBBBB
output:
fffffffffffffffffffffffff
result:
ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
2 25 jagfzkndilpxwsbrqytcvuhem BBBBBBBBBBBBBBBBBBBBBBBBB
output:
ooooooooooooooooooooooooo
result:
ok
Test #49:
score: 0
Accepted
time: 1ms
memory: 3708kb
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: 3904kb
input:
2 20 ynjmhdwofqxsaubvlktc BBBBBBBBBBBBBBBBBBBB
output:
eeeeeeeeeeeeeeeeeeee
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3672kb
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: 3680kb
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: 3908kb
input:
3 3 abc GBY daf BYB
output:
aca
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3932kb
input:
3 3 abc GBY daf YYB
output:
acd
result:
ok
Test #55:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
4 4 bcda YYYY cdab YYYY dabc YYYY
output:
abcd
result:
ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2 4 aabb YBBB
output:
ccac
result:
ok
Test #57:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
2 14 welcometonwerc GGGGGGGGGGGGGG
output:
welcometonwerc
result:
ok
Test #58:
score: 0
Accepted
time: 0ms
memory: 3916kb
input:
2 10 aaaaaaaaab YBBBBBBBBY
output:
bbbbbbbbba
result:
ok
Test #59:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
10 40 nvolvefindingafeasibleflowthroughaflowne YBGYBYYGYBYBBYBYYYYYBBBBYYYYYGYBBBBGYBBB tworkthatobtainsthemaximumpossibleflowra YYGYBYYYYYYBYYYYBBYYBYYYYYYYBBYBYYYGYBYB tethemaximumflowproblemcanbeseenasaspeci YYYYYYYYYYYYYYYYYYYYYBYBYYBBYBBYBBBBYBBG alcaseofmorecomplexnetworkflowproblemssu YYBYBYY...
output:
inobtamiuxwyintheilimaopmimfpooorrpletsi
result:
ok
Test #60:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
20 20 maximumflowproblemsi BYBYBBGBBYBYYYBBGBBY nvolvefindingafeasib YBGBBYBGYBYBBYBBBBYB leflowthroughaflowne BYBBYBYYYYBBBYBBYBYB tworkthatobtainsthem YBGYBYYYYYBBBYYBBBYY aximumpossibleflowra YBYYBBYYBBYBBYBBYBGB tethemaximumflowprob YYYYBYYBYBBBBBYBYYYB lemcanbeseenasaspeci BYYBYYBBBBBYBBBBYBBY ...
output:
inoptimizationtheory
result:
ok
Test #61:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
2 10 mympqinaqs YYYYYYYYYY
output:
ainmmpqqsy
result:
ok
Test #62:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
5 10 yoqojkyfrq YYYYYYYYYY yoqyroqfkj YYYYYYYYYY oqyykoqrjf YYYYYYYYYY rqkjyqooyf YYYYYYYYYY
output:
fyokorjqqy
result:
ok
Test #63:
score: 0
Accepted
time: 0ms
memory: 3700kb
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: 0ms
memory: 3868kb
input:
2 20 lfyzddchsnrcfbfhpxkh YYYYYYYYYYYYYYYYYYYY
output:
bccdffdfhhhklnprsyxz
result:
ok
Test #65:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
5 20 bhczdehumywygnhaeeka YYYYYYYYYYYYYYYYYYYY ezgwuhykcbaehyhednam YYYYYYYYYYYYYYYYYYYY kdzyancbeuyhhmghaeew YYYYYYYYYYYYYYYYYYYY emhkzewgdhbhnyauacey YYYYYYYYYYYYYYYYYYYY
output:
aabcedeegkhmuhnwhyyz
result:
ok
Test #66:
score: 0
Accepted
time: 0ms
memory: 3940kb
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: 0ms
memory: 3736kb
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: 0ms
memory: 3880kb
input:
2 200 kjgxibzaqovyhfahtzepmneqlrtyqskqjclybnijqdnnaqjwqpcdyhqcivkhiamwnnnrekynlwdhhtwoluuxuivncktinkkmgnavexykunaefwtdtccjdvnjrsshktuiqmugothxrrkrxfbzhzawqdvcnjwfbemdjwmsozfyialxnxbqhndzyhoskwmuamcdsrzxttte YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
zaaaaaabaabbbbccccccccdddddddddeeeeeeefffffggghhhhhhhihhhhiijiiiiijjjjjjjkkkkkkkkkkklllllmmmmmmnmmnnnnnnnonnnnnnnnooooppqqqqqqqqrqqqrrrrssrsrssstttttttttttuuuuuuuvvvvvvwwwwwwwwwxxxxxxxxyyyyyyyyzazzzzz
result:
ok
Test #69:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
5 200 sfcjckdgmwmnnlqezqgivfbrgkwmqronyyojlpqwajmjmgjhtlnsjcmsysflrpmrluakngchrsuncwwbqmlpavprqyvhwplrtqhxpzgtxixarzjsvrfquqemtgfryynowgowzyiyxxjarzfaevasxohhqwsleahueveixdjlybnsxnsbtufoiihtstlhczsczzazjwou YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
zzzaaaaaaczzbbccccccddeeeeeefffffffggggghggghhhihhhhhiiiiijkjjjjjjjljjkkmlllllllmlmlmnmmmmmnnnnnnnnoqooooooppppppqqrqrqrqqqqqrrrrrrrrssssststsssstststtutuuuuuvvwwvvvvwwwwxwywwwxxxxxxxyayyyyyyyaabbzzzz
result:
ok
Test #70:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
20 200 krxqaxppwikekhvmjispucbtwyennwxkqsvjhwpvcvtqgemfpnvsjoppwvqbyslciwosyqjircnsrpmicagujcstajnwuztjpyjxrwbjpelhukuwynyfjhfoxerfvnotzxgqrrckgsjbtnfmhjtpqcteosfpfjgesbwrxvrtdxhrnrdzlnlnivfwrsxkpvsqkwuyfqgh YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY...
output:
aawzcbbbdbdccecgceecceceefgeghffgfhfggfhfffhhhkjhlikiiikliilklnkmmnumomojnjookopkpjknpnrjqjjpjpnqnnjjnpprjjjrnpntrqpqqupsqpsqqtppqstubtsurrsrrurusrrxtrswtwvvstststvyyvsvwxsvwvvwwyvyyvxyxwxxxwxwaxwyzzw
result:
ok
Test #71:
score: 0
Accepted
time: 1ms
memory: 4076kb
input:
2 500 blgymzrpzujbijgjxyuadmopdmktpzaovnuecztkbzxgzyvisyljaevyfufxyhyqiqdueuswizdfbebeofpeixebkcoylfbfnbckcmafvwcppobihsmxnvhrsacfeozhlqloqithcbvguyslmdqksinnirkziaicjfrpxhceqgxsbiowjixmoflvtvuquoidzfpusisagkefodwcsvqdwvnfhfygrrobkelcsxdaoddqtmvgxkhnouoqizqwvvudriluplgazarubzbsomyqcaycjjwmyqsmabeisi...
output:
aaaaaaaaaaaaaaaaaaabaabbbbbbbbbbbbbbbbbbcbccccccccccccccccccccddddedddddddeddddddddddddeeeeeeeeeeeeeeeeeeefffffffffffffffffgfgggggggggggggghggggghhhhhhhhhhhhhhiiiiiiiiiiiiiijiiijiiiiiiiiiiiijiijjjjjjjjjjjjjjjjjjkkkkkkkkkkkkklkmllllllllllllllmmmmmmmmmmmmmmmmmmnnnnnnnnnnooopooooooooooooooooooooooppppp...
result:
ok
Test #72:
score: 0
Accepted
time: 1ms
memory: 4364kb
input:
3 500 fndjpiklrigzxvhtgavgqxjhgclbcusixstqcvopskxdxeaksfcfrlkzdsqjddqnijuqqmxzafjbljcqivkozdwwyjzysrkkpxrymnuavmcjemoiaayfnldynfkjgzzlcywayfwtlcaicnawiagrmlhwrjcdvxrbxavfjqwkejfaahukajyupcyulvnbpqewqooacxbryistjptowptrpiclmkgdpnchtrgijujimyloxgxpxqqhhnidbeiasewjkydmpkecplkxlsyzbsyheqeigyyyujupwdjqzg...
output:
aaaaaaaaaaaaaaaaabbaaaaaaabcdbbbbbbcbbbbbbccccccccdccccceccceeddddddddddddddddddeeeeeeeeeeeeeeffgfffffffffffffffggggggghgggghggggggggghhhhhhhhhhhhiiiiijiiiiiiiiiiiiiiiiiijjjjjjjkkjjjjkjjjjjjjjjjjkkkkkkkkklkkkkkkkkklmlllllllllllllllllmmlllmmmmmmmmmmmmnnnnnnonnnnnnnnnnnnnoooooooooooooopppqppqppppppppp...
result:
ok
Test #73:
score: 0
Accepted
time: 1ms
memory: 4112kb
input:
10 500 bupnuqzdcpbbxnmovthxvephnapgnxykdqpefrnsxlalrhtxogfxlpfrcxjmocibrokuejfvalrapnhvzuabrhjfdcnnnaygwtkgoenbewrtlzzdhxmzndkphodrcjbcyivsaxbugccvkqzbygufcpqljzopxafwzyxceegfdqtqqufvtptbllewhlraeotvtdiwnjnbkedfhsfpvrydnerajvkwidyhptbvtstjbwqucskqlecziliyqqrxvahlbahjzlxebblyfmjkxpuyitksjtqsxkmzatzur...
output:
yyzzaacaeacdacabaabacbaacbabaaaabbcaaabacbbaacbbcababbaabbccbdccbbbbbgcddecccdcccddeffedeedefddedededffeddedeededdeedegefeffffffgfhggffffgifffffghhiggggghggggghhhhhhkhjhihhihhhhhhiiiiiiijjiijkkjjjkkjjjljjjjljjjjjkkkkkkllklmkkkkkkkllllmllmlmmllllmllmllllllnnnnnnonpnnnonnnnonooonnnponooooopoopppprpqpp...
result:
ok
Test #74:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
80 500 dvbyutdpoihytugjpvxnzcreuwneaqokypvmieezkevfpngozhxowvwbavznhmbjosgnvskifmpbaflkoxivossyqaoxkvvioupzyygerlqpntmxkctrcodkogiqrvnhkczcdhbnvihopmchnnyayletjmvsflwdmozsgrwkqdijrjzrodqqadsnsmzulhumosmwmohoibrcqswjaohlzmjpjnwifwqunludixjhhupgettgefwzcvygiycdtrenhbydhaopdrzogaadrqwiqiogounuhozeifmox...
output:
tfeoqwjveqvevajzbdsqvioyrxgqczsezzctrhkypwwcgqcicoiylhfnldbswiwviwiajcmbelzpfmagtdhoidejrvxalpdlwzocanhpbooifdqoihqfdzzukvjoniucfvejigklikgkqsaolmeofjyrblombwiiycxotibmghhvhqoxjgvvokfmoeybzceobyhvogyaftoqxyepphriudgfwwggkdcqcboajznsqdesfhgdddyamtsagrjuhcfswrckkqafhkjdrioyhgjfvajpahcrxcoppqhvhygxwoyb...
result:
ok
Test #75:
score: 0
Accepted
time: 3ms
memory: 4232kb
input:
500 500 dvbyutdpoihytugjpvxnzcreuwneaqokypvmieezkevfpngozhxowvwbavznhmbjosgnvskifmpbaflkoxivossyqaoxkvvioupzyygerlqpntmxkctrcodkogiqrvnhkczcdhbnvihopmchnnyayletjmvsflwdmozsgrwkqdijrjzrodqqadsnsmzulhumosmwmohoibrcqswjaohlzmjpjnwifwqunludixjhhupgettgefwzcvygiycdtrenhbydhaopdrzogaadrqwiqiogounuhozeifmo...
output:
tfeoqwjveqvevahzjdtqvooypagqdzsezqctrhbywwbsshcinoiymhqzqdbswiwvidiekcmselzpgmagtlhoidgjrdxmppnnfzonmshploaigdwoihvfduzxkvnoniucnvrxigpsikgkcskolvxofjyrblomkwiiyuxotibmghhwhqoxzgvvoqjmojjbzcxoejhvwidfvtoqxyepphrivngrwfggxdmqcwoaxcnsqdgsfheqbdymqutagrmuyclewsvkzqrfhmjdriozizefvvrpamrrxcofpqevwykehoyb...
result:
ok
Test #76:
score: 0
Accepted
time: 0ms
memory: 3936kb
input:
2 20 xztanpyxqtcnpuzqqyoq BBBGBBBBBBGBBBBBBBBB
output:
acaaaaaaaacaaaaaaaaa
result:
ok
Test #77:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
10 20 opwtpwvtwxouoyqsotzp BBBBBBBBBBBBBBBBBBBB gzynqjtxzqtzdwupyqxw GBBBBGBBBBBBGBBBBBBB nqrqzyuqqtqoquynuxwo BBBBBBBBBBBBBBBBBBBB rovrxornrwtoymtnnrpu BBBBBBBBBBBBBGBBBBBB wdxtnppzptvzzuzlvqrr BGBBBBBBBBBBBBBGBBBB uusqpvwtntwxxxdryuqn BBBBBBBBBBBBBBGBBBBB nxxnnpzsztyndvxlrron BBBBBBBBBBBBGBBGBBBB ...
output:
gdjlmjaaaaaadmdlaaaa
result:
ok
Test #78:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
15 20 woourpqrstqycprorzzw BBBBBBBBBBBBGBBBBBBB ypswlxvouotyzsqrpxpo BBBBGBBBBBBBBBBBBBBB rvporyxupxswysrrzqvd BBBBBBBBBBBBBBBBBBBG trrqqnpspvprxzzwvszp BBBBBBBBBBBBBBBBBBBB vyoynttqpvwonpxopsor BBBBBBBBBBBBBBBBBBBB tyuyqntwonprcnngorwp BBBBBBBBBBBBGBBGBBBB xyptttooymynxuvspuqz BBBBBBBBBGBBBBBBBBBB ...
output:
daafljcgmmaacaagaaad
result:
ok
Test #79:
score: 0
Accepted
time: 0ms
memory: 3916kb
input:
20 20 syzuzqoytozsurzpsono BBBBBBBBBBBBBBBBBBBB wesrqwxttsyosvbtsqqq BGBBBBBBBBBBBBGBBBBB osrvrpppwpqynwotpffv BBBBBBBBBBBBBBBBBGGB vwvrywzppxslxsunfuxy BBBBBBBBBBBGBBBBGBBB nwurxytqswvputotrvsz BBBBBBBBBBBBBBBBBBBB przuyqqnkwuztupqptfm BBBBBBBBGBBBBBBBBBGG lrqpyysqxnwvjovffosm GBBBBBBBBBBBGBBGGBBG ...
output:
lebddbhhkffljmbffffm
result:
ok
Test #80:
score: 0
Accepted
time: 1ms
memory: 4352kb
input:
2 500 zxwpopwryvxwuszirrorrqtsnwrwuoonyqsruqtpvwtxmnzxtsrivsnttuxvzjsywsqspssqqvusyqoppwwzzzrwsxwowyznnnttxvgtrptuavzxotqqsuovspzzvxrvqqqvnpqnypeqqwyospooqnuzxtxypyutvoernuctyqzvqsdwpvuunrsypvzvuqqsvqqoxuuznqvvxusynpnuqwzrnosxqslunwvxooyzzsqrvzupyprkvqntnwwowxnsrtnsvszzsxsqysnnsrnwwwqzvyxowoinppbqxy...
output:
abcccdeeeefffggighhiiiiijjkllmaaaaaaaaaaaaaamaaaaaaiaaaaaaaaajaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaagaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaeaaacaaaaaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalaaaaaaaaaaaaaaaaaaaakaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaiaaabaaaaaaaaa...
result:
ok
Test #81:
score: 0
Accepted
time: 1ms
memory: 4012kb
input:
10 500 epjvurrwqwslokprtxxnoqpvozzqynewutfwopypqopcxvswnlwavyotqvzfovuvznzuttpztqtvnnysqzrpszbrtwxwvlzqzofwtwrprruwoqzruxunyszooyvzpfwoqrsurpzeozxwuznvvuyorztufnvvuuwxpzpxtusyzwpvwqvmxytssnqsupxxyoxrpqttwwwnkqyyzppuyxqodqsywlrunuxsorzorpqurwrvxqyqynxvoqtsyrvxzvnxzszpunupyqnopxrtprozwtvxzxwrnnnrspvwo...
output:
eajfmkamadalakabcbbcfgebgccccdeldafdldkeeefceeffalfafgggghmfahghjhigkmiijjjkklflhagcdkbaaiaajlkaajfaecaaaejaleaacaicgfaaaaihdfakabfafkbeaaakalmaaakaaakafchaeaakagddajaaaaaaakamaaalafmgaaaalaadaaaaaaackafhkbdebaafdfalalafekgaeaaagaaalaaaaajaaalaaiaaagbaabdaaaaafafaahaaaaajkalajagdbaakaceaadaaaaaaaaaa...
result:
ok
Test #82:
score: 0
Accepted
time: 1ms
memory: 4056kb
input:
15 500 zryswnworvevunwutuxmnzpbspdpqctwosopnwswrwvyyvptypvzqwzzcontrtooysryxxgvrquvnnfnvqetnourqrxbwywtoqwvtvzqhppsnyptroqtsoxwzrqryylrzntnssvtrqxrsnzpxvzxpqrusplhrftenrtsxvpvnpxuokwtzruqtzsryqnywowwurnyoztuwqtrpptysuqvrprpfovwepypwstvipnzgxgwrndvwonuwqwtxotpvxyywzzozwzwtnzozvtsoytxsnqywvarnpnooorps...
output:
fbjaiageadeaafaadbbmgigbhddbbcbccckcaldjmdeeeebeilfhfdafcmeljdijammmffgghafhhbfhibecjkijkkmbklffjmaaaeaahlaeabaagkgahaahacabgmlaciiiaaiifcaggiaajfhaakjfgelhmfaegbjaaafaaddaikaaiaahaaaaafggeabhfegehamlafmaabaacaddjgecfjccelkaaaaaiaaagagikadklamcejcjaaacaaajaafadaagaakmiceaglhamejbbaaeaaedaagccmfaaamj...
result:
ok
Test #83:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
20 500 xzqwxnzjotrpypunovrukuwwzxynowyxywvvpnvtnozoqyaxpdorsvpyvvqpsoxrsxwrsnatxosrvuynpylrxvywwqmzqzppuvuytyqurgpwxynoqyrqxpuzytunxrnrrtowrpzuvyorvquopsuqquyrvvnzoupvqrvrdqnoszvxtqnvrxtpotxttuoozppwwysytonzyryntwntustoxqzvvpnsxrvswpxntrwnxtrczqqxtdwksqostroutslsrvyyxsqyywqpwwwuvqwulrspywrnbwnxqswxz...
output:
jcmacekjadahjdcajcadkabbmgkmflkkbghllfbkdbccimadjdeilgceejfefgjffgkhihabhmemcbbjchlgliiciamdkhggjhlbmlfcggkeliijfahaaaalagkcadaaiadaamfafalkaaddhakahclhaikiaabaadccdmacjieaaejalgbeabaajhfjacjaeakalkdialiecaiaafdlmdfgeacagfacffdhcahaaaacmhdeadhkbkcghbhcaellhhbkilmaaaadaiaaajgalkhabgaabiahamaamladllbi...
result:
ok
Test #84:
score: 0
Accepted
time: 2ms
memory: 3888kb
input:
100 500 xyretptvzrvrxtppxwtoqznyquonurrunoyxxxusttovzmhvuwtquvrvqdovpivrswrwxvstvstrqtywtwtktsqnfsspvrxorvtnovwtpprxncrprsuvsqruqznvsbtsnpszznujxzziwcwsrtfspsnuowypvvtqtpxwlnnxnpsirzspqplsrpqvxzxrrwpywnonrtmzqyrprzwvxuwvntsunuznowququzzntwqvonpvtxpntzqznswrzqwzrsjntzypsnfypvvounhxuqoysxoprwqyuovoxov...
output:
flkebccliaedgbhbadhlkhglfhfkaefkmdgjdhkdkfkdmmhekdellmiemdkacikbafmfgjgglihhjcbkgbfkhegcfmgbgjfgkmhgjbmhdjmfmckmfkmibjbcgkgmhbadafehijdjmbaidceiabfjmlfimfehgccgadfmlcdbkkfiebmdjflkfmcfijlidedkcgededmilldmidaaajchaidikekhdahflcjakgmghjfdfdcdeimkijcamdaahjgjkeagaklfilcjecjhglkcejbefafiffcmklifdbfllhba...
result:
ok
Test #85:
score: 0
Accepted
time: 6ms
memory: 4224kb
input:
500 500 uynxusnuyztownaqulnzvqzstswqszvpsprsvytsvquwqntnusnxnnvhzhwazupswyyyrpvkpqqpqurtzyixswqxxswprtcqzrtxpxoutrsvtyqsxoyzuuttwtzwqiporzwpnurtpuvywzdyvqozlprvxqmyutqrswnvuzazoqzzwqsonxptownoywrqsrzhowotpupprzuttkvouxrxzzuosspwiwsghyxzourxwtsyorrqwwowxstcylzvpnwzrsqrspszyzptptquzwspyuoroossxqxrnrso...
output:
ccgfmibddhcmefadjlcmijidheabcmdikmcdfadhdieadkaiklfbhefhbhdaecjbcjdjglkkgklegfmlcmilhlaeckefelcahklhgggcddlfbilefbkebdcflfdkciffbgbdkcbhkjmjamdjmkbmlfbciemlhhfagifijjahhbhceijmbclimfbajmekcmchfellkalblelcgkhdigbagjdledjcifmghjagdjlkhcbhbjfcgcffjlfcelaejfbjdekdeckjlgkjdbabfgghkdkmfjibcikhbkmedjkfhelj...
result:
ok
Test #86:
score: 0
Accepted
time: 0ms
memory: 3636kb
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: 3676kb
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: 3932kb
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: 3716kb
input:
14 100 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb YYBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBYBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB ccccccccccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddd...
output:
qbpsprdedeettokotwffyftossumoghsihhvjvziowzmznnnwwapaedgxhjdizikklxftdkkfttxxzmmrmtlmorovtnlsuufluwy
result:
ok
Test #90:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
5 20 fxyezqqsaxwjkmwdbcmz YBBYYYBBBGGBBYBYBYYB cccccccccxwcczqmmdfe YBBBBBBBBGGBBYYYGYYY dddddddddxwddezqmfcm BBBBBBGBBGGBBYYYGYYY eeezeedeexweefeemmqc BBBGBBGGBGGBBYBBGYYY
output:
mfmzqfdefxwffcffmggf
result:
ok
Test #91:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
8 20 xtebkrvpbhlsbbdwfxnl YYBYYYBYBBBYBBYYBBYG aaaaaaaaawrxtsnpbdkl BBBBBBBBBYYYYYYYYYYG cccccccccxwrptsnkbdl BBBBBBBBBYYYYYYYYGYG ddddddddddnwxrkstbpl YBBGBBBBBBYYYYYGYGYG gggdgggggnpkwxrsdbtl BBBGBBBBBYYYYYGGYGYG iiidiiiiiptdkwrsnbxl BBBGBBBBBYYYYYGGYGYG jjjdjjjjjtxndkrspbwl YBGGBBBBBYYGGYGGYGYG
output:
tkjdxnprsjkndmrswbml
result:
ok
Test #92:
score: 0
Accepted
time: 0ms
memory: 3852kb
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: 3928kb
input:
12 20 fabeuuqijeeiqvmlxikx YYBBYBYYYBBBBBBBBBYB akaaaaaaaaaaaaaqjufi BYBBBBBBGBBBBBBYYGYY ccccccccaccccckfiujq YBBBBBBBGBBBBBYYYGYY ddddddddaddddkfjquic YYBBBBBBGBBBBYYGYGYG kfffffffaffffiqjdudc YBBBBBBBGBGBGYGGYGGG ggggggggaifgfdqjkudc BBBBBBBBGYGBGGGGYGGG hhhhhhihahfkfdqjhudc BBBBBBYBGBGYGGGGBGGG ...
output:
ipnrrojpakfpfdqjsudc
result:
ok
Test #94:
score: 0
Accepted
time: 1ms
memory: 4304kb
input:
5 500 qnplnayaqcthgzrscaeffrjqhrnssuhmegcoitgfoztimbhediaxqwrcxvfabdgcszrewoenuesjalgbkfgetfnsucfxnrlvmnxwihsgnhadsgubjaglsxsjmyvofzsxpmintxsvyialuxxelmbirqhofndroyvkfxdntxdmvhboqypmxpewwevxfymbnvrxcsoutvmshadbjdgxswjdcviwlcjemdjnkeyudrhdqwhiqbtosjqfgseyerovvnhilpgodnfnpmznmypkbwyfzjsvobstnynyvdtedh...
output:
kbbbbzbbqbbibbbkkcccccccccccceccckkkkdddddddadaakdddddddkfkffffafffafffaaaaakawvaaaaaaayaaeyxeesmveeseeeeeeezeeeeveeeeeeeyxoeeefffxkgggggggggggkkhhxhhkhhhhsxhhhviviiiiixiiiiiiiijjjjjjjujjjjjjjujjklkkkhkkkkkgkkkkkrkmmmrllldlqllltlllllllmqmmmmmqmtmtmmmmmkpnnnnnnnnnrpnnpnnnonkooooooqoopqoooodqqoooooppp...
result:
ok
Test #95:
score: 0
Accepted
time: 1ms
memory: 4028kb
input:
10 500 jncrnalnwtivhccjacwevrondacihuksbxcfzraslpdykexafbpxtxwdywjdxoxftifjlhsputwfznboqhgahcuxppyxiqfhuzunswiddtfjohaghympeqadrxijhfoouqpacfgkjnsturviadtwybnryakwkdmtmqqhmkmxziauaacvqebrhiuxnxzpnykmzidwrepmwqclynwfammeafyanrizsihsutuaeyxxpqwhisxznckmggtbmjpqwbcxgxvrdtbujqebrhoqekispgdiyqpiwodkixesj...
output:
vvwaabaaaaaalcgjakaaeayaowaaaewsklwwgbwwbpwcbccccczcccccjctpccwwwwddddeyddddpdddyppsppupbppspppppbppvbbyebbbrbbwbzibbbbbbbpuypopeeeeveeeeeeeuussfsffftfffofyuyxymwywuffuffafyywyggtgggsgwgtogxgxgruvgxggtuswhxxyyypzhhxpxxwfxziswhhhhqthhxxxxxiwxiiiiiijjzijklrjjmjjjjqjjjwwwjzqizszzgzmzzmkkskqckgoklkkkock...
result:
ok
Test #96:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
22 500 gektomdzdkkeqsukkkjxppgwmeqldbovakxqbvdgarmqqowxvljdsmantqgcjppfcrcfhibtbhaxgaacxavpjzrkttzvvuyvrvainfgzytcowfzmjgsqbfhmqpnnksxfzddpjvunkphzpghkqtjvrtwaokjovhftfxyvzjyarskrjaiotntdyjakoqcfjkjzysvrqkrcenbykrwsacfylkhrwxxbfdmpaoegezxppsertmxynyffrodszzojlbqittjsglekbkytierwmbposhebqjzpvkxgxihrs...
output:
muuipxuvtkmgyroxfqnjxndxahpfovfrzyflisvgvkoejxecogjnwgyqfruvpyofgpntrgtnplpgnfmblyutewednvhmynjvearhynguvftcvyafqbgbzapjohwdfsghnkdriduqerzymratorcymdculwosspeqcsxchxhrazaauceezbrjfpstrjuusavepgqkdqpevpduczjnwcivedjvkvnrdkcpkxwyqqlvlnqdfbbihkdriazgpzfghsrcxvfoohjoweqtpqvawreroflfzcdzdcwzvqpsyhuatuhy...
result:
ok
Test #97:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
80 500 rqbdmywktaijlbpcjblkmjvsztskxgpxgsqxfotxhbypeeeweorhksgtfrkstrhriwiyznnzyfclnmkqkabjqdrkoltoglioupjvfynemwvlqawrasffdukcamirncrdwkqwlxexnobtswlhtitcmemwpwnvlwgqrcloxcsjwnmqbefvytpdfwefpqgrggsztmybvotcwlzihwqtsrnxsoacsnambbidvohgjgqtbxnqoyjxwjwykbosssdipjmjveqsbxryvtuqwkyjsyeipwvzsrecugzregtay...
output:
hvlhtoafdfakdmwzdfeqzimhmphiqrsoucefcybyauxmdsqnygjaksbstemayxxydepymhzcpfvjotbumsjbyuoxssggqfhxcgovglnoduoktsntkwdzehbqkidequkadtyncjrsrnulnwaaeethuqmziovrxmkamkmbarmyblprtrsrtwiiyojxubpuzlniasjdxtefsfgjchoygezzamvdnlauxmgtjrwqmxrimwupyajkrunqvomzqdyqzvfioyqpbidvgjdngcjlqyrresceukckcaajlthlfmlxlopk...
result:
ok
Test #98:
score: 0
Accepted
time: 0ms
memory: 3912kb
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:
qaccaaacca
result:
ok
Test #99:
score: 0
Accepted
time: 0ms
memory: 3672kb
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: 0ms
memory: 3628kb
input:
29 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aakakgnaoswaaaxnayag
result:
ok
Test #101:
score: 0
Accepted
time: 0ms
memory: 3980kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
aaaaarabcaabacewagarataaarbaaarfaaucacugcxwavaaacadaauaaasovabqadxaavdfpsaadaapavdeadeaaaeqawpafvaaalgaaahpagapqaahjaaagvawaaaaagaihduhaaiawaaxjaqaajjaaxaaaxaaaaiaaxaaaajmkalqakakaelmnkamqaaaaaaaraaraalaaaylpmynaaaanadaamammpaaayuaasaaagqopnnamwaaajanlaaaskaagavnaarnyfaapqaaoadaapskospprraoaagntafru
result:
ok
Test #102:
score: 0
Accepted
time: 0ms
memory: 3640kb
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: 3928kb
input:
7 50 tuqaulrnzyyywybpuoehdugdptglplvlppkhhxxppdrkhxdxgd YYBYYYBYGYYBYBBYYYYYYBBYYYBBYBYBYYYYYYGYBBBYYBBBBB bkunohhytsznqcntvetgbzflhcujlzhxtvublqxznscjshvzve BYYYYYYYYYYYBYYYYYYBBYBYYBYBBBBYYBGBBBGBYYBBYGBBBB zpqthwonsjjxcxxuwdgpsglsmpbepexhyvodtbrgpwktudklnz YYBYYYYYYBBYYYBYBYBYGBYYYYBYYBBYYYYYYBBB...
output:
aaacddewzhihhzyklmnysmknnnoiappposupppxstttuuhmtxv
result:
ok
Test #104:
score: 0
Accepted
time: 1ms
memory: 3916kb
input:
20 500 uabfdcdgyqmxgsgauxvngxyebdglyakjsndkpgbzmtpxubzwzdrypaikyjxzwztpawxmbkjdhywlrrwdwmyjuzpkfvzeitcoovjzzjtfalpetwkahtczbujpaymnaketzdwjdpldpchnxbzajnrafcpsowhmszkllmotxhrtbsyujplndjudidelwuxvoxwngolxctirjebsqncludnyzneyxboxjakvyleabonpsmowvzoaovyttvhnpbesttbyfgvctharxoozjffdfzlzjtbnmiqspqhwthrcf...
output:
bswsthvfvwwuewluwxwnumvfxuvvvxvsufvmbvvwnyudmvbbbvveotbhfvxaxtcdwubrzjaqgzbrabccfaawazwbsbsapaabmqwaxlszaakaicdaadbbebcyavcmwytlughceitnyytxexeghfsxckdyccedmxzdydhnezgfdddtvgeaegyhdctddfafoffgfkhnpffiykriywivymyinqygiyyuiuizwpgzfygyhhvdkyhgphchgnxipivatvgggiwcrhbgqiijrunzayqkiisiiyazuwjjiiiiiikiazzl...
result:
ok
Test #105:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
50 500 mlflhmhmlvhbaykqextwbeswdlqmlhhzmofeicwyhuvyqjqwuumnpmirtgrboepaosruvhipeadhtwuxtqlfshfbaakarzfzenjinaijsidcoqytyytevycrdrwammzsvysailfremryrtlonlpohxhhonhnmqdnuuynwbilcotucdxbphurpzvjjkaujunppehudtrkggggweudqbmvoqtoxvyzspjzajlxpsmynskdzxrwtujidbsbjpbwlizsejugkzavkznxakoshvaxjceniggefvuqdtwbj...
output:
vzbuuvavbwaewbvwovzqewwdexaebxxcagajjwgwwfbdexzcdxczgdxxxaieaacbgcbbaczbagozadeazbebjaccfcfbqiafcaccqbaabbefhodekbhbchbcghacdbhjedkdnehdvfendigehugdlmjgghfjhlpmhlifgikhjsnknzkhgnjpfkkkrigjhjglmqfhijknfshfuriphfkrgghfhimfikpfliikfmrmfuggnsifkrnlkiigpmfqktflfftinqfjikkpyurknilqojkmkpksmnkrxpmwmjmrjuol...
result:
ok
Test #106:
score: 0
Accepted
time: 1ms
memory: 3920kb
input:
20 500 ayuwtllhqnfdehzldgmmouamniqnnprwlbmoppiokmpxscydolhqqgywjsqlnrsyttoloaoikjvzrxskmwowxtjssclswpoxfefjqqtzxkcxgxtywwdrmkcoyemldljtjvkcirjhcivgcdfijpasmesqpceeoixqaazxtwyggdxtxtksunhwzqvkrttrjwnjxbakjsxdonknqsanteluehvzaytivsfrgpqxoalwbywfuxdyasbshpskglzhdkrsnsxiwypylzmjdtlddtqwvrnomjwhjrerozduc...
output:
qsutqqrrrrryifqmyfotalurerltirxscjaeathfonvmbmukaahcjssaeppqssasaublatatrvgathstvwviybbbuebhprflbbbybbbfuwembbeueeuldbvbvcwkuicvgbwaubjcuwjrjcplcsweudktwedaettynwesmqqeizywfxldtdagqxxdeydedzdcfexeweawtfxwxgbtdflczvzfglaggoxffxehfedwbffgihgffvbwzpyarvhiydygyyqhgwgizgqkyvqgdihhyvhjjkthghfgyycurkrplusg...
result:
ok
Test #107:
score: 0
Accepted
time: 1ms
memory: 4272kb
input:
10 500 hlowainqwhleemhxgeexvauvsmdxrakudyhvuxjhqreepyfkndruyzuwrfnhaevzdkpfnknymitnqjuvudbwcylkjcmwlwfhavsjmpadfoylhtwuaukxdgwxeqgbwciafzierqihjaxqsbxjbhyiamjwgoupnzlkwoxgfrsclagaevkwfiylpvfboozmplswttjigghixkrlfrpaluroddagokgyayvixdjynfvfawkhenogfymqrvprzqlsnxhzmvyvcvtfftaflzvvxhtuifjoktfpdnvrercle...
output:
yvvbuwwaalwaawxakwwavwacbmyaawaadahdoaapwvsaamwacamaawvwwhwxcbwbbzkbtbbabbbbccugccccnecccmsmccxkqxexhxxeexxxlxbxddededddodadkdldjdqreeweeevaebeoyneegeevecxbneeyeeaygpeyroyhqffyegkfffmfffmfnhffgggghhjggfgwzgghhtgigggzwglisjhrfhshahyyyyyiiziiiiidiyjijijjtiiiijbmkzzzkdkkzkmlkukkkkkllzlzlcllfmlellhlklmc...
result:
ok
Test #108:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
20 500 iwwobprhmoyngxrwogeznqjfucciihleorxsgxcxjxlsqhoaakvkwnbhfrazxbrtqwoothwtdoprguinirothdiawdjqddwmbnkkbinwjeuwqydrugiccywxayagrkbnsjaoriyrpynldjiglrhikiipcynkxfobdyoxzqmsvthlplvbebkfepbfpttdgspybmjcyidxaxaodjkilaysrrowetbxkcrwgphhmyeplxvnpsxsinbnmfxoulwuyfcnfypmzuvtqxctqnrlgvbrvjxjzvjxvbfoowmsn...
output:
tuquauutybytubotugaaahjuvcvxcxaareuravuueauxbpubknzbzbvcvbvklvvtbtbhupukfgayhbokqwbbhmytxvuwwdccgyvccvcjccfcmwfyuqdhijcpckwxowuwiddwecscpmlzwwjddenxcedhedkbmpdyhohecnpvuedmwzdexdwjtdldfpdkrefggcsctfrgqeuepaggteksexxhlfxffvmfhgghduisgxxurigxegcksxfxhffiidjwjhiavxhhiziukqhlrvpyrhhhyyliijjhfwplnqtijmfk...
result:
ok
Test #109:
score: 0
Accepted
time: 1ms
memory: 4012kb
input:
40 500 lennpvhaesjwznotiemclquvfbhxnphpnyhrrijylkxrrstrgmlekwahzzspctybovapkvlepgdspzvxvtclrmtelffwvumcoituylxnqxubwcenuvxvsgxvxuzavuyiimznvigzmrkqoavtwfcybxznhxyfrbxaefvfimfpwuesbqrpwxrunxctvgvapwllecsfrsosbmludeljvximxbsmqsgnzhwisflkihogdbqixxxkwprooumwovxwuxwwpfzsudgtanewxdfxiyegukigcxmjhgojmqnjv...
output:
dhhrjfxtkblovcqrulrqsmjatktgazpxstqwmpbjurowpkgrpaaptxynxyrvjvsjposelvdnrqzjcfuzumeqsvxxjspqxkodmoqhsnyuswaixqbhypbqtafoivbekmnmbdkdfptpncpoapangpspvtvyftaxuwpnxgdbioqaetdkatopovkuauwxnajuwcenowqfihicldyaikdlvbdptkwumhwxhhyegxyihyqkmehfczeuyjxbutclefqybgfhwxmazsebcwljvgvdhgjjgzqibzwbwbhvhkthrqwtnteq...
result:
ok
Test #110:
score: 0
Accepted
time: 1ms
memory: 4120kb
input:
7 500 nhjurmfptwpsgukjwqqhganfrtbsavaviwabjwanivosdqwewclocqgeawyuyetiaxqocqksukadafixlzcqjkjkfuvwbnzflkcqdixhbbfhnaxeyfjfvcpucfjvplgcrjlqjlozveqmgkbpierghfibktmipvabndpkokrvgvhgikrhqgcnkkwzcldzhamtnsusuxhqsqyrfgvsiegjbnmbtlzlvyiatojxleldtnbfrnxaqaavqdtwsasyxeeqbjfbjuakywcptyayfjgghqxunfdlqlgvazgafv...
output:
aababaaaaabbbaaaacaaadaaaaabbabaabccbbbbbcbbbbbbddccecccccccecddccdddedddddeeddddedddddeefeeeeeeeefeeeefggggfffffgfggfgffgffgffffffffgggggghighgggghgghhihhhhjhhhhhihhhiiiiijiiiiijjjjjjjjjjjjkkjkkkkkkkkkkkkkkkkkklklkllmlmllllllllmlmllllmmmmmmnmmmnmmnnnnnnnonnnooonnnnnnnnnnnnpqooooooooroqoopoopppqpppp...
result:
ok
Test #111:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
50 500 fjvtcvkdhphwksdhxuvuhnienmtontugyffzpbliffkcrjbcizldydjqftrqatumvwjjcoshkhciwxkcpwevqafbwttxwkujdigaimazfudmyvcqesaastwfggmcjsmtcearbrzqynmdkgxgzizlaxhbkohbbotkachpjqkmmsvmkogiqhixbngwksteeiaauktuqciihftqwrdwvqcmyqgpwjtipsnoqnsagzjomnqjtzvsylpdqdpapfxdoodbxvxyqmrvkuillaszpnkcahbvakbktrfuqsats...
output:
xxacyxbhyxwyjwyaiyddysadfcxccdzdidgagfxdbcaeyxdacgcmxzyybfihbdbbbdgcecybabllbbdbciiyfdrcrydbcfgahddecfegareetamcchnseghozedddmgadfgqenpnefgllemlefjpngmiegeofggizmffmsnjtfjnhpjgggkfqphfgiigfjfuilmithdjiikshjmhglgggoqnjtnlqjpjhypnjulzkjnqjjnqlckjnmnjjmklnkkllknoofvoyotkulpttslonlqrklnlpollptnkqxpyrqkt...
result:
ok
Test #112:
score: 0
Accepted
time: 1ms
memory: 4136kb
input:
10 500 hdvfzntztjftzhwhklupivisrzogiwdrvuzwabuysraiqrygyefzzyyqgoqyzstcpariuppstyipwyujymubwtkcmfudnbjvmlmpgzpcvrmttcrmzfhqjfezhilsgunngmtfgnrclefuqlhwryparsnyzjchxgfkbjavwicenzieajerrkkzjqnghwsocvkjosrmnmbjhsrrqocvdhdsbwqyswlqmdmnkavexchlvhrehczyzoawbqrpxfrznuebwokclufvnxdgmyglcjnbtqwvikptktkbiczvu...
output:
aaaaaaabbcaaaabbaabaaacaaabbaaabbbcbbccceddcddcdddddceccdccccccgcccdecccdddddddeddeeeeeheefeffeffefffffffffffffffgfgfggggghghhighggihhgigggggggghhhhihjhhihihhhhhkiiijiiiijijkkijjiiijjkjjjkjkjkjljljjjkkkkklklkklkkkkllkmklkkkkmllmlllmllmllllnlmmmmmnmmnmmmmnoonnnnnnnonoonnnnnnrnooooooqoooqoooopoopppppp...
result:
ok
Test #113:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
50 500 indtujtskbwgmxdvkibvrirswzrvcpiyuyyntxadwsxjixpvgxlliyghubywoqxiloiiebktsgjjfubluyqavdckcutsvuiimgpupytjwcpnoirjqumjbzbkcwlogbmybogrdjhckdepplvunflsveokgbraqorfaozqhjnqwbiigzycaaopcwqvbxxzddipozyzkaynmtxssdoxkljivtotbsrbejeagduwyddmdcxermruoiqxnvddybpxhwhigealmtnzbnfwmvnrfaqptoeazypbqnmhhsmbk...
output:
dxavavqduzubyvxuixgaavaccxvdyacaifccvynexxzgaifaazxybxpbjfzddnockahxmfibkxbyxhxyaopebcxdnbghdbfchyzbjibbmmyibzczfkebekcbhgcfcdobddcdicingbdcbbkiejdejsgfhkiqdjsjidifgdfkrikgkfshdefdhidhjnlmhggdheqhudnhgekheegieggmojphigeqpgjnhlonmjkumkmkkrtomjjokjumulllpjkmljrpnuljoomntllxuljlsnmlswnqolsmnulpmqnoroll...
result:
ok
Test #114:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
20 500 slcocdoeuswpovhxnefsxdchgfnwlduobfdajvwtydpyssopemfjmxxhybwyccommiyistixveoywghtfxdmdturqyumojdxdsxbhqmscboezlfgmrlwccygpbltparhkieqratosgogmxykbihmrryxqgqfygytxttksfhknglfbhejqjzitxzsbzirrtzffaigozubkirbzbnnmihyybpqsravofyatvxuykzjnkkygmtfexebdhhcitnenvitiiegtlwedrupvhbgwsdpprkjdhubvmkvxyusu...
output:
tduarwrxrvfwtattiuduvgcvwhwvueeyswybauucauzlgaazacawxacabdxyldiwrpycartahjxwcxpbcpoxmbxdbexbcbukacqcubcdykdczuydydhcxeeddbxbceclerzbbhtadxylfedfryfnddzjdxsxxhgyyxbebikftvylyelyerazzyeexhzixopzuzzzomizftzgfzffjrznfnqeghzokbkhhzpqfwqkgylghfiuighiigsijhaonxesishjfhlubmytjiaokjhzhhsirlukjnuvjsrgbmjgubfl...
result:
ok
Test #115:
score: 0
Accepted
time: 1ms
memory: 4076kb
input:
10 500 roqwtjzrjuwkjwdsrncguryxigdlozkssldrhkipfguyoldfyrosbquckzszvbfjkbhtvatcgdbnkrgszdlwlgnqvlyyrztbdpnvtvqyedmoevnpvoycipvhgglyxhsojpyjjquksdkqlwsglcisppapjlrvowqpzxgzfurbiuwjorofabhyvolrcdarwpshlkvigmnwucgffluinlyqblzuqbziqthcrqgtkyxphdsmbdezmiydqrumajjwofoqsgkghsjjarlkjgqrfigsadcyjdvhxigntkfwt...
output:
azazaaabcababaaaaaabaaabaacbcbbcbbbcbcbbdbbbbcbbbcfccccdccedcdddddddeefefefeeeheeefeeeeeeeffgfffffgffffffffffhggghgggggghhgghgghggihhiihhhhhjihhhhhiiihhihhiihihjiijjjkjjjjkjjjjjjjjkkjjkjjkjjjlklkkmlklklkkkmkklmlmlmllmllmnllllmmmmmmnmnnnnooononnnonnnnnnnnnnnnnnqpooooooooppooqoopoqooopoooopqspqpppqppq...
result:
ok
Test #116:
score: 0
Accepted
time: 1ms
memory: 3768kb
input:
84 372 cghxpccqxmpjhtjdglpdovwbzyqusjaaaczvnuxwducxekfdxytfvidgytsrnsqttxtrbkxlfpiioewbjuhchzmaifgmgozzszkpzehdtrbuakovkrqcsufpylbvidlaysqeaphobqoswwlgvfqlcwmxalphjpjghaphienececljwcyzgwerjpblvsjpyglbhcrncsyutwoyiuswxfwisljgbkffxgcrtlbhcsikvelbqjpaztaasiszygtchgirkazcpgfcfxplcefbpgofwjacaubweqfkmrbf...
output:
hqyecyaaesovzbstegaxbvmsopqajgogzvkmedykxzfulzfmpdzunbukhzvipcuxejqnjgnjyxtmxgnrmoemicwazqxvxrxpvadnbdkyhodesgotytdhgonnifetqoeaivzprxzmicgazvmxcxxdefbxiwtwsdigpjojdlnmixfikifxldzbilkffuetlhqqsextndlxfnahwbszpudqyrfgnhzdftjxuienlthsjvbgqucbftynpnlzpfxmhvtifavfdchtcfwefmepysaaljuyqjuxiwzoskitkgbiyfon...
result:
ok
Test #117:
score: 0
Accepted
time: 1ms
memory: 3768kb
input:
40 500 bngwwqulygjlplyrkicksgvqqycoamxfcoydohxhytmdmskpyjwuhziugselpxqspsbzoecnmtcgkyrbphotgkvlalmmgzpnenyzurybwxlpllgnrvxgykkqqmqmmbansntkcgmbuovmzpzfinlzwofqungisfrttnxsoqulqmwdyurgvuuppkbgczyyegxmrdufnowmahnflulqmtkhpjjrmawolznbmzfcesnawzxiqhaekaphgdhxfpczmdjmogxtezqhvnxyoaoaapgctcprzcegjajvmplbf...
output:
apiirrgkyfdxaejcrspxhhafdhimrnwrfsaxrujucqetjrxwjhvtnjljvfldydsklaqftfbunbkruehhpdttelmkxpemtpdnqbtwiwpztihdxztfwwkzqfvcvywtfstczjdzdoehvuikinaritoccunkkjgpabtyqexwuoudwbqujcxalqtedbdhbcxbqqdfrtbbdzvydnhkdtfbgaycvbdquhsbfdfwegsecpivhobdbeebcfnxleqrqtlxejrzwqneekjeeqmuwjwsossfcldtjckicmvdpohtgifpxwbw...
result:
ok
Test #118:
score: 0
Accepted
time: 1ms
memory: 4184kb
input:
10 500 golmkejjbmsldxyvlvmbmgoaivglyqadcjhtedubrsjwtdkliqsltksdijsfeyvuttgvbcoqcmhcdjwnbatcprrrpmmnnqgamphfsbsesxqhwpnuxhcxqxeawyptrprmloahypvaivqyzugftstanjrxbbudyrvbkrvmhfqjatvypaevjlgxchmlgxtymnndzwosslntpihighkkspkuspqhxduqoiqlirubexhhpifeiogxqggfdvavhequdgjskvycqehyqgdcmgsuxbksdhhvlpqhhuumviqhu...
output:
vwiwavwivmvjywawaaaamawxovayhbxcbbvblzbxbxcbxxbbbcsbbbbbxvcbxdxccixxxycmyxexejyyydyhccddciccedddmdadedehayeqddddddeyyygozeyvejezdeefzdgezgpfffhgggygfqgfjgffhffwzfgfijggffauhnhgggzfhhigholchhhwihfvjdhwlizzjxiiieijiiiijjbjfjjjirjeeczzjtjjjjjjjjkjusizzkpklkfkzkkkkzhfkkxzkkkxzuzjlnznolllllzngzlltlllcmom...
result:
ok
Test #119:
score: 0
Accepted
time: 0ms
memory: 3620kb
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: 3628kb
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: 3716kb
input:
38 99 lemacjdnpybypkogwdtvhlhmlvzbhkbjaztriqyynvsftexmhjzzxyjthuaeozdpdxpjhtaqtqnddedkjlltttkklenffpfgpjl YYYYYYYYYYYYYYYYYYYYYYYYBYYYBYYYBYYYYYYBYYYYYYYYBGYYYBYBBYBYYYBBBYBYBBBYBGBBBYBYYBBBBBYBBYBBBBBYBYB ffoiuvnagcedozbnvdgcwehekesyjmonuaviekpeeetvihyvwtnvwucerddzlzdiiltbqtyfyfquaifdjdyadkytyookgn...
output:
jxuzvsbczlpjjcgmgqicremjudvxeruwfqgyrkxwhieextrujjtokrhznoxuzysxamgnqbeecqzmyzczdqjkkvzeqjpblgmisto
result:
ok
Test #122:
score: 0
Accepted
time: 1ms
memory: 4044kb
input:
10 500 avcyabyfbhldqyquiroxejrovopyxbgfslzbrmbbbhvxiozmwggujoagvafzguvgzztetufaehlozosicgjrhqnboxoqzxnwlinkwjtfcmstnhsxpbusuvudgepfwkpuenqjvmpuljzrewqmcldwmglpqfcezkmfueprdnceqlkeobrubhwmugcvkjvimcvqtdhgtcqxzldhntduytagztfheqmlkrvkfllddoemookesremmaxxavxeescpkijpneujkxokegzvfjtpvtwfiosefakjcziiczgco...
output:
wwewwwtwsqwaywacaaaadaxwaaawabwxaakxaaaxxxvcxnbrxktbcvbbqxfbcbbbmxbbcicccxxccssixccacmccccgllcddjydxddxdddddxddkzxdcolbegdydddeyyyyyjyhjeejapeebxpeeeeyyyygffcmhfyzfffcfffdfcgghgfghgiggggghggiexvghihvghhwyhihklpwhhhhyghihyhyhhyvdniiiifixiwisdjniimzkzjyjmpkjjjjljjvjbjjjlktlcqmzlkkfkzlklzkizwkkkkklmzlm...
result:
ok
Test #123:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
20 500 rhqrqfrgwyrzxmjqbfwzxjvlvykkreypsulclulaqxnwwnbongeepchnwgrojedulbplkkwfbxrxbkwtuztgxcfucyirctbhqmfyiicasmzpgtyqucsahojdjewbbxkaoupnzejlvgognwxxjgvtrnctdbblbhovfeellhuglseearomgbdtlnjmhnefntguonarkwoylusekasgztbqelwycvioxwgrmjxnvcxkdbrzfkldjzotbnzuvhyxyesfvaucxynavbkyaisfryutwqeginaehujgakoyp...
output:
sshausarirsiarsgrrrrjtrnaaijtvrltatxralhusauaqbalaawatayuawaxxuahkaauvvuhdevmecuhuxgbczvhbqfnuecbwbviodqvbobbglvwdbebrdjrbbuvxbvyvcvncccweoceeibzzwswtcbdbpjqwcqtojewwdsexceccickeqyqwhddowzdtreimaxdjddyecoxdjpwdqwxdkjclhfyyviszzxxxyfxgqxxlfgyxvfaxiyyyvbgyfywyaflhmfyuxfifckccfrwffzccygqyhihdofbkxtizhh...
result:
ok
Test #124:
score: 0
Accepted
time: 1ms
memory: 3916kb
input:
38 99 lcnqdbnunbdbzudjlrywtorribfyxduvteracrxyunifgbivvkzxefslommakqzpqkoipbfckyhghwtjafiwnybobniqqrcybxi YYYYYGYYYYYYYYBYYYYYYYYBYYYYYBYYYYBYYBYBBYYYYYYYBYYYBYYYYYYYYYYYYYBYGYYBYBYYYYBYYYYYBBBBBBBBBBBBBYB zvnepeuvrwzqrkmgoylqikrcnudzlzehdcyopuqytavurqzqygnpszcnykpfrsjdtlavrlgkkvswqkqrccffxugrcifdqo...
output:
zuwrgbohhnjnuziavazugaylsshcgisswzcryqhljpxjdkxbmftnklzwfvimblsnkbqeppidzblzksxtfsxllhhmiqbmffjmomz
result:
ok
Test #125:
score: 0
Accepted
time: 1ms
memory: 4004kb
input:
40 500 nociyvndtnjzbwfnkoirbeayjufjxljvsglmgbzyqddrlttohklanglgkepoezadibbyjpptxbsbeahwmdssetnwxyifixbcftwpekfiiormtpmyufikfguubzkngohpnroobefeanihvowxgdktkxpkyacxawaafupqcerckoyntlmvgdiehqgdmhftmlorsawglxdvtinmzdluinsnyeywxnvpossghmmnskkafswbeywoomhbidilmfzfjabgormdohxxlqewowhsjddlvltadnetadbynlguo...
output:
oaoungemdfzvrsirojhruutyohsaqivfmbyqtozqcnsajyfzgqrjqaistuoebeztwtetxsusgpzuqxpjxerwbkweogryqtssonryajtlrinlqsxcirjqjjfrfxwfydhaalgizsglecuhejmdxlktavuqksdoeyaxaxfnivvcjjlbkjlugzaozcyrnnvceywlsultiwcoamprwgegyfaycikwnbpgshmuoemrfqlewrtrffhtzgqrwflpfvkvesnexqlugjjtcflhrzgzhxaeojdhflzdipzvjkgdejlbljxl...
result:
ok
Test #126:
score: 0
Accepted
time: 1ms
memory: 4068kb
input:
7 500 nngsllnxkpwnspcftnkpuhpuqcmirgfpmtejqrbhhdzylwumotzkqwyvmijqbklpgqewnldqkvgzbxcdhmkqtwsiifslmnpfqqgdotjptxpofzkspqsmegmgmsdyxndckfpdofzmggpiwgrrwhrciavopdwyqxzxthudmqheezbdqihpmkgezeklynghjlufystcgnujxdvrrlgiogbfudpahzltwlnmkmkcqmqmegpuhlgswhuelsoyomaqzgwwxvdkiwfokyetrkjahataworndgcvtqeoznxewh...
output:
paaaabaaaaaaaababaaaaababbbbbbbbbcbbbcecbbbbccccdccedccccdedddedddddddfdedefeeeeffeegefffgffffggfffffffffggfghgggfgggjghhhgiggggghihhhhhhhhhhhhhhiiihjiiiiiiijiiiiiiijiiiiljkjkjkjjjkjjjjjlkkkjjmlkkkkkkmkkkkkkkllmllllllmmlmmmnonmmmnmnmmnmonmnnnnnnnnononnnnnoooooooopooorpqpppppqpqpppppprppppppqpppppqqt...
result:
ok
Test #127:
score: 0
Accepted
time: 1ms
memory: 4128kb
input:
50 500 uikgvhvrmqsubmwdwhxcmtcpocrpxijhuvsniexaseairmkcbeklcgefagvtljfgiegaocuyuiqwxlxdpxurnojyioqamgwofiwfcmmjgyvigfvcjozervzfmkitsoakpqkjepbkpifrcuydaadlnyzuzqcivynubiadaagsmiahneoivnrxwyebomunjamdlnnbumabxevqugcbfgbqgduhgvjxtreauohsxzpqvglrttolbwlzpgbcqwgocnurrqkpximajmscldqajgqtvdmatypajhmynzcfj...
output:
yabyevcyxwyxavyahzvdxzdevbzzyyzlkyoicddjxceagqohcabxzacqzabkafhzcisblbdvkdnjcdbebebceezdbjhzbcophmgcleddctgfcmgbizkigfcggdeidinebfjzcdhbhgcdfbbhgbbbetehhthfkdgpijjgedoeflmeikjfijjnjkhngfikhggtgmzklljmrhhjgfmxphgztkhkqowoiikmvhjzkkmhrqkjkjijpizmtkkmssimukpznkpiqtknkkuxxviiliyolralmnlnxonprqlmnzpssqmo...
result:
ok
Test #128:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
20 500 idgnkmrnbkqgpmdkbfdszsrpghevtsnhgwolxsqqwathzcljlwpcegkceborovpjblydpugpdzmprpdwvhzoxmmchtdxrycqxtlqoankpbdsbkkwdhxmfxaiueqaglafodvimcpglygwxtyckrxkuufsvjjsbfsbbxesiuyqnukafrxdtflkkvnchyfayxvgvwvitxgljtcwnuwmmoloqlbsbhdqxuocnycrnprpkdvuboxdffqyyelptzdyegpoywwkplvejokbueqjyzpwmpozhiuyondtgkjea...
output:
nxwuuhufuwdkhmuveuhybuixuanuxvcaaoaaveanievwxajtoxqvahvjvuawviaavvfcwwvyvvcynwwxrdljbwmxwwfbcqeykchcaidlfvjfwwkjrcbbbbxfwcgxubxcdnxrliidcxmzewxjuyeiypdtdyidddnpddfgyfzoeffogyyfelfufbfmjoohgyyveffeoeheyifhadaxydfiifdwfzihzyggghggjtybljahhwejhzazkminiszuzzzjhamlphhmzsjjxiagzzmgcjywshjrilnjbllnijqcihke...
result:
ok
Test #129:
score: 0
Accepted
time: 1ms
memory: 3844kb
input:
40 500 snfrdqgnvyyaraqccmotrtokkfmalyybgpwgulvlyxckrcxcldtepcsadrgnmctvegynxumxxilbssrbpamhbiuqiqlywakejtvwikqspifcememdyupghrwclrlpvulxamihrmengmrcgbweadneunrpgnkulxwnxbcmxquvgmipebjnwojpfxnsbhvyctavdqcgrgwjlkjensloiqioeijlwsscfdgtktugkpxngprzvebltcjijglgaifurynycshpoocpkvtdbwsfxcuszwehszqobvmqwxfm...
output:
udxrdmtnzkknqatlqgekqntegwwyaittszbweuxcurzrfbddgpsdqjilqkvlskqaqqrcyzlmvtfncbtbixzhxbaunxyqbrbwwdzgtticjosubjwkoirfgartalgjktwoyccxjbiagfrsetalzfrxirzyydhetyubszfgbfziryjckoznwjgqoblevesxxfcalzhfchsnydoshllpqfllyosuyaunpupspufdakkrfxuzsrcxrshuheengfnjjzdawkmcbwrkliteufdgtjtifpqimshsekpngijigfwceidz...
result:
ok
Test #130:
score: 0
Accepted
time: 1ms
memory: 4300kb
input:
8 500 xiqiycbimxqtfqjpslneyqplebchzxulzwjrgtegxuqgrqhvpnpngcjucxelkmjrizcvnrjqtvddxlpgltxwckqmpkpoadbippkbncrqfdfofscnfgpvyqgrbcdadfufemkbkpcdjmhyfokuxquypgtejulbyglpnrbdydywxfcupytfqnviupqgazwtyjbjxwfleheseyheobucdjqcdrefkqmslnrbjjmqerchombsqkofjgsnlwubvzvgedxljfjccwjrrctghbfuwwomjzzpkyxmcxkfxddgrf...
output:
aaaaaaaaaaaaabaaabaababbbcbbbbbbdbccdbbdbcbccdcccccccdccddcccccddededddedeeeddddefeeeffeeeefgeeeffeefeefefghgfffgifffgffffffggggggggggggggihhhiihhhhhhhihhhhhhihhiijiiiiijiiiiiiiikjjjjjkkjjjkjljjjjjjjjjjlklklkkkkkkkkkmkllmmllllnllmlllllllmmmmmnoponnnoopnnnnnnnnnnnnnnonnnnppppooooopooqppppqqpqpppqrppp...
result:
ok
Test #131:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
50 500 nxzrlyklxqvmvzvobwxktnrdwljurhvzllrjmfjkvwgcbkirbtiwylejxwfihpzvizdwvsgjaaiqkwriqildaoojglbljohibjkufsaagaxyjhzjfofnxmyhkwmlwbhzmydabjtgagwhedfhaypvajepofyhfbdouxwuhnbgztthctbqjqasonbglubknmeknsnbpctlwccyhiyepytqbcaftfrhwfzxocnndardvufksspvgfmsvcurqyeovcofkswrgwanlsgbllolrlsyweanwprleynusyizj...
output:
tcvvdtcwvedbdbwaauuakwaeaxxmdbgyuffdbyfbafdguyafagdakcacayefcfaaydcahyunccbbbeddchbgffcceyjdcbcgdfcedbbycjdcdyccyjhdghemyfdejhijukneefvjefklhehlhedhidddlhkgedfjmejgikgefjmiqiseekgmgighhgepilrpiklfeirgnjtkgnqffjmfjfogflukjlihmitqjkkhnkhihlisnmqiiilmbotkplkiimlpkklpikirkrmniipisklinrmknmrlomloikzlxuol...
result:
ok
Test #132:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
30 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aataayfaafnpasaadcas
result:
ok
Test #133:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
38 99 qeyynemrcyzwzvuoybvrvzmeehgkxdjsklfkrlthdrgtnwlmgpqrefjgmdwxoifalobzyiffgrdqlwwmvxatxvlhbhqsfnjqpmt YYYYYBYYYYYYGYYYYYYYYYYBBYYYYYYYYYBYYYYYBYYYYYYYBYYYBBYBBBBYYYBYYYYBBYBBBYGYBBBBYBYYBBBYYYYYBYYYYBB kfjamtsoagrrvlrqjnovogtiwsjwauxmqjmklnumwcarztrhzmhekliwilsnnuhbyewgqjzksoybnqnnggodjblpszvkse...
output:
xqnzuqpkiktlzjbrosxvsrtryaumiyptpzkjbaauesaakbvhyqagqqdaccprvhhngychwhcqccdcjmphhvlomrhwloraplaoncb
result:
ok
Test #134:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
20 500 nixynynsrobetbjrzejtjkegkaogsaillemsrxikuuedvhrzjovgsfhkiwjzdstergysibyqpvyrwrrcjddsxlyqdlfwvjabmwanmxzkpihmmjxdutsingdorqgszclfjvcpzzjlemkpngmhrwchrycncoefavqmwcqlgyjzxtskapmxwnbdwnctpjsiabbaaurcjvefbpjouneqgejcpsnaahtylxsahmktvhvfzugxkulocepedrphwsujxowmnpdmbbqjulslqijltopnphxllsbrsbwdhyszd...
output:
psqrserbsaffisttuntbdvyortvjtrdurjbwsvbdjgnocoqtaysctmvqttrfflmudppurqaaacvralaqfdpvqhujabjlvubbcgxrbchucdgvdpbebbmdoxvvababrbdfoywddxddrvxwxavpvwqixddivdnyrevtvxxxwfmwxxaxweybgixtaaixhufqufwxofguwbfxygyvneypfjslifextgcfedeyfmfhzghggslggumlyyyhieopihowjitykyfmchfshthzvjyhjjhyzlrjisjhqkkigjeteylziijq...
result:
ok
Test #135:
score: 0
Accepted
time: 1ms
memory: 4080kb
input:
40 500 qvxlguccwpbtfosxdxjcaslntxgmfxzsantgvrtmcyfwuqgucbdychvadnxfreaiklbmgmadqxpsrwocowtjrhjxyovenmbfmgtuyevakqjiuthlzixijiujvgnpelovuzakwbkmcoivedpzaytfbvcrzrexbiqyeqcprollhrjaqwjxqmiravpxfyifmhwbnfysqbdirmozlhellydconrbxfvunxuplujacyuzkxqpedznvprcimjrxpoilkspgtcceatsormsqnbyhndlgqwaytwsxxfttafsc...
output:
mtarnslgahhndcklhwongrrcqpkmnzgpvzqouonerroyiuboipyoytrrzykmzmaeslnqzsccorlrwqihbirnahvkvroahzarrrhauydelysmeobsqudqncdstuvvubmedbvlkcbmrdewwtgsbyirzbuaetikwvtakcidagkyqcbkrdsxzxupesyzugtsxetxvzevbxoqzdbbbwwvwdbicnpfmazcpoxxbfmtlqhaedufmjbrdnmxjnlgjrdospukxwcdybzmrvjadukeputebrfygykjbfnjqeofqixekinc...
result:
ok
Test #136:
score: 0
Accepted
time: 1ms
memory: 4144kb
input:
50 500 lwgcolotodckvwmbefzrabvbqvekrdkwbovegjovpdlhpzdgeqgplvajpdisoxywdlssiaotqlvqdnndntdofaikqyekozxqjpuvwendiexjwqidxlikzcewckbjxdsnwdwfitpdnvwjnrglnhaazibzoizmfkkajvvvbpvcwdpsnhzepxrkcvnwoyyqnvzwqghqwhwtiarsouxqyqigucxxlxsmvxvmyaujclujbrxuyojcwxqgzszgdnuopfkjfnewiwgopkjefficwslltdgsbrditextdwxox...
output:
amwyzxvxabvxcyyahdwwcvcvbhwcacyglccbfwgyyzbgbacyzmabhgikbcecggugjzdcbfcgedazkghjayfcabzbucdgbbaaellmaaceekehftgkcbjfadfagbdijaajbhdwddhedickhwffdeimjcdfcmmjhecechfjihkelceziefuffeefbpnugtkgeifminohgfhkimflggphhgkogfggjkkfnazfilqfnifffhoahnpjjlilklhjhtihljohjjhjhnnhpklxhknnhknklloioolkhwoklnylltniumr...
result:
ok
Test #137:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
30 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
aaharjrrmraapwaxacra
result:
ok
Test #138:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
38 99 pdcxnpchuhnjkesyrhzhbvigmnzsclduhpzbafsdjoqnvqufwccluyijavnbcvwzjmbslitkeoyyusmydcjgupsjugxcnvphnik YYYYYYYYBYYYYYYYYYYBYYYYYBBYYYYBBGBYYYYYYYYBYYBYYBBYBYYBYBBYBBYBBYYYYBYBYYYYBYYYBBBYBYBBBYYBBBBBBBB aktlvhefxyiyoqbfykdplzvpkqltlcmuoptxhixpddzrwgqvphxngbjhvwojcxztsgmvogdqqphprbqgphbskoqtxcpdbp...
output:
mrsemxxahaymnagshjnrqloqwvbyaxtoyplatsgvoydabmdxkgwqfetpyzwfoayyaldcpbytchwfrecsfotfqrbpiywjbibtrse
result:
ok
Test #139:
score: 0
Accepted
time: 1ms
memory: 3836kb
input:
40 500 uzjmgymcylmysxcrrymwcnofpflbhruopcojnvkcmouoxfwhojapwtnnqefehbrbdxpvqjgmyspqeyybofbetcrfhpaqnljlnrgopvihrreqlxhasxouvgeapflvmxgjyagoxavhhwckjzzjxzdksqmuwizptrfodwvulsqxutedqazctagynmjbuwudnzmrmswbaacywrnwtyebgkbxqpbcdxcszswfpthkfdmzdamuztaigxctsrlsigjmzwsbbeybmymootmivkzmgxjrwkonyiataoefsfmvv...
output:
vhnezeurkrnaaheloqmqqgutzefhazzyremrppvrlclvutbeliptphctuzeffhgpvupfhvwepvpvvhpqmwzbtdsopswvuqdgsinftxapwqaagcjdsvgqyjnbsacswyziekqrjmkxxhanjbdgkiwueevocgbyjtecafgimwjzbyuragoeicsvoprbjenxjuvxnlzsuwncpkhcefdctvfpcgacsgdvbwgdwefolhealzlzpbglxwtvxivhwfximoqqxcbobpuyneviksrbmsxevxuzxneorsuaxrasvvekboti...
result:
ok
Test #140:
score: 0
Accepted
time: 1ms
memory: 4024kb
input:
10 500 xsimzmrnrwkrhlqcudoxlgjohikinljmrhetqfzucreypgkxangkacnjgvzxlnqivnukorergxzmidkdjvluajuppwnlijnfzzkhawhhlcisvrcscjsdwsarerilfycpsrbgrplapfsrmcxrqhrztqgrslrbcxjcwuahohnhfbzpfnfilxihrkssyjtorcgorequvyokoteqsargqttlanlpaeivsrwztwymwnjmknihvrarnxhixaxbxsxhlfxcdkbfnyaqtactwzxfbtcmwdvdlcwyzfcmtljpt...
output:
adacaaaaaaaaaabababbcaaabbabbcbbccbbbbddbbcbbfcccccdcdceddddddeddedddfddeddfdededeeffeeeeefhfffifffgfhfggggghggigggggghggghghghjghiighhhjiiiiiiikiiiiiijkkjjkjkkjkjkjjkjjjjkjjjjmkllkmkknkllkkkkllmlmllllmllllllmmmnmmmmnnmmnmmmmmonnonpopnnnnonononpooooopopooooooqooooooppprppppqpqpppqqqsqqqqrqqqqsqqqqrr...
result:
ok
Test #141:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
13 78 atxrzzdogxijznphsjlluqlrkgskvyztadtywogwecslmxfvqnfwfrdwhplvwhphcldrxatunvxrob YYYYYYYYYBYYBYYYYYYYYYYYYYYYYYBYYYYYYYBYGYBYYBYYYYYBYGYBBYBYBBYBBGBYBYBYYYBGYY bybporjtlvekycuvihdibibipzsqbwcsqzudxvyebzclyhkzqrqiharctxhbkmliuywlamwpdxosqp YYYYYYYGYYYYYYYYYYYYYBYBGYYYBYBYYYYYYYYYBBBYBBYBYYYBBYYBY...
output:
raacawatvbvdbvzxbefgflgdphffyikjjvkjktbyemzdlllwopyonrnnrrsbqoqqilsappqrtpurup
result:
ok
Test #142:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
84 372 qipcbroojpntrdpkaexvlxwjoiyovtvihmxautephjvzpdjvjbqqfsuhsutaqouxxnehofrvqmjcutqifyirgkvmhzuacqwgodopnrtoaufvufswewrvqreefwdwdnbrcuuuorjebvsfruunekopkysnwqioiqmithyfszubxeytclafgnhciwajyuuxzlorqepcodfcwsngahmaplzbisdhgqvrpgogvjkngnbkmrdeahyezspwzlovgaxsqkzbhfbdyldilojyhugijuxjifhgspdqpxpbpjygz...
output:
gmskdfngrsqdewaxsnjswnfsilxseqdhvwzxuuvqsrewxhpumpthhlczvlmahfwsinvelcyyonszsrsbcesgacmakysinpyqeopitreofdawhtqnkhkkgkguekxmhwysqxaemnakvhzhvmcnmygyyewqxxaijysrxlpeueajmlmzjxxxevyldzrcgrmrpkwydymgdbguywfwsqnlpezpqexcaldmusoerkwwvdbudsamipudrspmpdgpvwvdejntfzwmgwjhsfppnrfhzlixwralsnkoszkpczrrdyigwnwr...
result:
ok
Test #143:
score: 0
Accepted
time: 1ms
memory: 3772kb
input:
40 500 qdeezcmiwkdfctpgdwdffklbrqeluimxulivoceryupjudrqekkbtjogsxgzsjqhbvktutpwpxzaywigylbssvoasicrtocmpdsjhuvxxmkmouviukufiqdtcyghmevuqrcfdxbavmkwhtleuhsbecvejzuulmwqodlgklwcyaoczmhhtihfwwrjsjzivodqeyhvoobzbjkwouxxtrjfbpprikonyscerskpyllvnodnxscxcqoajuqrodqjlaeptbjcfmbjqlfkaczlvjhvnqaiwkjhfxqlczlyw...
output:
hnyaimtfhwjgtucqpbyhwknfneloqrixuybixawxsszduxjighsmkdukevleogvbauaghqanpqotbhwjxdfxsphqkhftwromcetwjkmhqlscjydptpkslxxdnbvndppctejybauwbsrnyvwutvvecchtmmsuqtwgbuyioqjfxvtxivuutuxiwoubfsmzadfhkutepvvnywvyeeysfdbqcykhcbxsnlldwpvibubkzchiixvpxlrixrdsenzgagguzegglfqznntikucuizuucznjnupfshylocvekywcchdz...
result:
ok
Test #144:
score: 0
Accepted
time: 0ms
memory: 3920kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
ykyaaqmjaqaaurrmvaaw
result:
ok
Test #145:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
fwhawwfalogpawaocjss
result:
ok
Test #146:
score: 0
Accepted
time: 2ms
memory: 4220kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
acxqasaagocacapaaaayablacaarasaqargtajaaaaelqatsbscaaawaahacdanaapacadanuabaaaaaadpadavdwakaauvaaaeaaaawaaaavakeaaqaajxaxxwaaaaatfawaaaajffaaahgaaaaaaefhsmffgguauaaajaagakaahgvaaaayaaagixaabaaijajapuaadayjaaaaqeaksymlqldlaamlammaapoakandfhmanfaangwonaaonxappubnaaposoppwqpqaaadupaaaqsfavaqqtgqqaarrqs
result:
ok
Test #147:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
egagalsaraaorayppyja
result:
ok
Test #148:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
30 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
fauarfalnanaaptawgva
result:
ok
Test #149:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
31 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BYBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBGBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
mccaasjadlwmoqacaada
result:
ok
Test #150:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
38 99 amimobtouampmyfcupgtlsdjbtftablgthpaamgzurxxpzhqmahepdflzsnsiwgepjejgzvlbndsilxrhegxmxofimocmhunwvn YYYGYYYYYYBYBYYYYYYYYYYYYYYYYGYYYYYYBBYYYYYYBYYYBBBYBYBBYYYBYYYYBYYYYYYBBYYBBBGYBYYYBBYBBBYYBBYYYYB gyzmrybfmjlbxvzqqdbekapnixntkelxammnjmqzppfyfiarfhjrfvzsfsdfwmxyhnaeqktbysrtzteeutpvldzyuldvlq...
output:
ozzmbnrwthdfpglvdgyontgctxcetbbevvgudadapjtccuewocsjrztzmxenjfuarscorhcaclzjvjxtxgivvqtyrwegeiowrpu
result:
ok
Test #151:
score: 0
Accepted
time: 0ms
memory: 3616kb
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: 0ms
memory: 3968kb
input:
315 300 azzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
aayjfauaaoaauaathauuauawcaubacauaaaaaaejhvuvatqaevauaaddaaafdcahdaaaaaafdmgawaemawaeaaedaaadeaaaaakabaahagggammnaxgawicaataijxaexiiiaaxaijaaaxaakkajaaamaaaaakaxjaajxakpkkasannajlonaaxtbkanmaualyalacnaoarryasanlonwalaoaoaotaaaawlapqgpaetararaaeayaadqapqayavxaaasdjaassaataatakulauacaaaamuaaeuawsoaiaaa
result:
ok
Test #153:
score: 0
Accepted
time: 0ms
memory: 3664kb
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: 0ms
memory: 3620kb
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: 0ms
memory: 3732kb
input:
29 20 azzzzzzzzzzzzzzzzzzz YBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBGBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBGBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBYBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBYBBBBBBBBBBBBB ...
output:
saaiamkakaasxaadarka
result:
ok
Test #156:
score: 0
Accepted
time: 0ms
memory: 3628kb
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: 3684kb
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: 0ms
memory: 3632kb
input:
29 20 azzzzzzzzzzzzzzzzzzz GBBBBBBBBBBBBBBBBBBB zazzzzzzzzzzzzzzzzzz BGBBBBBBBBBBBBBBBBBB zzazzzzzzzzzzzzzzzzz BBYBBBBBBBBBBBBBBBBB zzzazzzzzzzzzzzzzzzz BBBYBBBBBBBBBBBBBBBB zzzzazzzzzzzzzzzzzzz BBBBYBBBBBBBBBBBBBBB zzzzzazzzzzzzzzzzzzz BBBBBGBBBBBBBBBBBBBB zzzzzzazzzzzzzzzzzzz BBBBBBGBBBBBBBBBBBBB ...
output:
aaxokaarykadaalfmdsk
result:
ok
Test #159:
score: 0
Accepted
time: 0ms
memory: 3716kb
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: 0ms
memory: 3732kb
input:
23 35 zzzzzzzzzzzzzazzzzzzzzzzzzdzazzzzzz BBBBBBBBBBBBBYBBBBBBBBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzbzzzzzzzzzezzzzbzzz BBBBBBBBBBBBBBBBYBBBBBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzzzzzczzczzfzzzzzzzz BBBBBBBBBBBBBBBBBBBBYBBBBBYBBBBBBBB zzzzzzzzzzzzzzzzzzzzzzzzzzgzzzzzzzz BBBBBBBBBBBBBBBBBBBBBBBBBBYBBBBBBBB zzzzzz...
output:
dbcdefghijklmnopqrstuvwxydadddddddd
result:
ok
Test #161:
score: 0
Accepted
time: 0ms
memory: 3616kb
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: 0ms
memory: 3664kb
input:
27 50 iiiiiiiiriiiiiirirrirriiiiiiriiiriiiiiiiriiiiiirii BBBBBBBBYBBBBBBYBYYBYYBBBBBBYBBBYBBBBBBBYBBBBBBYBB iiiiiiiixiiiiiixixxixxiiiiiixiiixiiiiiiixiiiiiixii BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB iiiiiiiifiiiiiififfiffiiiiiifiiifiiiiiiifiiiiiifii BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...
output:
rrrrrrrrcrrrrrrcrccrccrrrrrrcrrrcrrrrrrrcrrrrrrcrr
result:
ok
Test #163:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
27 100 wwwwzwwwzwwwzzwwwwwwzzzzwzwzzzzzwzwwzzwwwzwzwzwwwwzzzwwzzzwzwwzzzwzwzwzwwzwwzzzzwzzzwzwzzzzwzzwwzzww YYYYBYYYBYYYBBYYYYYYBBBBYBYBBBBBYBYYBBYYYBYBYBYYYYBBBYYBBBYBYYBBBYBYBYBYYBYYBBBBYBBBYBYBBBBYBBYYBBYY hhhhzhhhzhhhzzhhhhhhzzzzhzhzzzzzhzhhzzhhhzhzhzhhhhzzzhhzzzhzhhzzzhzhzhzhhzhhzzzzhzzzhzhzzzz...
output:
bbbbwbbbwbbbwwbbbbbbwwwwbwbwwwwwbwbbwwbbbwbwbwbbbbwwwbbwwwbwbbwwwbwbwbwbbwbbwwwwbwwwbwbwwwwbwwbbwwbb
result:
ok
Test #164:
score: 0
Accepted
time: 1ms
memory: 4128kb
input:
27 500 uuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuuunuuuunuuuuuuuuuuuuuuuuuuuuuunuuunuunnnuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuunuuuuunuuuuuuuunnnnuuuuuuunuunuunuuuuuuuuuuuuuunuuuuuuuuuuuuuuuuuuuuuuuuunuuuuuunuuuuunuuuuunuuuuunuuuuuuuuuuuunuuuuuuuuuuuuunuuuuuuuuuuununuunuuunuunuuuuuuuuuuuuuuuuuunuuuuuuuuuuuuuuu...
output:
nnnnnnnnnnnnnnnnnlnnnnnnnnnnnnnnnnlnnnnlnnnnnnnnnnnnnnnnnnnnnnlnnnlnnlllnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlnnnnnlnnnnnnnnllllnnnnnnnlnnlnnlnnnnnnnnnnnnnnlnnnnnnnnnnnnnnnnnnnnnnnnnlnnnnnnlnnnnnlnnnnnlnnnnnlnnnnnnnnnnnnlnnnnnnnnnnnnnlnnnnnnnnnnnlnlnnlnnnlnnlnnnnnnnnnnnnnnnnnnlnnnnnnnnnnnnnnnlnlnnnn...
result:
ok