QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#522718 | #8829. Aibohphobia | ucup-team3723# | AC ✓ | 95ms | 7156kb | C++20 | 1.9kb | 2024-08-17 12:23:22 | 2024-08-17 12:23:23 |
Judging History
answer
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
void solve()
{
string s;
cin >> s;
vector<int> cnt(26);
for (auto c : s) ++cnt[c - 'a'];
int sum = 0;
for (int i = 0; i < 26; ++i) if (cnt[i] > 0) ++sum;
if (sum == 1)
{
if (s.size() == 1)
{
cout << "YES" << endl;
cout << s << endl;
}
else
{
cout << "NO" << endl;
}
}
else if (sum == 2)
{
int id = -1;
for (int i = 0; i < 26; ++i) if (cnt[i] == 1) id = i;
if (id >= 0)
{
int id2 = -1;
for (int i = 0; i < 26; ++i)
{
if (id == i) continue;
if (cnt[i] > 0)
{
id2 = i;
break;
}
}
cout << "YES" << endl;
cout << char('a' + id);
for (int i = 1; i < s.size(); ++i) cout << char('a' + id2);
cout << endl;
}
else
{
cout << "NO" << endl;
}
}
else
{
vector<pair<int, char>> cv;
for (int i = 0; i < 26; ++i)
{
if (cnt[i] > 0)
{
cv.emplace_back(cnt[i], 'a' + i);
}
}
sort(cv.rbegin(), cv.rend());
string ans;
while (!cv.empty())
{
int siz = cv.size();
for (int i = siz - 1; i >= 0; --i)
{
ans.push_back(cv[i].second);
--cv[i].first;
}
while (!cv.empty() && cv.back().first == 0) cv.pop_back();
}
cout << "YES" << endl;
cout << ans << endl;
}
}
int main()
{
int t;
cin >> t;
while (t--) solve();
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3480kb
input:
5 a sos abba icpc tenet
output:
YES a YES oss NO YES ipcc YES netet
result:
ok Correct (5 test cases)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
18 qnx oooo tvttj zzzzz pvlne iijt hjhjj loo hh uq mgvgv ewwe iii kykk o mmumm aetvv xntl
output:
YES nqx NO YES jvttt NO YES elnpv YES jtii NO YES loo NO YES uq YES mgvgv NO NO YES ykkk YES o YES ummmm YES aetvv YES lntx
result:
ok Correct (18 test cases)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
138 gcseqpht brrrzsrerr ree lgryyyh wbxkwwwwx hsihaga kvvslzgv dssd qhrqqqrqyh dfffffsfgf ssuzuuzzs rrwnyrcdnb ealelecu ccfwwwccwc emeieme xeexeswes ymkkkkpkk eimderoz lflllh lluylcll rquqrqu mllmllll cscscc ssssssssss cn llljlzlzj h kbbxahczit yxrrrrxlkr uikiakika tntnnqntw sjhxyfsy fcyyyf dbvbvdbw...
output:
YES ceghpqst YES beszrrrrrr YES ree YES ghlryyy YES bkxwxwwww YES gisahah YES gklszvvv NO YES yhrqhrqqqq YES dgsfffffff YES suzsuzsuz YES bcdwynrnrr YES aculelee YES fwcwcwcwcc YES imemeee YES wsxesxeee YES mpykkkkkk YES dimorzee YES fhllll YES cuylllll YES ruqruqq NO NO NO YES nc YES jzljzllll YES ...
result:
ok Correct (138 test cases)
Test #4:
score: 0
Accepted
time: 2ms
memory: 3596kb
input:
683 ufvvflppuvfu ccgchccndvvtqcu dqgqdddrgddjid iiiiiiiiiiimiin dqsiejxqqqq kkkjzkkzkkvvkkk aaeamagwzwagmni bgddgdbbggdgb xebbzbqrrx tyxkqsyyclhyx bjpdrrrrrrjrv qzzqzzzqqq ykgaykqyqqk iefeeetaeeee qqbabbfbslxfh ovvczvcdcvecb ieiiiaiqiiibii hxeeeexeexxxxh jxxxjxjrjjjx jjzjjrzgqnjyj rqqtzzptqopq wbsyv...
output:
YES lpfuvpfuvfuv YES dghnqtuvcvccccc YES ijrgqdgqdddddd YES mniiiiiiiiiiiii YES deijsxqqqqq YES jvzkvzkkkkkkkkk YES einzgmwagmwaaaa YES bdgbdgbdgbdgg YES eqzrxbrxbb YES chklqstxyxyyy YES bdpvjrjrrrrrr NO YES agkqykqykqy YES afiteeeeeeee YES ahlsxfqbfqbbb YES bdeozcvcvcvcv YES abeqiiiiiiiiii YES hexh...
result:
ok Correct (683 test cases)
Test #5:
score: 0
Accepted
time: 2ms
memory: 3544kb
input:
2713 ahrfzkzqahzahbqahzzu vwwwdpdsopmwmdmss zhkzhzjefkvnjfbxxbk oawqeraqvqoqqg eeeeedsxddeehzeehzee afrzcqrhdqikqcvqcakj xqkkkzqquqqkqqkdd urtrttjuruttutruutut mktgalyydawhgtcka qjhjjxxqhhqxqx fkfzfkffkfkkfffkkfz byyyqbbboboyqqoobb eyeyylrleeylerllrly ggfgzqgyqvqlehnq rrsjrrjrrjjjjrrrzrr qyqqyycrqrr...
output:
YES bfkruqahzqahzahzahzz YES ovpdmswpdmswdmsww YES envbfhjxkzbfhjxkzkz YES egrvwaoqaoqqqq YES sxhzdehzdedeeeeeeeee YES dfhijvzakrcqakrcqcqq YES uxzdkqdkqkqkqkqqq YES jrutrutrutrututututt YES cdhlmwgktyagktyaa YES hjqxhjqxhjqxqx YES zkfzkfkfkfkfkfkffff YES qoybqoybqoyboybbbb YES reylreylreyleyleyll Y...
result:
ok Correct (2713 test cases)
Test #6:
score: 0
Accepted
time: 36ms
memory: 3816kb
input:
35444 vvgmvmmhtmgmmhvfhhhmhmqmqhmhhvf aiiaaaaipaiapsspcppaaappppypapa qgprgwugggggiqargigggugefgarg ssikskkmiisksqsssssssn dtvmryhhtikrrhmmhmmymrmimbvpvv cpbpprllqzletlllplugkxf sbpkbkbsptsbkkkbtbtsktkb ngvnnvnvgcgcnvnngnnnnvgn mhhyltymyjhynhhyymtyuuuyydjyyys vlbkkgmtekutxaltkltttkkcakttlkl njemezmg...
output:
YES tfgqvhmfgqvhmvhmvhmvhmhmhmhmhmm YES cysipasipaipaipapapapapapapapaa YES efpwaiqurgaiqurgrgggggggggggg YES mnqiksiksiksksssssssss YES bdkpityhrvmityhrvmhrvmhrvmmmmm YES bcefgkqrtuxzplplplpllll YES pstbkpstbkstbkstbkbkbkbk YES cgvncgvngvngvngvnnnnnnnn YES dlnsjtmuhyjtmuhymuhyhyhyyyyyyyy YES bcegmu...
result:
ok Correct (35444 test cases)
Test #7:
score: 0
Accepted
time: 16ms
memory: 7052kb
input:
1 lllvrvrqtekpyfwztplrzmkfmlvllvjmzffllrmemmyjmlllwbiruatutvvumfttuemtjvmfvmjktlfzwmllfitqtvjtqftvergkqtebzjmwtvfjklklgjjevuuqrjzltrutklzytzvjyjuzlvjlivilvwtztijfrmvfkmfkiuxrtpftibbrlzvltbljbjtiqlzzjtyvljklvluutzqjvltenvtjlmtjyejvvlverflbvmkvjfwtlvrvmpbtpllvpbklqkulezkmrmltljvtklvitqelmvqvvfqfofkfyu...
output:
YES angopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqubiefrzkmjtvlangopxwyqu...
result:
ok Correct (1 test case)
Test #8:
score: 0
Accepted
time: 8ms
memory: 7068kb
input:
1 ltdkuekutrbtetdwdttuvutvkvpdntdtlelvepthdtupiwvelpthttmrrtltvztgvutuvypvtbtrtfyrvfutefedpovbufubttvlpfutptdvevmzrvpslffetetveppvotlpewwrefytevteovnfvbytjvtvvhrptvwtewtotpvetgpvfegvefkbttvetrtabhemvtuktevthtbvbyftvrhepebpywhtttfjelrfrttugpevkkytettltvtudidobvmthsotrtvtbtvhtttbwvlpgghbrevplvpttbedfr...
output:
YES qiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkwjmudoyfgbhlprevtqiasznkw...
result:
ok Correct (1 test case)
Test #9:
score: 0
Accepted
time: 15ms
memory: 5264kb
input:
1 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
output:
YES dkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
result:
ok Correct (1 test case)
Test #10:
score: 0
Accepted
time: 15ms
memory: 5296kb
input:
1 llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...
output:
NO
result:
ok Correct (1 test case)
Test #11:
score: 0
Accepted
time: 13ms
memory: 5224kb
input:
1 xxsssxssxxsxxsssxxxxxxxsxsssxssxsxxssxsssxsxxsssssxxsxxsssxxsxxxsxxsssxxxssssssxxssxxxssssssxxsssssssxsxsssxsxxsssxxssssxssssssssxsssxssxssssxssxsssssxsxsxxsxssxsxxssssxxsssssssxssxxxssxsxsssxsxxsxxxxxsxsxxxsxsxsxsxxsxxsxssssxxxxsxssssxxsxxssssxsxssxxxxxxsxsxsxxxxsxxxssssxsxxxssxxxsxssxxssxxxssssx...
output:
NO
result:
ok Correct (1 test case)
Test #12:
score: 0
Accepted
time: 16ms
memory: 7156kb
input:
1 xuxjjjuwwxxxuljzwjwuxzwwxxujjxjuxjzwxxzxjjwxxwjxlxujjxlwwxwljwwxzxxwlwxuljtxlxjwlxwzxuzxuxuwwxuttzwjjjwxuxuwjxzxjuwllxxjjxxjxjjxjwxxwxuxjjxjzwwwwwzjuzlzujltxuxwxwjltlwjwxuljlxjuujxxxwjwuwjlxjxlxtwxxxwxlxwwlxjlluxxxwwxuxjwjtwlwwwxjxxjtjjxuwjtwxzujzjlwxxjxuxlxjzuujwjjjxxwwlxxxxxxzxxwjwwjjxxwwxxljzjj...
output:
YES tzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtzluwjxtz...
result:
ok Correct (1 test case)
Test #13:
score: 0
Accepted
time: 8ms
memory: 7068kb
input:
1 rlaarbabrvbxxbbmbabrxqabbxhgaqhlgbaqrarbqagabglbbxqwaaaxrwawxarxhbvxgqgraablbbabbwxaravbbbxaabahxlitlrmgvhxabbbgxbvgvavablmrbvbbbvqbqbgxghwhbbahxcbhbahababrgvvarvxxbvqbbmgrmqvtvbbbavaqbryambabmhvabvarmlvbqiarbbvambbhxthrbhhyqqxgabxaaqvgqmlibrwqaalraawvraaahbbamaaaqqhmrrabvqavbqvamvbbxtlrvqxvlhhvbm...
output:
YES scyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlghmqrvxabscyitwlg...
result:
ok Correct (1 test case)
Test #14:
score: 0
Accepted
time: 13ms
memory: 5396kb
input:
1 wwwwwwwwwuuwuuwuuwwwwwwuuwwwwwuwwwwuwwwuwwuwwwwuwwwwuwuuwwuwuwwwuuwuwwwwwwwwuwwwwwwwwuuwuuwwwwuuwwwwwwuwwuwuwwuwwuwuuuuuwuuwwwwwuwuwwwwwuwwuwwwwwuuwwuuwwwuuwuwwwuwwwwwwwwwwwuuwuwwwwwwuwuwwuwwwwwwuwwwwuwuwuwuwwuwwwwwuwuwuwwwwuwwwwuwuwwwwwwwwuwwwwuuwwuwuuuwuwwwwwwuuuwuwwwwuwwwuwwwwuwuuuwwwwwwwwwwwww...
output:
NO
result:
ok Correct (1 test case)
Test #15:
score: 0
Accepted
time: 14ms
memory: 5256kb
input:
1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
output:
NO
result:
ok Correct (1 test case)
Test #16:
score: 0
Accepted
time: 16ms
memory: 7144kb
input:
1 xxymtrfydfriirryfiwxxtxwfiwwiirtwiifmxklxddgdrgyxniimirihiitayyidwumtwfxfyifxixrfizfahfafdigkyxigrxtbdwxdiitpxwfxfijirjirfitirqfrxbqiitxhzrwhqtrahrbfdfhrmixwriubiirmwmrmridxrvfvasddrqfrxsmiixrrxwhpifhiinaxxfzeydbavrywtfrwiixtmkqdbxhbxtwfircmririwxaxwmziqxtbrwiifcrwsmrrrmsffitysdixxiyxmrgirhwfrxhcu...
output:
YES ploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaqbczykusmthdwrxfiploejvgnaq...
result:
ok Correct (1 test case)
Test #17:
score: 0
Accepted
time: 13ms
memory: 5376kb
input:
2 jjccjhjceccjccccejcjjcccchcecjchccccjeccjccccccceececccccccccjcecccceccjcccccccechejccccbccccjjcccccecjccjccccjccecccjejcceccjccccceejejcjcjccjcccccchcheccejcccjccjcjeccjcccceccecjcccejcccjccccecchjjheccccjcecjcccccchcjccccehjccechccjcbccccccjcjccjccjccejcccjcjccccccccccbejjcjcejecjjcjjcjeccceccbj...
output:
YES bhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcbhejcb...
result:
ok Correct (2 test cases)
Test #18:
score: 0
Accepted
time: 22ms
memory: 4320kb
input:
2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
output:
YES qeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
result:
ok Correct (2 test cases)
Test #19:
score: 0
Accepted
time: 10ms
memory: 4188kb
input:
2 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...
output:
NO NO
result:
ok Correct (2 test cases)
Test #20:
score: 0
Accepted
time: 13ms
memory: 4196kb
input:
2 rrwwrwwwrrrwrrrrwrrwrwwwrwrrwwwrrwwwwwwwrrwrwrrwrwrwrwwrwrwrrwrrrwrwwwwrwrrrrwrwrwwrwrwwwwrwrrwwwwrrrwwwrrwwrwwwwrwwwwwwwrwrrrrwwwrwwrrwrwrwrwwrrwrwrrrwwwrwrwwrwrwwrwwrrwrwwwwwwwwwwwwwwwrwrrwrwrwwrwwrwwwwrrrrwrwwwwrwrrrrwrwwwrwwrwrwrrrrrwwwwwwrrrrrwrwrwrwrwrrrwwwrrwwwwwwrrwwwwwwrwwwwrwrrwwrwwrrwrw...
output:
NO NO
result:
ok Correct (2 test cases)
Test #21:
score: 0
Accepted
time: 15ms
memory: 5644kb
input:
2 bwwrbrrbrbbrrbwbwrbbbbvbbwbrrbrvbbrrbbbvrbrbwrbvrrrvrrrrbbrbbbrbbrbrbbrbrvbbwrrbrbbbrbrrbwrwrbbrbbbrbrbbrvbrrbbbbbbbbbrrrrrbvrvbrbrvbbrbbbrbbrrbbrrrbbbvrrrrbbrbbrbbrrbbbrwbrbrbrwrbbrvbbrwbbrrrrbbrrvrrrbrbvvbbrbrrwbwrvbwwrrrbbrwbbbrrvbvbbbbbbwvbvwwbrbrbwrrbbrrbwbwbrbbbrbbbrvvwbrbrrbbrbwrbbrbrbrrrrr...
output:
YES vwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrbvwrb...
result:
ok Correct (2 test cases)
Test #22:
score: 0
Accepted
time: 8ms
memory: 5360kb
input:
2 nugcuvzcqqzcocufwtvmodbqvqwwcqspphcqiupmvscgyppfuvvobvgvbuopbvouqpbqciugsovgqiquudlfcoucvuvuicumvuyviipawfiukqsiuopgqzxovoviqidvgicbfvxpocuvmqdsnqgqpfscnshtvgvugqabisuovqplsfowybikvlgogpdypaugccqqncgpcgbqstgpvcqwvivmnucpaczikfvpqbvdxqqgipbougqcgeitvvipgtvubqqssvokkvgbvqcwdkfcuqsaxsmucgqqusqsunuxvq...
output:
YES rhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpoguqvrhyzlxetnmdbwkafsicpo...
result:
ok Correct (2 test cases)
Test #23:
score: 0
Accepted
time: 7ms
memory: 5112kb
input:
2 sybobwroswosbwsswssbsowobowsbwssowwoosobsbbwsbhwwwbbbwbbwssywwsosrswyswowyroossbbowssswwysbswsbbybbbossyosbbwbyswywwbosboysbwbsosobwsbbwswoywbswysbsbssowyobsbybwswbsbsbsoyosooossrwwrbwowwyyyssswsybbsobbbohbbsywysobswwhbssywsywrbbsyossssbossobwsyyrbbssswwwwbbysbobybsbooobwhsosyybbwosbwbwsbobbssowws...
output:
YES rhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrhyowsbrh...
result:
ok Correct (2 test cases)
Test #24:
score: 0
Accepted
time: 14ms
memory: 4864kb
input:
2 yyyyyyyyyyyyyyvyyyyyyyvyyyyyvyvyyyyyyyyyvyyvyyyyyyyyyyvyyyyyyyyyyyyyvyyvyyvyyyyyyvyyyyvyyyyyvvyyyyyyyyyyyyyyvyvyvyyyyyyyvyvyyyyyvyvyyyvyyyyyyyyyyyyyvvyyyyvyyyyyyyyvyyyyvyyvyyyyvyvyvyyyyyyyyyvyyyyyyyyyyyyyyyvyyyvyyyyyyyyyyyyyyyyyyyyvyyvvyyyyyyyyvyyyyyyvyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyvyvyyyyyyyyyy...
output:
NO YES jpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpcdmjpc...
result:
ok Correct (2 test cases)
Test #25:
score: 0
Accepted
time: 11ms
memory: 5276kb
input:
2 dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
output:
NO YES tqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqdnhfblvrtqd...
result:
ok Correct (2 test cases)
Test #26:
score: 0
Accepted
time: 13ms
memory: 4788kb
input:
2 jjjjjjjjjjjjujjjjjjjjjjjjjjjjjjjjjjjjujjjjjjjjjjjjjjjjujjjjjjjjjjjjjujjjjjjjjjjjjjjjjjjujjjjjjjujjjujjjjjjjjjjjujjjjjjjjjjjjjjjjjjjjjujjjjujjjjjjjujjjjjjjjjjjjujjjjjjjjjjujjujjjjjjjjjjjjjujjjjjjjjjjjjjjujjjjjjjujjjjjjjjjjjjjjujjjjjjjjjujjjjjjjjjjjjjjjjjjjjujjjjjjjujjjjjjujjjjjjjjjjjujjjjjjjjjjjjjj...
output:
NO NO
result:
ok Correct (2 test cases)
Test #27:
score: 0
Accepted
time: 23ms
memory: 4336kb
input:
3 qgugaaagpllaxasaxxgpxxsqapbgqqglxjghagaxgsullgaxxqbpguxggxygfxaxluxpqxglsjxqhypgpaggagfqfugqlsqxlqguuuuqgygpohaggxbxqjzqjgxxsllaxflshqgaqjaagaupxuugjxpsxgsaguupjqsqxagqgupauupxaajqlxgqhdguggrgjxaxfgbqglbgulgqgxqjjxaagxfxxlgullqdxagsjaqlqgxluuusuqyjxfggllzqljpgfaggbugqgxhuluxxggauggayxquaxxufsxxpbs...
output:
YES oyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdbhpsjluaqxgoyzrfdb...
result:
ok Correct (3 test cases)
Test #28:
score: 0
Accepted
time: 9ms
memory: 5348kb
input:
4 kifbnffgffbsfrfbmfwbkivwdrggfbmimibfbpdfsvfrpmrfmvbpemgiwpbfbmwsfgbwvdamfbfrdgddkndjmmrgtmrrmsbvsfwwfspfftdfibdffffesdkfesbbmipbkrjwdpfgrfofvfpifvnfgrtvfnjmifbiwfbfifxvmsfgmsbdffvjfvdgewibfrrfvrfbbssmwfrskbkfffwfswffbfsedffbmdkmffddbebbrksgiprebrfdwrfngkufmbdffwkbfdeisapfbmbdstwiijbbbodbbbfffikigg...
output:
YES xuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisrgmbfxuaojtnvkewdpisr...
result:
ok Correct (4 test cases)
Test #29:
score: 0
Accepted
time: 23ms
memory: 4260kb
input:
5 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
output:
YES bnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
result:
ok Correct (5 test cases)
Test #30:
score: 0
Accepted
time: 16ms
memory: 4332kb
input:
6 jjwjwwcwuwccuwccwjwtwtecjcpujwtccczccwuuwucecwwwtjwcceuwujtjujctpwwufcjwtjwjwjuujcwcuujjjctwcucuwzfwcwujjujjuecujcfjtucucctejwcujwtcecfwpucwuucjjuuuuuujcwwcuzcwwcpjfcjwjwpwtwtcwcwctcufutcwjucccwwwccfcjjwpwjujeuwjuctwuczpuucujwujccucjcccuuzetjcfzjuuuueuccuwwjtjjfjpccuujjjwjeccccwtwutuwwjucujctwwwcw...
output:
YES fpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwucfpzetjwu...
result:
ok Correct (6 test cases)
Test #31:
score: 0
Accepted
time: 13ms
memory: 4016kb
input:
7 yyyyzyzyyyyyyzyzyyyzzyzzzzzzyzzyyyzyzyzyyyyyzyzzzyyzyyzzzzzyyzyzyyzyzyzzyyyyyzyyyyzzyyzzzzyzzyyzyzyzzzzzzyzyzyszyzzzzzyszyzzzzzyzyzzzzzyzzyzyzyzzyzyyzzzzyyyyyyzzyyyzzzyzzyzzyzyzzyyzyzzyzzyzyzzzzyzzzzzzzzyzyzyyyzzyzzyyzyyzzyzyyyzzzyyzzyyyzyzzzzyzzzyzzzyyzzyyzsyzyzzyzyzyzzyyzzyzyyzyyzyzyzyzzzzzzzzzy...
output:
YES syzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsyzsy...
result:
ok Correct (7 test cases)
Test #32:
score: 0
Accepted
time: 19ms
memory: 3688kb
input:
8 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
output:
YES yfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
result:
ok Correct (8 test cases)
Test #33:
score: 0
Accepted
time: 14ms
memory: 3868kb
input:
9 dcuhhbmuswbdfduubwhnhbcbcmuwufhssdswkkscshfqnqdcchufhwwhwnfudpewbkbuqdhcuqdphdkaqmubwkckfhudqnqhcbbnpumknquuweqqqdbdubmkdbeacwmduuubfedumuucudbkpbbwkfbckfqweqbcububnmbnbukwwbmcukeuwccqucfcehqfumckwumufdhkebpkckuqchwfchcfbffmcqkbdcunswhwuukwucqcunhnewmbcfdukwcwcnqfuwdmbbcudubwqmhuuhuubqudwqmeddaquc...
output:
YES apsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhqdbcuapsmenfkwhq...
result:
ok Correct (9 test cases)
Test #34:
score: 0
Accepted
time: 16ms
memory: 4236kb
input:
10 ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
output:
YES xddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
result:
ok Correct (10 test cases)
Test #35:
score: 0
Accepted
time: 11ms
memory: 3920kb
input:
11 ntthxnnrwzyrnpymfnexntpxttntwpfnzzyuknpnppnpnxnhtdttnhpxvgnvwpnnnhuzpuzzpluppztdxyvyxnknpdxwpwnfnznfnntvuzngpupvpmplpnpgndkxhxmldnxuwawnzzdlxpppwxujdznzdnxartlingtnntzplnunfttnntuumntnmunkxnleungzpttunpnplthygvhzmjxmnxvzzxfpttlnkpynywdnjdpzzfngtvlnnkeylmhxdhnzznmzpzujzuknmgnxyzfuvnnjpzunpxtdmvnyv...
output:
YES bajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyhwglvudmtxzpnbajrkiefyh...
result:
ok Correct (11 test cases)
Test #36:
score: 0
Accepted
time: 17ms
memory: 4436kb
input:
12 fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
output:
YES zfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
result:
ok Correct (12 test cases)
Test #37:
score: 0
Accepted
time: 11ms
memory: 3836kb
input:
13 hshhhhhshhhhhhhhhhhhhhhhhhhhshhhhhhhhhhhhhshsshhhhshhhhshhhhhhhhhshhhhhhhhshhshhhhhhhhhhhhshhhhhhhhhhhhhhshhhhhhhshhhshhhhhhhshhhsshsshhhhshhhhhhhhshhhhshhhhhhhhhhhshhhhhhshhhhshhhhhhhhhhhshhhhhhhshhhhhshhhhhhshhhhhhhhhhhhshshhshhhsshhshhhhhhhhhhhhhhhhhhhhhshhhhhshhhhhhhhhhhhhhshhhhhhhhhhhshhhsss...
output:
NO NO YES lemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzqtgwdicnsufxrbolemzq...
result:
ok Correct (13 test cases)
Test #38:
score: 0
Accepted
time: 16ms
memory: 3936kb
input:
14 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...
output:
NO NO NO NO YES immmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...
result:
ok Correct (14 test cases)
Test #39:
score: 0
Accepted
time: 15ms
memory: 3868kb
input:
15 rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...
output:
NO YES iawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawexgrhiawex...
result:
ok Correct (15 test cases)
Test #40:
score: 0
Accepted
time: 16ms
memory: 3668kb
input:
100 qqqwqxqqqqqqqqqqqqwqqqwqqqqqqqqqqqqqqwqqqwqqqqqxqqqwqqqqqqqqqqwqqqqqqqwxqqqqwqqqqqqqwqqqqqqwqqqqqqqqqqqqqqwqqwwqqqwqwqqqqqqqqqqqwqqqqqqqqwqqqqqqqqwqqqwqwqqqqqqqqqqqqqqwwqqqqqqwqqqwqqqqqqwqqwqqwqqqqqqqqwwqwqqqqqqqqqqqqqqqqqqqqqwwqxqqwqqqqqwqqqqqwqqwqqqqqqqqqqqqwqqqqwqqqqqqqqwqqqqqqqqqqqqqqqqqxwqq...
output:
YES xwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqw...
result:
ok Correct (100 test cases)
Test #41:
score: 0
Accepted
time: 15ms
memory: 3756kb
input:
101 odousahacopcorozuyvokjoozvhrrxoxoockjzxxxohoeikjjodcijoookbjzvdheojjayoboyejuozmzvejcojrjjkpjjvxvgopreyjpjavrjioovhxqvpzcjvnvjogpojkjakxoovzubhoxvpoauzxkxxeojuothjoqxshjoouoxohjooytexzhjjojupjowpacajoxxjeohxeziouyuhoobpvhhjgjuxexcjjxcukokoxkbovecydydoyyboeooopzbapdbjjoqquejzoadnprjuqejpbuawoooqd...
output:
YES ftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzhxujoftnwgsimqcybdkperavzh...
result:
ok Correct (101 test cases)
Test #42:
score: 0
Accepted
time: 14ms
memory: 3720kb
input:
102 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...
output:
YES suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...
result:
ok Correct (102 test cases)
Test #43:
score: 0
Accepted
time: 15ms
memory: 3652kb
input:
103 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
NO YES oyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpjdtiexboyulzwshqvafkrnpj...
result:
ok Correct (103 test cases)
Test #44:
score: 0
Accepted
time: 11ms
memory: 3704kb
input:
104 oouuoouoououououoouuoouoououuuuuooooouoouoouooouoouuoouuouooouooouuououuouooououuooooouooooouuuoouuuoououooouuoooooooooooouuuuouuuuoooouuouuuoououoouoouuuuooououououuuouuuuuouuoouoooooouooouuoouuoouuouooouououooouuouououoooououooououooouuuuoooouuuuuooouuoooouoouuuuuuououoouuououooouooououuouoooo...
output:
NO NO NO NO YES ngmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodvtungmqxzodv...
result:
ok Correct (104 test cases)
Test #45:
score: 0
Accepted
time: 16ms
memory: 3704kb
input:
105 bcjobfehszohbhnbheesyhozbxbnhqzhohyyyjsbysbbseyqqebxoeehbhsbzsnozsjzssynhzsoeoohzyobsozosyjozjsjhsjyvssnfsyhobsffssnofsbsebyzshyssqjjobosszvsesohbzsyseyhhqsyoenajosnnesoozfsasshboaezhnosbeqshqjczsxysejbsbjysyhbshyoessbbnzjhozsohhsssoaszhojosaeseszjbycoysbhjesssvobnhycosveoyszssbzhhhfsehqbhxbhshn...
output:
YES xcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejbyohsxcavqfnzejb...
result:
ok Correct (105 test cases)
Test #46:
score: 0
Accepted
time: 10ms
memory: 3860kb
input:
1000 vlvvvlvvlvvvlvlvvvvvvvlvlvvvvvvvvvvvvvvlvvvlvlvvvllvvvvlvvvvvvvvvvvvvvlvvvvvvvlvlvvvvvvvvvvvvvlvvvlvvvvvlvvvvvvvvvvvvvvvvlvvvvvvvlvlvvvvvvvvlvvvvvvvvvvlvlvvvvvlvvvvlvvvvlvvvlvvvvvvvvlvvvvlvvlvvvvvvvlvvvlvvlvvvvlvvvvvlvvvvvvvvvvvvlvvlvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvlvvvvvvvvlvlvvvvvvl...
output:
NO NO YES txqlgtxqlgtxqlgtxqlgtxqlgtxqlgtxqlgtxqlgtxqlgtxqlgtxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxqlgxql...
result:
ok Correct (1000 test cases)
Test #47:
score: 0
Accepted
time: 10ms
memory: 3624kb
input:
1001 nfffnfffffnffnnfnffvnffnnffnnvfffnfnnfnnffffnfvvfffvffvfnfffnfffnfnfffffffffffnffffffffnfvffvfnfvfffffffffffnffvffnvfffnffnnnvffnnffnffnfnffvfffffnffffnffffffnnfffnffvvfvfffffffvffnffffffnfnvnfffnnnnfffnffffnnffnfffnfvnffnvnfffffffffffffffvnffffnffnffffffffffvnffffnfffnfvnvfvfffffffffffnfvnfnff...
output:
YES bvnfbvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfvnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnf...
result:
ok Correct (1001 test cases)
Test #48:
score: 0
Accepted
time: 18ms
memory: 3780kb
input:
1002 oogmilwmoobuglffxuswdvmohlohofmbfhomoloeoouofgofolwuozmdmvoooxmmsgosohhooioabmeuuzlmuuazfoes aaaaaataaaaaotaatoaaoaataaataaaaaaoataaaaoaaaaaaaaaaaataaaaaaaaaaataaotataataaaaaaaaoaaaaaaaaaaaaaataoaataaaaaaaoaaaaaaaaaattoaaaaoatoaaaatataaaaaaaaaao ggggggggggggggggggggggggggggggggggggggggggggggggg...
output:
YES adivxbewzgshlfumoadivxbewzgshlfumobewzgshlfumogshlfumohlfumolfumofumoumomomomooooooooooooooo YES otaotaotaotaotaotaotaotaotaotaotaotaotatatatatataaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa YES oggggggggggggggggggggggggggggggggggggggggg...
result:
ok Correct (1002 test cases)
Test #49:
score: 0
Accepted
time: 17ms
memory: 3620kb
input:
1003 pqvakizaapvlzllaljsajwskvsasivqlrjqkqlivowvkgrvknasireqqkarqrswjelsvkrjiehksswiskkszwlkvqkqalzjlsqplplkavllwllisaslvdvlivklkkvzplqlqklrqigslislelvqleyllllllzjzwikvxswkvlzkqqiqvlasqixkdqklalqalklpsvvekvkkpzspqlvllsskipillllgpsslslpsizsqoaejkxgkeqmsrllaszrknrlzvrkhllkvjkklkvvkijvgqaqrioaallkvzslv...
output:
YES ctmbfnuydhoxwejgirazpvsqklctmbfnuydhoxwejgirazpvsqklmbfnuydhoxwejgirazpvsqklmbfnuydhoxwejgirazpvsqklmbfnuydhoxwejgirazpvsqklmbfnuydhoxwejgirazpvsqklmbfnuydhoxwejgirazpvsqklbfnuydhoxwejgirazpvsqklbfnuydhoxwejgirazpvsqklnuydhoxwejgirazpvsqklnuydhoxwejgirazpvsqklnuydhoxwejgirazpvsqklnuydhoxwejgiraz...
result:
ok Correct (1003 test cases)
Test #50:
score: 0
Accepted
time: 18ms
memory: 3616kb
input:
1004 jffjjjjjfffjfjfjfjjjfjffjjjffffjjjjjjffffffjjjjfffjjjjjfjfffjjfffjffjjjfjjfjffjfffjjfjjfffjjjjjjjffjffffjfffffjjfjjjjjjjffjfffffjffjfffffjjfjjjffjfffffffjjfjffjfjfjfffffjfffjjjffjffjjffjjjffjjffffffjfffjjffffjffffjjfjjfjjjfjjjfffjjffjffjjjffjjjfjjffffffjjfjjfjffjffjfffjfffjfjjjfjjjjfjffjfffjjff...
output:
NO NO YES qnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrqnkohmacjelwvxpugtibrnkohmacjelwvxpugtibrnkohmacjelwvxpugtibrnkohmacjelwvxpugtibrnkohmacjelwvxpugtibr...
result:
ok Correct (1004 test cases)
Test #51:
score: 0
Accepted
time: 18ms
memory: 3616kb
input:
1005 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
output:
YES oqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
result:
ok Correct (1005 test cases)
Test #52:
score: 0
Accepted
time: 31ms
memory: 3828kb
input:
10000 tvbb ueuiisdeuiiuauaeeuueusidaeiuuipiiiphaaiiuiiapuiieaeueippiiiiudaemhdmeeieisiaseeeuiuhmmihesesaemumuiihpuusiai wekkkkkkekkkfxkkkkefkkkkfxkkwkkekfkkkekkkkkkekkkxxkkk ggggggggzgggggggggggzzgggggggg jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...
output:
YES tvbb YES dhmpsaeuidhmpsaeuidhmpsaeuidhmpsaeuihmpsaeuimpsaeuisaeuiaeuiaeuiaeuiaeuieuieuieuieuieuieuieuieuiuiiiiiiiiiii YES wfxekwfxekfxekfxekekekkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk NO NO YES acgmxhnteqpujhnteqpujteqpujeqpujqpujqpujpujujujujujjjjjjjj NO YES q YES dqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
result:
ok Correct (10000 test cases)
Test #53:
score: 0
Accepted
time: 27ms
memory: 3592kb
input:
10001 yggyyggggyyyyggggggggyggygggyyggggg vquennceiwrndbehzbzlrlqlwqs nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
output:
NO YES cdhisuvbrwzelnqbrwzelnqelnq NO YES fgorxcilmntvwhkqudzejypcilmntvwhkqudzejyphkqudzejypdzejypejypp NO YES clnowvgatsyjidfwvgatsyjidfwvgatsyjidfvgatsyjidfgatsyjidfatsyjidfatsyjidftsyjidftsyjidftsyjidfsyjidfsyjidfjidfidfdfdfdfdfdfdfdfdfdfffff YES qhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...
result:
ok Correct (10001 test cases)
Test #54:
score: 0
Accepted
time: 24ms
memory: 3608kb
input:
10002 sitssistttssstssshstssssssttssssshtsssssstssstsssitstststissstthtsstssssstttsststtststisststtssssstsssttsstttsttstttstsssstsssshsssttstttttttsthsstssttssststtssttssiststssssshtisstttsssssttthstssttsstisssststtsssststtststsittstststssttsssssttsstssiststtsssttstttstttsssttsststtssststsstsssstsst...
output:
YES hitshitshitshitshitshitshitshitshitshitshitsitsitstststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststs...
result:
ok Correct (10002 test cases)
Test #55:
score: 0
Accepted
time: 20ms
memory: 3596kb
input:
10003 llllllllllllllllll swtiwdqlxpiblvroavecbxnfudmioyjddhovgkvl gggggggggggggwggggg wdffffwffffffffffwfdffffdfddfdfffwdffffffwfffffffffffffdfffwdffffwdffwffffdwffffffwffffwfffffwwffffffffffffdffffwffffffffffwwfffffffffdfffffffdffwffffffffffwfffffffwfffffffffffffdffdfffwf qqqqqqqqqqqqqqqqqqqqqqqqqq...
output:
NO YES acefghjkmnpqrstuybwxilodvbwxilodvilodvdv YES wgggggggggggggggggg YES dwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfwfwfwfwffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff YES zqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
result:
ok Correct (10003 test cases)
Test #56:
score: 0
Accepted
time: 15ms
memory: 3828kb
input:
10004 ovyvdpdadmdyjvzgdadvdahmpvmddhvyaippizypypmmdhfhdybzpdeamvadypdvdvh iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiuiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...
output:
YES befgjoizhamypvdizhamypvdzhamypvdhamypvdhamypvdamypvdypvdpvdvddddddd YES uiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...
result:
ok Correct (10004 test cases)
Test #57:
score: 0
Accepted
time: 19ms
memory: 3600kb
input:
10005 siissssssssssississssisissisisissiisssiiisssssiisissiisssssissss mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm rrrrrrrrrrrrrrrrrrrrrrrrrrrrrprrrrrrrrrrrrrr zndyqznbdgxp dddddddddddddddddddddddddddddddddddddddyddddddddddddd twtwtttwtttttttttwwttttwwwtwtttwtttttttwtwwwt aaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
NO NO YES prrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr YES bgpqxydnzdnz YES ydddddddddddddddddddddddddddddddddddddddddddddddddddd NO NO NO NO YES pxxx YES htttttttttttttttttttttttttttttttttttttttttttt YES beknrxacloqstvygjfzdhwmuacloqstvygjfzdhwmugjfzdhwmufzdhwmudhwmuwmumuuuuuuuuu NO YES htyfiqcdjpe...
result:
ok Correct (10005 test cases)
Test #58:
score: 0
Accepted
time: 95ms
memory: 3568kb
input:
99995 nnnnnnnnnvnnnnnnnnnn xbeylyvhgupwzwqcfwokzotjsaur k wwwwwwwww dddddiddddii rxgrcjrbur yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyiyyyy ttttttt eeee ggfofqgr mgvmqmls nbjv fdfdfdffdfddfddfffffff okoooook kpds ieri zzzzzzzzzzzzzzzz wsb v uuuuu fccccc xxo ssssssss ltttllllllllllll pppppppp mmmmmmmmmm lw...
output:
YES vnnnnnnnnnnnnnnnnnnn YES abcefghjklpqrstvxouyzwouyzww YES k NO NO YES bcgjuxrrrr YES iyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy NO NO YES oqrfgfgg YES glqsvmmm YES bjnv NO NO YES dkps YES erii NO YES bsw YES v NO YES fccccc YES oxx NO NO NO NO YES bdehiluwvv YES himwx YES wd NO NO NO YES awgogo Y...
result:
ok Correct (99995 test cases)
Test #59:
score: 0
Accepted
time: 55ms
memory: 3828kb
input:
99996 t kkkkkkkkkkkk oolcf pvyqvvvvvovvvyyvppovqvv owmwwneepkqteyealh nnn vkjolvljdxffovjcld h wy kgkjgg x arptppnaaaiyickkhlzbp japmhjhaa fwfwfz gok mmmmmccmmmmcmmmmmmmmcmmmmm pms u w bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb yyyyyyyyyyyy yyyyyyyyyyyyyyyyyyy bl kkwwwkfwkwmmmwfmkkw ...
output:
YES t NO YES cfloo YES oqpyvoqpyvpyvvvvvvvvvvv YES ahklmnopqtywewewee NO YES ckxdfojlvdfojlvjlv YES h YES yw YES jkgkgg YES x YES bchlnrtyzikapikapapap YES mphjahjaa YES zwfwff YES gko NO YES mps YES u YES w NO NO NO YES lb YES fmkwfmkwmkwmkwkwkww NO NO NO YES vooooo NO YES cfjkmtv NO YES bvwydhdhdh...
result:
ok Correct (99996 test cases)
Test #60:
score: 0
Accepted
time: 79ms
memory: 3828kb
input:
99997 vjjjj sxxsxsxx mopdojpgmvnbzjoovt ffffff uuuuubuuuuuuuuuuu ss zuhuuzh lqqe epss rrlrllr ycevokhitbw af a ztybl qwgrdkcp aaaaabaaaaaaaaaaaaa iiiiyiiiiiiii x xxxxxxxx q ltmuru nudmway za sw dddddddddqdddddddddddddd adox z smkb ppppppppvp rrdrrrr uuuuuuu verjutjrbeeszjcea gggggqg irwqcqfwfymwcqqf...
output:
YES vjjjj NO YES bdgntzjmpvojmpvooo NO YES buuuuuuuuuuuuuuuu NO YES hzuhzuu YES elqq YES epss NO YES bcehikotvwy YES fa YES a YES bltyz YES cdgkpqrw YES baaaaaaaaaaaaaaaaaa YES yiiiiiiiiiiii YES x NO YES q YES lmrtuu YES admnuwy YES za YES ws YES qddddddddddddddddddddddd YES adox YES z YES bkms YES ...
result:
ok Correct (99997 test cases)
Test #61:
score: 0
Accepted
time: 80ms
memory: 3788kb
input:
99998 nnnnnnnnnnnnnnn dhthtivcii u ttpjcohoe beedbeeeebbbbee yxkohypuat lllllxlllllxllllll aqqq yffff ozhsejmhwrqkiazrmslgtzrrqrgscifkqgbdpvhy sbbbsssbssssbssssssbsbbssssbbssssssssssssss kekyerues ooc aaaaaaaaaaaaaaaaaaaaaa lf qwhbbqwh xvx ttthhthttthhtththhhhh yykusichtq kkkt vvvvvfv w omkpbmtvriqc...
output:
NO YES cdvhtihtii YES u YES cehjpotot YES dbebebebebebeee YES ahkoptuxyy NO YES aqqq YES yffff YES abcdefjloptvwyikmghqszrikmghqszrghqszrrr NO YES rsuykekee YES coo NO YES lf YES bhqwbhqw YES vxx NO YES chikqstuyy YES tkkk YES fvvvvvv YES w YES abceikopqrsvwjmtjmt YES puauaa YES ipw YES sbb YES jyae...
result:
ok Correct (99998 test cases)
Test #62:
score: 0
Accepted
time: 81ms
memory: 3608kb
input:
99999 maidfrsnrydqyfdddnsdrfnnifrfdriqq ggqgtggqgqgtggtg ojjdcvophgxordscoih ggigggggiiiggii uii lllllll yfcdrb xuxxzzibr edswmxrjbpczllyhkfaqazndi ssl hqqqqqqqqq hhhhhhhhhhhhh sbi aaaaaaaaaaaaaaaaaaaaaaa sosx kthrsupzoopdhfqiivxyajg dllllllllllllll izzzzzzz xxxxxx qxqxpss oycyrwnujuujjucljb mmmmmpm...
output:
YES amsyiqnfrdsyiqnfrdiqnfrdnfrdfrddd YES qtgqtgqtgggggggg YES giprsvxcdhjocdhjooo NO YES uii NO YES bcdfry YES biruzxzxx YES bcefhijkmnpqrswxyadlzadlz YES lss YES hqqqqqqqqq NO YES bis NO YES oxss YES adfgjkqrstuvxyzhiophiop YES dllllllllllllll YES izzzzzzz NO YES pqsxqsx YES blnorwcyjucyjujuju YES...
result:
ok Correct (99999 test cases)
Test #63:
score: 0
Accepted
time: 71ms
memory: 3592kb
input:
100000 m fffffffff eidevqeeleliel eeeeeee pppppppppppppppppppppppppppppppppppppppppppppp laia a oodddoddddddod o gljllkwllgwwllkkkjwwlkiwkgg mmmmmmmmmmmmmmmmmmmmmmm xnttkdk eiihbiico aam y vvvvvvvvvvvvgvvvvvvvvvv hxaznvnl ddzzzx kkkkkkkkkkkkkkkkkkkkkkkkk k jjjjjjjjjjjjj fxjeekgurrlkujc jssss ioieiii...
output:
YES m NO YES dqvileileleeee NO NO YES ilaa YES a NO YES o YES ijgkwljgkwlgkwlgkwlkwlkwlll NO YES dnxktkt YES bcehoiiii YES maa YES y YES gvvvvvvvvvvvvvvvvvvvvvv YES ahlvxznn YES xdzdzz NO YES k NO YES cfglxejkruejkru YES jssss YES eoiiiiii YES cklnpstxjuyeijuyeieii YES cwmcwmcwmmmm YES yvvvvvvv NO N...
result:
ok Correct (100000 test cases)
Extra Test:
score: 0
Extra Test Passed