QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#632845 | #7723. Hash Server | memset0 | AC ✓ | 199ms | 3876kb | C++23 | 6.1kb | 2024-10-12 14:03:28 | 2024-10-12 14:03:30 |
Judging History
answer
#include <bits/stdc++.h>
#define sz(x) ((int)(x).size())
#define all(x) begin(x), end(x)
#ifdef memset0
#define log(...) fprintf(stderr, __VA_ARGS__)
#else
// #define endl '\n'
#define log(...) (void(0))
#endif
#define debug(x) log(" >> %s: %lld\n", #x, x)
using namespace std;
using ll = long long;
using lll = __int128;
using lf = long double;
using ull = unsigned long long;
const int n = 10;
const ll mod = 141167095653376;
int T, low[n][n][n], high[n][n];
mt19937 rng(20040129);
ll norm(ll x) {
x %= mod;
return x < 0 ? x + mod : x;
}
ll power(ll a, ll b) {
lll s = 1;
for (; b; b >>= 1, a = (lll)a * a % mod)
if (b & 1) s = (lll)s * a % mod;
return s;
}
ll encode( //
string s, //
int x = 73, //
array<int, n> a = {71, 67, 61, 59, 53, 47, 43, 41, 37, 31}, //
array<int, n> k = {29, 23, 19, 17, 13, 11, 7, 5, 3, 2} //
) {
ll res = 0;
for (int i = 0; i < n; i++) {
int c = s[i] - 'a' + 1;
res = (res + (lll)c * power(x, k[i]) % mod * (a[i] + c)) % mod;
}
return res;
}
ll s2i(string s) {
ll res = 0;
for (int i = 0; i < n; i++) {
res = norm(res * 26 + (s[i] - 'a'));
}
// assert(0 <= res && res < mod);
return res;
}
string i2s(ll x) {
string s;
s.resize(n);
for (int i = n - 1; i >= 0; i--) {
s[i] = x % 26 + 'a';
x /= 26;
}
// assert(x == 0);
return s;
}
namespace prog1 {
void solve() {
for (int i = 0; i < n; i++) { // ??? decoder
for (int j = 0; j < n; j++) { // ????
string s;
s.resize(n);
for (int k = 0; k < n; k++) {
if (k < i) {
s[k] = low[i][j][k];
} else if (k == i) {
s[k] = j;
} else {
s[k] = high[i][k];
}
s[k] += 'a';
}
cout << s << endl;
// cerr << i2s(encode(s)) << endl;
}
}
cout << "done" << endl;
}
} // namespace prog1
namespace prog2 {
vector<ll> rem;
struct atom {
// int x;
ll p, q;
ll get(int i) { return ((lll)i * p + (lll)i * i * q) % mod; }
bool solve(int);
} b[n];
ll myencode(string s) {
ll res = 0;
for (int i = 0; i < n; i++) {
res += b[i].get(s[i] - 'a' + 1);
}
return norm(res);
}
bool atom::solve( //
int bit // ??????????hasher
) {
array<ll, n> diff, fun;
for (int i = 0; i < n; i++) { // ????
diff[i] = 0;
for (int j = 0; j < bit; j++) { // ??? (low)
diff[i] += b[j].get(low[bit][i][j] + 1);
// log("i=%d j=%d >> %d\n", i, j, low[bit][i][j] + 1);
}
diff[i] = norm(diff[i]);
}
log(">>> solve bit=%d\n", bit);
// log("diff[%d] = ", bit);
// for (int i = 0; i < n; i++) log("%lld%c", diff[i], " \n"[i + 1 == n]);
sort(rem.begin(), rem.end());
int len = sz(rem);
for (int i = 0; i < len; i++) {
for (int j = 0; j < len; j++) {
if (i == j) continue;
for (int k = 0; k < len; k++) {
if (i == k || j == k) continue;
// if (thatone) log("! i=%d j=%d k=%d\n", i, j, k);
ll C_p_q = norm(rem[i] - diff[0]);
ll p_q3 = norm((rem[j] - diff[1]) - (rem[i] - diff[0]));
ll p_q5 = norm((rem[k] - diff[2]) - (rem[j] - diff[1]));
ll q2 = norm(p_q5 - p_q3);
if (q2 % 2 == 1) continue;
for (int _ = 0; _ < 2; _++) {
// if (thatone) log("!!! _=%d\n", _);
ll q = norm(q2 / 2 + _ * (mod >> 1));
ll p = norm(p_q3 - q * 3);
ll C = norm(C_p_q - p - q);
// if (thatone) {
// debug(C_p_q);
// debug(p_q3);
// debug(p_q5);
// debug(q2);
// debug(q);
// debug(p);
// debug(C);
// }
bool fl = true;
// if (thatone) log("rem: %lld %lld %lld\n", rem[i], rem[j], rem[k]);
for (int t = 0; t < n; t++) {
fun[t] = norm(diff[t] + C + p * (t + 1) + q * (t + 1) * (t + 1));
// if (thatone) debug(fun[t]);
if (t > 2) {
auto it = lower_bound(all(rem), fun[t]);
if (it == rem.end() || *it != fun[t]) {
fl = false;
break;
}
}
}
if (fl) {
this->p = p;
this->q = q;
// assert(fun[0] == rem[i]);
// assert(fun[1] == rem[j]);
// assert(fun[2] == rem[k]);
log("FOUND bit=%d >> p=%lld q=%lld\n", bit, p, q);
if (bit + 1 == n) {
for (int i = 1; i <= n * n; i++) {
string s;
cin >> s;
assert(s.length() == n);
cout << i2s(myencode(s)) << endl;
}
return true;
} else {
for (int t = 0; t < n; t++) {
rem.erase(lower_bound(all(rem), fun[t]));
}
if (b[bit + 1].solve(bit + 1)) {
return true;
}
for (int t = 0; t < n; t++) {
rem.push_back(fun[t]);
}
sort(all(rem));
}
}
}
}
}
}
return false;
log("bit[%d] failed!\n", bit);
assert(false);
}
void solve() {
int _;
cin >> _;
assert(_ == n * n);
for (int i = 0; i < n * n; i++) {
string s;
cin >> s;
rem.push_back(s2i(s));
// log("i=%d s=%s x=%lld\n", i, s.c_str(), s2i(s));
}
assert(b[0].solve(0));
}
} // namespace prog2
int main() {
#ifdef memset0
freopen("H.in", "r", stdin);
// freopen("H.out", "w", stdout);
#endif
cin.tie(0)->sync_with_stdio(0);
// cout << encode("aaaaaaaaaa") << endl;
// cout << i2s(encode("aaaaaaaaaa")) << endl;
// return 0;
cin >> T;
for (int i = 0; i < n; i++) { // ??? decoder
for (int j = 0; j < n; j++) { // ????
for (int k = 0; k < i; k++) { // ??????
low[i][j][k] = rng() % 26;
}
}
}
for (int i = 0; i < n; i++) { // ??? decoder
for (int k = i + 1; k < n; k++) { // ??????
high[i][k] = rng() % 26;
}
}
if (T == 1) {
prog1::solve();
} else if (T == 2) {
prog2::solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 103ms
memory: 3636kb
input:
1 ndfhrzmmlq dbtusidgtk tlnputvfcu kgmsziohnu bmregaioak teaxovdyoq lgpyztanem dukimtyfvy wtkabxxcpa qdoztexdjs ptttxbxies udfaxiqglq borwqicyvy bozegnbfag auktitljge vefnyoyqre fnucuohotu rggcxcuzry hlxazgynem jbweawrale vhmlrkjnym vkzmtmacnw bhzrczyfrk yayrylktpo gopjybgmze uquulirdzi jkrqoapblu a...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 vhmlrkjnym qlyffbuutu bhzrczyfrk lqcpwxefhq wscdwkluos ecuuijrrwk wtkabxxcpa cvzlhdiplm jbweawrale udcxpoulns hqqjujhmfg mucgklfkyg auktitljge myngxvuoku gtnxszwrxq mrcbgmgmto hxlcuddnqo tlnputvfcu adnbhvonau xrhcepnibg dkrnywyjdk thtmvwgmuc aihbjugisa tirwcpehqu jzunixvmwm rvwsbyrxls lgpyztan...
output:
wilyevxwyy gcfffvmuie dhfvcyssbs nxntwfpqfo lzdblqdots xlzrxeinse wkdrewenay itozirrmua iohqiqvmxk vuhqetqnlc wloyxacojc kodqlkfprk mbzqvxzrka bbdacpktmy dlnsfkmwae thftejfyxs wofczlqcfo nglvqrrfxs rjzxebjkae iyvhnosomy nyyatfstka gkicvajyrk mgznsysejc foyhnarklc miekdghqxk gmrvppoxua wilyevxwyy gcf...
result:
ok 100 lines
Test #2:
score: 100
Accepted
time: 51ms
memory: 3576kb
input:
1 turfixfrnk uaoqkmrdsq vbucqfanwk wyhqaahvys zqdenynbzo ddgufzqfyy hlslcdrhww mpmdckqhti sonwgunfoi zixqphibhw gnskmkoegx wlpwuccyyh qxzeirwxtn vitrfddnbl avvxvqomxt lluxtzrqjp sxxnwcwzkp xshexbsqnt wlspwaidfb ugivehfsrz lbavoevzsv dwqabpftid amkpsgrtuz ofgupanijv tulhllqpgf bshciozhrl ozeurkaeph e...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 ungpiagbcw vxfiwikhao wyhqaahvys dascqtrbjf memghqcjxw hlslcdrhww sonwgunfoi lbavoevzsv ypbghkirit vyhespogsh osbtroranm rutxvgbasf ddgufzqfyy jutiypftms dwtifamihu dwqabpftid ofgupanijv ozeurkaeph svkxcroxsu zbldcgwesu aanzcohjpi ntmxxtthqb turfixfrnk wlpwuccyyh nkzdcgwfxs hbzrkdesqz sgvkvafa...
output:
jmbofxzrbe nujgisbzwd xtmlblrkrj ltomppcyts cfxbkoufrf aoilrvwyei yqedatllin hjrimolkog cjgczxjeat tkysttetjy zbusszevpq cnnhdwnbat tylgxmebld rgtatequfy uavxkvdwyt yighoklain asqggwlaed olasnaaqlk onzxebwutp ordapmpoxl ppxnjaclus zcyepvbshv dbvukzichf zxbcahmtlq itfekgedcw xyzjkaiuiw xyrqvmaiyo ogk...
result:
ok 100 lines
Test #3:
score: 100
Accepted
time: 169ms
memory: 3576kb
input:
1 rsqpbzhugc nmjlohsupw mixoyrjcme oigzhcerva tklqnofoqk bplosblsyi mxgtupxesu bhxfvfnxzu sviytwjyti nlpyqolgzk pgywalgqqm brzuyexpjw bfsxcgptuy omdaqxnkrc cbqjzcluru oyjmacqvqe xixigsmovs hgvdnravpw qgqvjuungo mqaweuggmy jarvytkcvi fhqeiedlla sskjjcadxq ycjhyfudyg sofjxwwyvw wnwpkplolk jmgckbicrg l...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 michxxunha yniwmkpqgu wzxlagnaxm lcliqisuky bvtuskauri oyjmacqvqe brxypotway brzuyexpjw kncympshgk bfsxcgptuy utilakffgy tietmjybty nvvnkndinm xpnyonxguw trsszxwtoo codcsesvwe vefktvjqeg qgqvjuungo philwkdtya lnmsylejsu bslfnnplig qkimfetfbe xgdhvoplos telxugiylw hrrxmnuati bplosblsyi rsqpbzhu...
output:
gtrvtpfone fibjanxlme emzsrfjsok fpqwhigztq vymzmyygzm cszseiwzje awxofyfdkm rlqipfazle nhlmpzpudg nacnkdfvsg tqhnvfoidq spzhlltzfm mdpesxyxls doqfwnptzi vdjyswjbxg qjaqevctws fjqzjoasgw avtmtzalby sprypzcoug wzucrwstqe yeipcueeji gbktsscnno jzzjlokcdo ilvgsnvvzu qwjeiccblo rtxmteiwma ampmzvctbi fyz...
result:
ok 100 lines
Test #4:
score: 100
Accepted
time: 150ms
memory: 3672kb
input:
1 icqkonqkpy uzfrqogyrs ldbradgkfk eoeirgotfa bgnspyfzqo bgduwegdoa enapjypexk lbecfhhdss uwohiehzzy hzfesprttc yfxcnsxubm cjoourqhqw qthnxrlphu uquvbrojnu mqtwgjjrnc ifxnlpicgk donjimkumo paebrdozfi foujutgfpg dbspfkeiuo accnfwwnak dlbwfxegcg todstfjkgs fbeinbthre duaugaaluu bqaftypxjs avrljihkiy j...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 fgmqdpaziq hejhlqjswy fbeinbthre ownoleclqy lyhhdpimls pfjceqizgk meeqrutnfs gsrrmrslhi dnyvtzspqg jcyqifylbo enapjypexk avrljihkiy zjhqehvkpy vuyeomvpvy tkrhqtdrhk ggipzpstue jzmucbtxus onabfocigu uwohiehzzy mlwheblyaw escwbzsshc boimsyxowq dlbwfxegcg bqaftypxjs drhugrrywy lgzegfdgnm crugybbl...
output:
dahgltboke afyyfmxfje zlafkmuqii yszzfglozy gwhrzxftqs lehcgaxani afezctvuny nkvwaatjre apefpoxqxg jfqbmjrfjg jmnufzylzg kfjioyijas bjrdutyqtc kjujdzpzns eqnbpdpwtw cxagcxwudm gfalhrbxsm lagizznnxo jkrngotvjq fkbnhtddoi emhiwzzxye ywmniqsyvo rypgczjohe skribswvhc qmjlhpjyly metnrfanzu iqwpsvehbu kiw...
result:
ok 100 lines
Test #5:
score: 100
Accepted
time: 134ms
memory: 3796kb
input:
1 giwjziakxa gewxbsrrui gawmttmsqm fwvfbklnlm fsszyrocfi fopxloukya fklxocenpo fghagfskfy fcbfnzkave exunljfljg sgndrboixi sfcxleiorc anmizpzzha drfuntryyy nwxqvxwads amlszfoehs lzoaksvxqo ypyolbxgga ozbpggoumq fykrszubfs gazkyjloqk thcnxccdxg eydzjzxrmw srkcxjgbgq rtwsiqlsic ajyhuntgrm djhaydusqc p...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 pzxxbxfcuu vzpowkltfq vdkovdlyna vstjnbyllm npuekmnlzq nzecrmpcze vsevzsnybi giwjziakxa ogibsdicri exunljfljg imkubxmank swqynaxqnw zrwjxtugtm qrsjpwcvek yolrzexruq qiapnkisfs phbpgqqapk rkboicosyu gtgdftxkfu ajyhuntgrm sfbddekewk pxtexujvty qjwjzjauda gbkxszvvas vmcimlnmcs flyzsmfdio xncxofqz...
output:
gocztenybg wvzoptyqhk aididxdtvc vmyjcqkchw hlinlwonwy byhvncfems itwhxttnpm dqdniepwze iqubagevpo keyjivuyxm cqqjwzdgvs tsjzondgtu tscmzkgyog hzokzrnrpm qzrtmftlrc nffrslkrdc ttivddqdts pcrzbotmoc tfifvawnce lzgallmadu dchpptuabg yuqqgqzafs impgvuvbgk nodrsfrnam tuusuzfjue zdqvawzvsw bcklsezfyo vnx...
result:
ok 100 lines
Test #6:
score: 100
Accepted
time: 68ms
memory: 3632kb
input:
1 nsmlsbfzmo uwubrisfoo wcmyjkvoce rjrbuhpzbk gsglxzbmmg qchculecis tntajrxuqu raqertipkm ioypspkmpu ueshmgdmgs fqixltpycm yxghhwszui wqamyfftma jezfsleskk ervlgltpks szszakgakk acitnixojc qkzymkkjvm ghexvwscmy mrprlnxxrk eyrhdbrfas wzndzvzekk mbycqvrbbu bhaqwcqqfq hbxotbvcri aapwaosney ubnddraoha g...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 tduefdnhew ppcftqrvsu fnkycsjleo ntfkrtaefi acitnixojc ubnddraoha gpwdcgxhpe jdymflvkei ttcggeneqi szszakgakk tntajrxuqu hbxotbvcri aapwaosney ioypspkmpu ermdowddqs wfodoussys mrprlnxxrk tezbynuclg efpkyxdsmc eyrhdbrfas nznkqqvgam uljnoamkew rrutcojrbc siuytvjrli xnmxqtuekk uitqgtdnxm sphultcf...
output:
avgsvlkjys msodtxtozw ukulkodunw xyjyssafek ntfofpbciw srryerkphy rmwbpsewxi oopvuwoqss vhdtudmkoa gpwhsujwak rjtyafwfdq mbdifpgwlg ckzestqdkm vofgefldlw vukfdqzbrk mdnhzabdby utqpuohxki yhomapifoe egetcabblg vracypmvxc tficdxfgju dirsrswxps tvssaxpmok fwktfnlkfq wwozrfpbdm xhoxcbdqmy voqeaicjgy urt...
result:
ok 100 lines
Test #7:
score: 100
Accepted
time: 146ms
memory: 3676kb
input:
1 neoxxtssbi mcfriyyijy rslozksdcy ebgqvdacgi xcqwwbwfuc wwqhchgnsg djevntfaau qoioelrqts kmblakslxa lcjmbqhlks rotichrcuw azhldhzrmy cxecqmtixa juuiviuamw tgdiliamfo urchdutxdq anxkkcvmda tzdsfpakyk iqsciictze vewfzcyzam nwsfibsnmk rmizgyqbpw ynsauccjwk mqjndhwwxo hqkldubcfc lkgyicxefu xialmrtjca c...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 urchdutxdq rdpdndxdvi wehsuqsdpc guhiznznyo jkqpsooqlu xsjeasxsci ebgqvdacgi pyvlnttunc getmbcfwzo vqlfuqgnoo kjgwfkmbdi upmgiskmjq eegtnphyso nwsfibsnmk pctuhlzqvm xyegqatwow xabqjxdnzo wjisnwamlk cgoyznmrny nxuzfpikqy tzdsfpakyk zeihxxfqeq pmejsirizq rmizgyqbpw rotichrcuw tgdiliamfo snqutcpm...
output:
hyryohwwuq yehfkkieqo lkhdxdpupy lepcyozgfa kbxtdwbiaw scwosljueu eltdfrbtjw dzzuxttfwu ykqarwgspw xbxviikinq bynfyvztfe sdxhnldpcg kojuydvgrs ligdgcalme fpdvczzpra lwxirbycis fjrhrbcvju fvhtlwodve vhgikfzmbi kcjyvwueia ulpkumkgnm levfgirmkm ohhcgirase ragdsjudvu nlpmtkqmho oqwfqqkqbq rhqjcskzdy qzj...
result:
ok 100 lines
Test #8:
score: 100
Accepted
time: 92ms
memory: 3640kb
input:
1 ochgobkxto ivxlcwnlca lqazjqqqso wkrxijuore pfwezbzexw qbnwhtenmq yxsxijkojm puliayrhok orrclmytbk vpkgoagwwm rjrstxlalc hlgjvnfzpy ydnsoidfim ktwtllkilk xfgcydbykc trznvjfolw ykligbcciy bpoalasvei rougmlrsca uynfvjpody njelrmjnqe uflsyqmzig zgyibdvaym jpxytvjody qvytwbxpty wdltmlpuci boadwlzgmo f...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 qvytwbxpty hwcdkhowsg aosanknawu pjducwbdxg xfgcydbykc wgsihnjzzs jbghmkuafo lfpavwtcik yptvonvfpq ktwtllkilk njelrmjnqe flzvqtbqhi lqazjqqqso llcyqxwovk jucjfacpvq icbyteuamg elvatuvliw orrclmytbk urxbiywwvy qbnwhtenmq ttvixcyqqw mtovxbayze rougmlrsca ydnsoidfim qpwkkydmly rdfjtoivmy pgoekgev...
output:
lukecwtkzy pssgzmiwes iezdfllena jkpgupcnia nnzjuutfks lrkvbpdsoa pglkqswmeq uvcvmfezae vilpenfxjy xuimbyeiyk qkrwsajpik cscxlygdoy gcnvrvdnck gdxvbuqgga ztgzrnawry dfirtyssdg ltzkgycguy osnxztxvce pjdqlyjvoy kwxkewumfg atsvhjflas ywqgdpnfci uzbxevxjje bxqxtzwbtk rqzmfdehvm orhgwysinm cvbknjrrrg oxm...
result:
ok 100 lines
Test #9:
score: 100
Accepted
time: 134ms
memory: 3644kb
input:
1 rvrsmkhzoy mdobwnxkfo rypmghsldy jgvxprtckc mchjyrzjya akxxhilhts agtlppcvxe lpuaxmaaik ilzrezcvbk qvkimclgce bdfefppbfa wmhazgdzqq uvodkkojqs etdmlzoyxe dzwcmtmzvw rzcswfytow ykdhztbttm wclohnuhus lxdqdcebuo rqcruybhlg htigntnptg sumkxnjvbe cumzfmlujc dcaibmtdpe wodxrlqely abbwuvksmm oxgorruicg g...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 ngqgmcddks aixoatefka skouydvqou rzcswfytow abbwuvksmm wclohnuhus asgzmznqkg udupipbnno ykdhztbttm hupzhbwgym sbvmtmoeja jgxahxipxg tuvdkroals bdfefppbfa nsohbrzcqs anvupxuows lxdqdcebuo naejimhddw ngaolmajma htigntnptg gbbctepewi npswhnxalm wodxrlqely aowlymiyzi kdnxqmbjvc usqcchyyoi isqwixfy...
output:
tdvmlpdtjs vjhpkjczia upywmgpydq ttzaybciqq apbykrynws ppzqipjhoc sruqgfqgqc jrgaildjpg yxskarphpm cskqrajxnm ejlzdrqevc xcdwtugdgi myreqqtylo ohfrdxioxu uqjblbofdi umiwhtyade zklkagnmsc khfzgxctmq spsuhsavik oqflwgfnzi afazbrivle rmucasodje cjqgwlgrtc vcbbaacntw dtmbpyesuy ciadgwewxg penkjaoiba fod...
result:
ok 100 lines
Test #10:
score: 100
Accepted
time: 30ms
memory: 3632kb
input:
1 arbnrfmnte ncnuerhkoy lqsdjrtpqe whopggxcww tbddukryja bxjvadecaq wwioxkhnxs dxzlmgciag xciksqokig cjjmqpruvs akmjbskihu hnseocpzii tdqfgkyvec xqwxufczzg qchserukhc hqairpmkqm gdkmammibu hiuncsgema xpnwffwsqe lhrgxbrheu ljaeglmkvu mxoooytnde xmrzfrrcry wxbzkqeqzq jkujduaslm mxfctptkrg llevkqwqeg w...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 tqvmseghgw wlflwimapg jkujduaslm xpnwffwsqe nimkjfmalo bxjvadecaq uautrtlnwg kzuzahowwi etwgtrvwsk mxoooytnde ulvnvwtnee wxbzkqeqzq mxfctptkrg hiuncsgema gdkmammibu xjevysdlxi mdnwoohhzo lhrgxbrheu xhwsivtbjk akmjbskihu qchserukhc vcuvpvpvte tbddukryja bmoqqqhrhc nwiuaonghg wvmbxsubka qoikgznr...
output:
jaxqouilio wogksgbabu gzlyvwjctw azwndzkuwy ogsdmegicm dbhymdubac aesqtoessi glnzlozddu etsqkkzwjg zlgjnsfuru iigpzklqei ukujumpfha acyblfjshi ppudlcasjs waczfjdvwe vwufrbqhha btmmvlibyu qevpklhnoe dmxxecfnno jfljdixrco zhzhlawxuc ihursafybo mhunxkuncu ngushtyeoa cxhnhmkofm pevendvgww ycnyonejum ivv...
result:
ok 100 lines
Test #11:
score: 100
Accepted
time: 180ms
memory: 3584kb
input:
1 yakjocgrzm whtdzqygtq ztlapsvnbk ijlzkhykwu wdwajkhafu pcpdmzvhck nfrivcpfmq qncqhsovkm yywzyvucvy mpalumfbva ujttfcqapg kxwqvqpidw cxctewctqm gtsrhangsc gwbvnjhwta dioopogics cqfuaelige jxsnhioejy vvklgrzsrc zcmaebpboi gbuzdudkee dcprbbuvrk iozqtuezau zhfwypztaq oerunfpcam zpngbxsuyg qhdimwjvee l...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 orgaizaubq vucxqnfjvq dbfplzxxgc pcpdmzvhck zvnwxivsru mpojlglodg wdueakkpau avuzvupoii jcdxjscrxq hxfiukrbbi fvecravlck gbuzdudkee dcprbbuvrk bwcgybjoog lvkhurqymu wdwajkhafu yfjnnukuxu ripqkptvsk zhfwypztaq iaigiorlzk octakrqztu xtzzasmirq tyligaptos scuzbrkhce oerunfpcam ldlktvfkhq gtsrhang...
output:
blohpsamtw qncpslhlqa oroycundii rgnzizkfbu ebktsufinu krdhowsuim iogzxdinro vfounqkake fwmfbytwvm ngzuilpxju gnhseavvvq ohkvastjpw pejqdfvyca ewwqdxttkq dwgssbqzgs rghybymyeo sbpmbdhqow mhjssnldba uizmiqnszs tjmzggthtk fsgdozagwe hvvtxqgapg qtdudkzswc aplifinkzw smigbqxvcy nkilmwdaxe yfcofsknwk gcv...
result:
ok 100 lines
Test #12:
score: 100
Accepted
time: 160ms
memory: 3800kb
input:
1 tddgcknrbm knmyqwkjik bcqorrpdto qwocewcaiy fvfnejwzco tyqvqhaaak hgwbonldcm ttvezdeiiu flofwcfpti qibefkozic pokfsmsnac ngfdcwlloy jmlxdjrwaw qmxpefwhpm kslijhgols fxvnksnoxm ijufcwljri erxcqflfks teqcckkcao atxfszhvui ftgnpsckzo gmjjyxfice ssmuighice luwdjqbhoi tatcpyzydy myxfrdsuss huopnancdi y...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 ottwsllqgi atxfszhvui qwocewcaiy dyvzzwoxxs uoasznbevi kcpuwvxszu teqcckkcao zacdfhonrg fxvnksnoxm hmvtympqio kkyrerjduy waznwghfdm fbjazqmwgu uiurcoqvao knmyqwkjik pokfsmsnac jvepfioeja bafipjhlha yddoyyzvqg cvxrhcwzxy ssloyxjypg huopnancdi dzzmprxfto qibefkozic ttvezdeiiu bwdzfzgxju ssmuighi...
output:
pfwgophdbs jikowwjihm vubhgrltje hnsrndvsac hehldvdmoe irfmucmhwo gvzkcbloxc qgabuhbulk gfwcjgvqsg gfuiunttaw flitcuunwo ttgwqplsok xolamrlusk uvbjmrxeko oieaguihem vuigxfihcu qloinlbmhk auqyzktzoc yuwujmwkxg njfoevnpus bbxrhaaaga mwleaejege eprkmydlom nosjglevzm wfkepxcdoi gxxdjkomla ayvpgzimgw miw...
result:
ok 100 lines
Test #13:
score: 100
Accepted
time: 82ms
memory: 3580kb
input:
1 inqnnuvxnq qjycmatwmk xzwfxoawxo fjkxwiqyvc mmqeikqcfa tjlzhtyhbi zzyiukpnka gkbguipvfc mnuthnzemo sleuiarpgk qtrxmojmea hrenylyhjq rqcrwidtqe jjvwgpfwto rcqyrteory jrcpsmagzw koxofcnpgq chkuyugtau zgwwpjbshk cnykdzjgqk sddmrmxeay oiwgavhzry josxecajxk wbzefubdbm vwpcmlcbsk tufztwezoe ehdmtgdnac s...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 agcjkjzslc wbzefubdbm rachsgkhpk mskzgyuxbg qjycmatwmk nrbokwmphg hyctioltva xzwfxoawxo koxofcnpgq ujqpskszge izuwlqcizy eakpsnzwss zzyiukpnka fjpyijzboc zgwwpjbshk qziadxzzcq uezacikufi rrswpgzkme icnjnfhfjk qqplhslpka wduporufaw lxwmjhnnmo hrenylyhjq hgpanpdkie tuarlthciw qqjytqhhtk ehinxssz...
output:
tqmhdlhabw lwbxenarhk xjlxyrtkkk yvbavnfpdi ksxuyrdkdu vyjklirekc qitkldmiuo sjdzsqlqca usdlxtknts jyweehlolc aobsgnyoci bdbptnktka rkrpyjwkoa yrsvpdrgte esxgiylbry zlylrzjsxs dxxmotwfey umprqtskdw pizaygjnny dhznumccbm ttpkytcfwq hawkfyjaow htxdbovyba jmueofzfku jbkltgkqjg uefkczhkco enlawlfnyq xpp...
result:
ok 100 lines
Test #14:
score: 100
Accepted
time: 94ms
memory: 3876kb
input:
1 kppszppudy pihgdenitu vnrxpbhgpk dfvtjfxnqu mkstlskdxy xcixwmtdkw jgsgpoymdo wxutqzaeca mbqlaqyfgg csfgsqspqg ndzhvmwmuy gohhqxpwtk vwvpbuitea jhzzplcwdy livfajdedq osqojuqtde gynhygnzay qbnoxwkbgs enxxjxsvka vfutfvcvzg bvndbdwytz egvutyrteg idesbmhcxd smdqivenpk rcaciqqegx mytjythjnk vrhyvlpwyf q...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 bjcpmmkutx izktlmilmx esruoinave iekqzgmxll vrhyvlpwyf rhqqfypumh lcpxhpanov mifzeupgqt livfajdedq buegdjzvjc gxncrdcznk fdzzxjygmc fuleobdxfy brhgulcbto vfutfvcvzg dieoenfqot lyhnlyispq mbqlaqyfgg mkstlskdxy jgsgpoymdo csfgsqspqg cubdmiqohz bqbomdibkm kxiotgoojs tnhzdryewj ckgnpzdfhg idesbmhc...
output:
mvicojohql hvytkxaqhi qysiaearqo dwvudvutgm dkkewcfbos etihltbtii hmbdmqsmob kadupbkqhx yqdvcbjlkf lkfuguogah bbnrmrklcn zvccsornut fomeshcjwh ypinlgqfcg vmmtswampn vswkezkxba qzzrwtwjxi jmpahyiias tuhuqczocq ewbbncmavd bkmwgksfrf ezehpekeff wlbttvdkxw rsqhezbdir hsvfjaawov lznxighbyc uysrjmyedj kyk...
result:
ok 100 lines
Test #15:
score: 100
Accepted
time: 136ms
memory: 3832kb
input:
1 gbjxcjwqdo ceubopqzhk cdcxbpbwic fwkjpidhfq nkqnduvgaa ytvhtbdsrg nxytjbctfi gxavzushqg drbprhyjya egbajovacq mysuleczma thsvdfmtbm sqikgwpfei ymuhurorqy biamexucxy udlcgybhrs kmnrrgwdps jzxfcgsfue lwdraxrtxo gwdejvbfsw iguvlkwkec ocnvzcbcim lwvibeevtu jolosparqe csjtdlsihs twgipspsww ztkxmhzxbw c...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 ocnvzcbcim lwdraxrtxo ceubopqzhk chaiumvopi juevircbse rimphkudhc twgipspsww ztkudbibbm ptjmkjwdpy cdcxbpbwic egbajovacq wehumjzpmw ipcjngbqwg nhumczyzao atygsazzeo mysuleczma gxavzushqg aevfnsqztq zrmumtjioe bdazdiympu qapsisjdfw mcefblrulu ymuhurorqy opgerovigs ygfdybonbq tqhjweffce pzgzmnui...
output:
fjtwpkampa vgvvpashty jurinqqtgw jynfugbkns jkcciyqlvu vrvppwikiq xlbnvbabgy vwgvurwbty zrxvugouyy bkkbaajenc dtkhzzheuc wxrzrtvhew qcbsemmviy rqqlemakks gphrkuorxk dcmkjqpxfs oigqmacfxy yypzhkvjcw ngqqsqgtje vpphboswsc swccvdgcoq ksgpjmwsyk gurrzrzktq nycokqqpta vxjvjawcdi nnnxxlbeuy mwfgaudixk ppc...
result:
ok 100 lines
Test #16:
score: 100
Accepted
time: 176ms
memory: 3616kb
input:
1 vybgrwbtro vndmofbnba hzsoiqjgfi hjumbdyzem trjfrtwrym swkvgmckni eyzgtgqcxa dzaoedlvbo pworncpnay orpquebeve pqwuhwdgzu yvemdeusbc aaikylvvta xnzxeeceto rgjnbqduaq jlxznmvwoq wioxqkggso ckzjsgizca dleueebnfg gfsfszpjci ileyhyygxe fgrxaoxjwo tbpwhncgnm chbmamlvpa edzuninlde txcyuqtbbo jmhzkoixwk r...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 arxarwgrxe ckzjsgizca ddkiygqisa jnteqdmgpc fhlexblrbq sdworyoxru uimysfyrma sbvsfbpvjs qmjadytdzu duiviqnekk nirokjpkys ulfwowluoq pqwuhwdgzu npijalnxry qnrbcrcdla qiadiggvmq lzuifpwfue axmeinible vhzqgyyyre ernnndqwbe sbgclnupcu inycecerlm gfsfszpjci igwtolocps tmunfgzkry uzzqvznxla emthzzsd...
output:
yrfkerjvie ahvoxabfuy urjntvolkw mtzbrevkem btrbyavdgw brgpuqufee fhqfyvmvdy ttpinnxrse rmskrkmsku aztpswxyio efdvvhgyyi dddzkxnqmi epnderrizy vrbybuybpc grsfscvjyo vrzcxbufxg bjvkrvalew rfdjfqmwuq tkqigwjtis widhpwcvnq lxirfsfugc lkoqisfskg oxmuprcdqm arfwjnqbyy kxfrozowzy hjstdrjoek hngwtoxwos fpa...
result:
ok 100 lines
Test #17:
score: 100
Accepted
time: 124ms
memory: 3636kb
input:
1 zbjbguatfm zkctzqttoy brnezmtsgi fxoigiapfq mcgducokmw uforowjeca ehnxqpkvzc qidvzhtmec ehkmozjara ufhvlqfnlw nrqeykqtse yhqqbpfvvi ldlkxmsixs bqjwlhxzko ebumugcldy hejiuwmbgo qfntrfezum poufjrhxru jucxnkqbvq hozznzicms epoxpzcecg fbqcojxcmo lzophbnrcw sjsxfmfuic actryxtvra wstskjzwqa bealrjuouk c...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 duhxjhyifi epoxpzcecg bealrjuouk fzviktnpqi xemadviuna ctwufitjfw jkrdgcikst txgdrtafne dcuyhrctcr axtulaklva copsgwmtgq fxoigiapfq brnezmtsgi kbuovptzpj kcyypxshju wkwxmuukqn tqljueuujh submmhkwqs ldlkxmsixs stvjdobsmz bqjwlhxzko qidvzhtmec hozznzicms lzophbnrcw nrqeykqtse acwubtolzx sgnpwhzc...
output:
eombtumazs ioxunwbnli egbxgujrvp pjdoyjlorh chmvhpchrj zvucrepwmx enzogxotxu eakniqniew rgprnimzhf zeginzjdmg vetgvxawpf lazclpwkri leushgrqnx omaeaenvez iqmivskefl lijucepphm grlpisevoi arjgvxvqvm jqfqvzkcau spancwaaqk ubpbkquvvu pospexcrly ychjnlmwzq fvykfqqhbj eevgvjxbah hvauiuxlyq tphwrxleta eoc...
result:
ok 100 lines
Test #18:
score: 100
Accepted
time: 50ms
memory: 3576kb
input:
1 dnwucpsfcb jmonogxhjb xtqjmcjshz ujchwcdlyv zgyisgeohp mnemaomzih iburvbctax lyvabrzvll yefkunegnx srzxzmqaih zhucslufqv qsnawsrwrh ebiewusden cphpmhdvhh zayqegiwil pinrwivzmr hvstkdgndx agbswqemwr frdisjblpb rmfghfjdxl mlrjyquemz tpqqbhjdjh lpvmgigriv crtwahidld inhbmivdzj psibmzffzf ywiprufeyh x...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 xtqjmcjshz yefkhgxhos adlofypeho ylpsojbenf frdisjblpb shkszwwbrb ebiewusden pinrwivzmr zjivcdihly bmqnkhysaq vwdksbwhwl axvwirodrz jmonogxhjb ctikjbmvzl wztmrehvxy lyvabrzvll fydvkhidnj kknkambgfq dduaabexua ravwkwypnr fuirmditkn akrrirfajs mnwemlfzqd qilppisidm qxeunertfv zgyisgeohp dfdekkzg...
output:
erjjnmprgn qtaxkchgjp ztapctjtcr qofpocsmve qnpakahvbw xgyuiwjigh bjuvioezlq mbskhbpotb szfwqjusle lyqxfaoksx qipzafrvox npmvzzrbtt afaafqnmjf lcqzncqcol xvtuogydyh yfkmyeelir cyjtscpync zohnarwjpj vqnkfogchn fpzyygubco xshxxlhkiy ymvijyvxxm lrflgwzltl vykdutlgso jymhgpirfq rukirweokt uinpfpnkou wkn...
result:
ok 100 lines
Test #19:
score: 100
Accepted
time: 117ms
memory: 3800kb
input:
1 xmnyjloenv qkhfxndxxp gouwwqjuxh uacxgvfvmx esfhcbrzsl mrcaijuhnx rwtcztmszh ujepceviap uckkpruarv rckpogiwyz jjtdlzqlwh geowalazev nypxhkjekx jnbdxbdbwb lfgsuhaocn bxcvnedouz zgumozvnqh edsgifzuef cxwhecthvh boigiqgynt gyjxtyejlx pochvqzttf rzmryelhlh wpqudahhxv otcmtumtbl hafzkujunt krzwxlebxp e...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 zkqctnvvzm ubqmvnbpsi qkhfxndxxp esfhcbrzsl rpsvdjlouu bwntlxykpn ujepceviap yrbwqemhxo gcpzbwbwna ygprnpxied qyfpmhkcvs kwlbpnoads gloverduip vpqqwemuym fycffunfom lbiygsmnzq cagwfzlvtl jjtdlzqlwh knsxynhake aoumkwidhr uccffyvtkj hcemihbkin edsgifzuef zbvjwidwnu gyjxtyejlx nbumzizlkb lqrscgpr...
output:
bljzpslsaw rdawlrrxfg tmtleuzicr ghvrogqsly etdwhbpcth tnttfyxsjo vehovdshhl qdsklsfgnv izchixytdo alyjhfcapf vspbskfvsf siukpxmpwo gqtwxrzqkt xlgetzchfj lttjlmuyqt thzyjdukff wutzztypkt fwgrtqdwwj rhuzypcide uddqxyvsrg hehkrfszah odnqbpytdm isdzaupblk enabunvdmd dsrbrusllm xoopwjzohx dtcjkdlarj xim...
result:
ok 100 lines
Test #20:
score: 100
Accepted
time: 178ms
memory: 3636kb
input:
1 ogdwgsinna wcceafnkwc bwrhmhoiuu fpxgqylhjc hhuboeegna gyhsdytggo enmemiegps abhmnglhom tntqgtojcw kywpsvnlgw ttykkltpls ckvrnelihm eyynbjisee mccyljvzhs kwwxzmjkmw njgrtmqtjc dyytrrtozs tyrsdhbzci jfrqgwtice frwwtgdrko plpwnmyhgm aqyqxkdika byymdwqvia sigpextjpc imryaeuaji atwqyhbhdi cjecdibkny j...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 hhuboeegna ionfqjhqju ruovgkxxky lqujjumfbs vrgigkgwky pvkofuysci fcbkfomppm shpqommlnu sdfcssteqa mtiaxacaie kwwxzmjkmw welzjrpleg ztqkqihxgc psnmvrvuhw frwwtgdrko imryaeuaji kbdygjhtku eurhnzckhy dzqobfkydw mccyljvzhs atwqyhbhdi agjuwzypxk wxpbwhkdbe ipqsuhpxoo bmyoxnhaws bdntbqcmvo pmquomdq...
output:
twcbsejywo ohdotbbuzg jnnsmaqpeu fbazjeynyg bzvlaprefc ywvsjlphau fjjijeffqe ydftuinmty bzzjjctali csjulppoug fqedphzpwo cgormybnpy xodfiwwezs atttcdirwk ldukiixhem dcflkljjuy igvsmonogw tgaamugkrg svuvkcxxiy rqxfgvqwjg wmllzmvovk edidrhruws dhyquhuivs bieixwiffu gxnasnxeii hvoslzrosy pvniumsyty ujq...
result:
ok 100 lines
Test #21:
score: 100
Accepted
time: 161ms
memory: 3800kb
input:
1 oftvobdsdc dbolfyudgm yfnljcftle zrqvxlmore hlyqxaooym vokwhvluhc pzbmdweera qrwmlcrucg xsvxdpaoou lbzshheocq vliwfgodok bltpvgxsqg mqqcaucjuk dgxgympqke jrpwosllzw mkhaqeuhzs errsjoxyfm egturyxwwq yvbelbipwc tnzabgkjig mjayybyjck nfpipwfezg smayhcevmo oxulbyllto gkcqrqzjzi fqnktnycha ffsninyznq a...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 ajwfbfndjy wqkvtsdzia keyqxnfptq fuqztfevmg akbxbqdhva gkcqrqzjzi jrpwosllzw smayhcevmo rctdcisvok xdwxxacqpi cteeyyueuy sucqpvuzpw egturyxwwq pjgmfltgjg rlvyxkkopy vjlvasozko tzkvzzwoag dairknzpku vokwhvluhc hlwrczuiom chxjmscrri fcmpkdvldc ygmijapwmk srmirbfbas scvxudekbm tkkuplwhpi zjhsrcrj...
output:
tpcacnbkpq gleoyyrgec cqbjgftvga xisxnadfhk nedwtueaqk jyijubwjbq gudlokwlyy fxtyuqpcie cnyopmrgyo izjjosuyfi zfsvugrtsg zqgrjtjmbo fzdalorynu fuewmgwsca lmureeilrs hqttgitohm imlgzgxqlu fnifsfaxso jufyjbzkfy zcxkcjggzo idajaigkns klbtczthqa tqsoxlmsxw ydilwzwmmi amwtqbbshk dsergbdhty ckpjwxlymc ibr...
result:
ok 100 lines
Test #22:
score: 100
Accepted
time: 199ms
memory: 3700kb
input:
1 qmfjfqybum wbjcgdjrvy rhrkthqpbe cfeitdstke ctvwfrqewy szrzexixnm ywsrquwxhu ukxzpkgefw fqhxarkshs gmwjyqknni uzppmeefwo lvizuwgfbs gvkwslulhq tkshxfcqtc lmoaptcsxw jyoyinviea wuyfagssdm jyekpuhank yxxjnudahc bsudnpywka wbtlqyslfk cxecagzvdq eqoimvwcqy jjreqvhwlm tajkndiado jecnosheee onbcyjxuqu l...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 tthpcxwige gmwjyqknni gvkwslulhq bsudnpywka wywsbtlpmu hngfrayvek uzppmeefwo ywsrquwxhu zxjxbgrtpm ijeumwxlzg mocadkcfzo wvklimkuno zpmlqpsfgg tzdrjsjzyo dsluhhzqxc akwrctcbdq jooauliqyo qmfjfqybum lmoaptcsxw bquosrwecc bfdsnznjni dbrtugpwfm tkshxfcqtc szrzexixnm jyekpuhank plrixabdeu yemddepk...
output:
belfdsozaw pvojybmppq ltawvqvhok gdveqmoupg hydrqsrgca lddubphvpu lppmsczdmu inffvylple ysrozquqpm ktqanmivxs gjvgryofnk ghumepiape inczgjryyk efqqxwyocg dcjcixiixm buwxxleyzi xfkwvqiigc iwejlorivi errwjmomwa jksenotqcw qqmoegfsui fcgrablrzc dnervfrhte dwnmpugbwe ewcxebwntm nnkbbajjyu sbaguybhty ldb...
result:
ok 100 lines
Test #23:
score: 100
Accepted
time: 161ms
memory: 3636kb
input:
1 uzqenlntrg sbtwugltgi wsjgjqkuda ixkhhpkwhi cqwzodlztg dyvjdgoemu mvfkayrkny dgbchfvrws bfilwcbanc gtbmtnhklc hjjdshbfys ngdhwkehym byhtfhygre imlusalgqs pestgygvrw zpttxqchec amdzlmkdys cvlftcwtri lbvzqathpe bkjwyfxdvo hcisopllns otmsuapmgm tmkdnljbmm hdtlsgowii hitpqgsigc ipkxdcmtgk gwpbjqwqwc v...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 chxyptkyea sbtwugltgi byhtfhygre vtgfkhlkxq gonlbjhiue dkeecfqjea dhfnjmzkfq zpttxqchec qibldkdwiq epfpozgtbg bkjwyfxdvo okcadieona iuyqbrogfw indrwndiyu hcisopllns tnurfzefkc bvtqggfoks ipkxdcmtgk yzhhkpbrxe wsjgjqkuda tjuutkeieu lnwlqxpnni wdoncbdcma uzqenlntrg ehgubirpso kwjyqybcwo dzpzbegz...
output:
jeehlwuedg zgykencdte hqhjglyxls zahyuxplba wpariihnic gzfssivpmo hpipkwdovc iwpwvfirnu mwmauermay rkkzpcxtiy rmengudqea fhzaygayfy piqyjmydbc wfbkbkwxus kayrkjzkre obcpojxcpc zhovuczotg xezwoyzrji jldohfevuq aijlovbuek nxhkoovgck vtbwasjaqi kctgnzigzq wyyhkckzcq myetaooams mwsbagpruq dmneatxfeo und...
result:
ok 100 lines
Test #24:
score: 100
Accepted
time: 72ms
memory: 3876kb
input:
1 fpqsjbqhac qjvngqgprm gsyhedsdbg cqzabpyvdk edxrzbarxy lfuiwkxtkw xwoyttpzqe qchnrbdknw nwybohmady rgmolmpumk vryiduyqfs jjcvyxeqbs aqfefigrim igypopwjco hlqbndubyk vnxtrbusyo zysivecyrw izavkfwkcg bnnseytwdo gynqbvwneu nzrxfedcwq hgtsrxznmu quzzcpufrk uvahseyzbw pihpxwoucy uzohtuvuyw kwskqiaudk v...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 uvahseyzbw hdwlshkiem qhtgsuuslc qsrstyyepk edxrzbarxy qkmzxeyuws uemwexddiw olpbmeksno drwappmova deekrunflm qxzcmadhpc nraoeqnwuw whljfkaxes qhoxeqeitq rlmclisyis fpqsjbqhac vlabexxgrk gsyhedsdbg slcrfsodhc qjvngqgprm kzfhayxcem tcdkpefljw igypopwjco xfwoebvgcm ueargsgvuo pzkdzneosk fcuqexda...
output:
qydsfskftk bjsmbhdkda vaoihhihuc vujkylocgq hptaiieeia yngvxjhcxa xkmniiqope jimfkymagq xsfzektxus kgpnxecdyu zsoyxaywwe blfhqmqmsm qlnzwxueug rphtsdfhns sipnntchti lhazlrhybo jvijjixiom cwhhgwqxzy uayztpjuvy prejnmxbzi buaoeetuxs edgemviajo jdpelbnoys grupnxlzqw qshnhyyzme xxsujldfne cnkknrqate ecp...
result:
ok 100 lines
Test #25:
score: 100
Accepted
time: 75ms
memory: 3628kb
input:
1 uekbyhsnky dsbqoorjug onbjmmovmw apjgsbkwou nyzifhfnaa cpxoadysuo sodycrqnyk jtsmmwgylo cgpfervyia wauceejnnu bzfihylwym nrefcisveo jnflcukajw ncpibcqfvq ucjlztvgnq eftfgssrac qhjywjcalc diicrlslre fzrnzihxwk cmsnbzgntu exnshchokq dhiikbhlbk wefxpriaaa elsoxflzwe pbhssxjwhs tndljgtwms dzmegrslls
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 sncfcslszq nyzifhfnaa bzfihylwym gixemegqra dhiikbhlbk jpuaetivsg tpqsnikapm vdfijfswui lgimoyofxw zjxaumzvcu xbtwgrabba elsoxflzwe mokdorrvdy atiwochqwi diicrlslre lihyzqeolk ucjlztvgnq wefxpriaaa enkitqwabg hkfacldsty dsbqoorjug dqetrdcgoq qhjywjcalc mljzuujxpe bggxkzwwjy jxtcflhfsg yrlpmuwe...
output:
zxmbfauvji ftzyssogww glhoktdlhs ahyetespve sngaidlqhu jwchpcyoic fdkzmvhbxm khtwhnwlhq swadavnqoy glhimqmtva pqioblhocg jxgjarmewe xfnkgmnrju bwhnbppoda pfhhhjtymi oexpskwltu ygoshvgtoe snunlxsere xgfqtdpecs fbldjzkjss pkkcauxxiq ochnljvziw wivwdlpsmk pxohykjtnq giopuyffbc nykkonoztm vnfzgubtci ukc...
result:
ok 100 lines
Test #26:
score: 100
Accepted
time: 91ms
memory: 3640kb
input:
1 uityzfkujc lxgxkktsgo jxixzsxgmg ojaatdvlae zggfqrofwi qpbmsibras ojlvybjsni splhhxmkie dgzuvwjslg ukdknybqwo wnuyxlsevw wbpfphsvec xlwaysyruy vmdoaqfpso jeywfwqxfq ehtzpnfluc sgjecodcgi wynijttxig odzyxfwues bmsdsayhuw bfwrajtyue ixctrhsoxi kgpjugsroe ngnzkfgieg kzgdztmkim fepdkooxfc dhuhllgcsa o...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 vlskjiyqvs qjrldqjrkq kgpjugsroe ewvxhewaho pswozqyzho bszcxnjuky uqnjlojcae sifpikshng cgykyhzhzq amvscnowhi ounvdzlkmi dhuhllgcsa qnmunpnyyu dgivuxrukm kfoprnnkju oepyjhtloa oivnrmjcbm wnunxjzong njiqvuxdvc nutspqbvum qekxmwcdtc dgzuvwjslg yxithuuwfm imcmdahceq rfqdtqmknq ofnswyypbo utjretby...
output:
okmkfbajsc ztjxervana zdyuqlcpjg tnbkmwdbku pdvmdkinzq akwwcokmgi secvqxyydo lfyjzlgdco pdyvbmgbxg fbgsmymbnk qsqyhxreoo gfmqvqjmoo yknlnruztg mwczbgiwta zsftecmjrw qcackpeqsu hnrrhvfjyi uifdqihqgy jiehpokwza ndduqujhxs ebomotkncm lthcfgeflc xlqvwccimw jvewaqzrqc ypzwllybms emkrbrkbnu gzpjrzzckw ibl...
result:
ok 100 lines
Test #27:
score: 100
Accepted
time: 50ms
memory: 3868kb
input:
1 dkcqsmwohw bxlkekwgkw
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 nswyuiroru wgspkorwds rrgsxxapuu nteihyhtbo uszsnjhqhg tippivxtls ttododwmqs xzuuksewsu rylpxqqzao jkompfpqps ailwqsrxfw yzkkqphkyy apsyaoqapm jfdhnahuka rxhgozcekg largnuecnm iygequgzpk bqubrfkgrk djmcefspje crvulqmrgy hxpazssogm wwjceoicdy cwwypsakeg eflxycmzuq rkbmsgqpmg gecchnzmhq tznptcex...
output:
qcaseiobym pglkdrenus xaabawfxuy coucnkfbvk jkkakdvddq zzybawpbeu lopcltyigs fvywccvfqe wlkhqptjem utxxmvvzba jkijjuepme esofqsdgjq pkdjqakkbm okiczepncm ucfgejilys apzxazmqjy gycfjmahtc tpzoxvgjcw jomtqfmlgq hbcxnculvs xqxkezlldc fvbeooftdq nqhvtjboss meugttxhtw odbwbbwbzc aoiqscmbkq tejyhktyhi nym...
result:
ok 100 lines
Test #28:
score: 100
Accepted
time: 152ms
memory: 3640kb
input:
1 nezjvbqriw iasjlicnzc kkcqaxbyke uhedpuowqc lrwyeapiqw kqgzrpdimm rciiemewcy fcaxqrtxog apkucfwmuk dqlxncmpvk boxyuwxpea wpbptpdmxa mbolesjtfc cnjadsoija lceycvbluc
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 hhgxhsqwbk mbolesjtfc tcwqsoyaxc vkyhybwfvc uhedpuowqc rciiemewcy dfuhuipnmk hcmmhjfqjw ptxzdmoljw qqiuslwons kkcqaxbyke ryssuzojbe otupiuoynm wajmjwrysk nfdcpreyue wpbptpdmxa fdbuoqzkao cjyxanxmgy owytnfrjji wnnpbveqna hjtcalsdai ergdweryuu jcbrqzflni lceycvbluc vmkhbjtkes tvgikmdrdk rzpanegj...
output:
vufqbhvmxi znszcufvii snvztzcrqy xtnkxbbuqc cljkaqemng qnzjyldecm ftaxmfobxy oaezvzgqhq tmqziwdtma wdaoqshkkq eoscmjrwmw ryosqpprue npwxefukea pwmcukysbc ynkralvbws svbwdwfhgq djnkfexceu enaccpvxym rxvrctfims gfffqqlvvw zwfqlbfadc quxmiindzo mepepnxfay hrrdrvlguy dzrsqeicso moezmlqupm zjiakvispc tpz...
result:
ok 100 lines
Test #29:
score: 100
Accepted
time: 155ms
memory: 3868kb
input:
1 xjdnxmekjk ndnfzelwum ncudaxpjwk xgyfcroxpe rpzmemklyu wdxygicazg kwtpiepqqo jumlkbzgys sxcmmaexxs mepsnzgpno lfkxhfjsyo rnfkpevfvg taybukkqze qsuklcmbny oqkkongqsu semlolefoc jlrzyxlgok ykezuebpos imjhtkroja jujmjqmbum knhsdvuobi nmnmjhhsus ipkddoazks cgqzjylkde rpexrwwamq bfksyztcea euaatuefwa t...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 yiuvrwtkwq jturbzeska yhfararuqa twuivpeopw hbbgiuumvk opfizayqce mepsnzgpno xirqsuczhi bnelfkaoqc qxgtzwrvfo cgqzjylkde bfksyztcea hfejqdaxmm jumlkbzgys nmnmjhhsus iojoqtwype luaiotarms usskjeoasg otcjgbiwmk rchdlwmass ruhqebxxra lsifrsqdkc vwimflmbow sxcmmaexxs qctzbvwywc cjnqkbuxdu nlyszahy...
output:
egxgnxuuki zgrnfnlery icdcuodzas wbrzphbtjc nxplyatdww zbhcntllwc udmewnakdg rgmjmsfzyy orphvmycgu pjuyzrnyim awkodlvvam uuvpmqtivu gbegpdvxxi ghehiaasri svbjbopanm cdktrqsllw qquzfdtrzu ypcwdvfaze mjjsfvjoey hycevymwmc pqgyladewo oolwrmzrqa cbxxghexea qbavwepjzm kmertlajxw ptsfphjnay wxedmdnwbs yso...
result:
ok 100 lines
Test #30:
score: 100
Accepted
time: 46ms
memory: 3876kb
input:
1 gtsywmvuvo uloosetohw uxstidesrq iefmsidhyw ifauwtpido vaervlotfs uprdokbpfi gzmebpbwck gdptjapnwy scbxksqqoy aswcouskec zsffjixblq dlxkyamumo jjmharvxto acvmzhizzs tkoeshxsbw acyqcskpsg kmytobpnai xrygpkfbpa jkxaxagsao nrlbyhuove lsdivuchgq rqeagiyfja tmduoxetzc jnvmdsavwo ageoauvhla exgndxexmk g...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 zuygxiontc xkrqjxnyzq exslzrgslq fwirdrqaow ulyszgvszi aswcouskec phycmzipns bkswskjwyk wbfftspwbe bifgysyywq xtekcrhbdm lhhvmweauq ucevaegdxg jrdmzvwbfw scbxksqqoy fdmblaxxrk alxodbmxpa uprdokbpfi fyjvyaoroq nrlbyhuove jjmharvxto pdauuzmiue fsbkxbcqro sxnuonwuro lsdivuchgq xpcidpsjci yywsmpgt...
output:
cygmkqowpa mleavvpkso yxgsduhncy qbribvhvxw artcncswfy gsjkhbgfjo oiuodrfdpq thenrsblbc zpntmiqvlu gncjpfqhto cfwecyotzy rujicscsbc hoscevjegk bjahistfne fczavqxwqm msjkafldqm vztvleqmos kvocdmfyoc paxxkxjwns mnkujgoima dqtnwvknoi ekriwqxafo xvkaaljxko rzjbuovmuk kupinqnrem kgjitqeofm kfelriuwsu qxe...
result:
ok 100 lines
Test #31:
score: 100
Accepted
time: 134ms
memory: 3636kb
input:
1 ksxaylfiyu wkdofchhpo ejneiicgkk iqzxicqfji jgptelxemi geirxjxdtk zketmwqdeo oydxyycctu augfhohcnc iylpmtfckm hzlfxqhbwg ssltqagibq ljhhgjptxa phrwkzsxzk ogsvbdnfui vfdpwdlohc bjxfbeygas jckxvruqtw mbkqrzqfzy hvwrokepik hqxmgqlyyq olabknpntg jvmxyqyvqy wliegdhdzw olwxmomzqq lygbwcdpju ycboavyese b...
output:
ahzvaqhdff bhzvaqhdff chzvaqhdff dhzvaqhdff ehzvaqhdff fhzvaqhdff ghzvaqhdff hhzvaqhdff ihzvaqhdff jhzvaqhdff gazcyylaig ybzcyylaig eczcyylaig zdzcyylaig qezcyylaig dfzcyylaig igzcyylaig rhzcyylaig pizcyylaig ujzcyylaig waacpwnpiu tcbcpwnpiu gsccpwnpiu tydcpwnpiu hxecpwnpiu vsfcpwnpiu hvgcpwnpiu hgh...
input:
2 100 fzfngljhvk mjttygravu cxuwtkjxjm jfrxynozlo iqzxicqfji zjalbcnopa mizbgppnzi yxjppefzjc rnrhovqvkg qntlfxlmwu wemiaziqge oydxyycctu bsyvjxseqg mbkqrzqfzy qzyadzcpnm mwlvdkhjiq icflqrngtq tgnmksrkww uisnreosyi ssltqagibq qrnwmlgsho ejneiicgkk fppouuslsq lirfavbpak vjtlekymme kdcklvxddu geirxjxd...
output:
yuwzktjdrc yfihtbkrey wbithmkurg ewtotbhhaq jtenxqxtma zkjmlwrrqy mpywkevsts ztefkvfbqa cgkpwdvefq eznppnixle cuqxrozrju tiuocdhkum ohvjovncai uonhzyvysk euzyrfhamw bskwtuxsew ybvuoxuyng czbnrrpeui wzloieejvi scslcbvzcs hzqfkiwwts mvjeokyqnm vlwucapqua yownhgmhcm wonxbbzsiw mvkghagscc karutbwkjw ilh...
result:
ok 100 lines