QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#519777 | #8829. Aibohphobia | SocialPanda | AC ✓ | 52ms | 4640kb | C++23 | 1.4kb | 2024-08-15 01:34:00 | 2024-08-15 01:34:00 |
Judging History
answer
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
//#define int long long
//#define LL long long
#define double long double
//#define lf Lf
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define endl "\n"
#define PII pair<int,int>
#define Gheap priority_queue<int,vector<int>,greater<int>>
#define Lheap priority_queue<int>
#define MAXN 0x3f3f3f3f
#define MINN -0x3f3f3f3f
using namespace std;
//const int N=1e6+100,M=2*N;
//int e[N],w[M],h[M],ne[M],idx;
void solve()
{
unordered_map<char,int> mp,sin;
string s;
cin>>s;
int fg=0;
for(auto z:s) mp[z]++;
for(auto &z:mp)
{
if(z.se==1)
{
fg=1;
sin[z.fi]=1;
z.se=0;
}
}
if(mp.size()==1 and s.size()>1)
{
cout<<"NO"<<endl;
return;
}
if(fg or mp.size()>=3)
{
cout<<"YES"<<endl;
for(auto z:sin) cout<<z.fi;
while(1)
{
int ok=1;
for(auto &z:mp)
{
if(z.se>0)
{
ok=0;
cout<<z.fi;
z.se--;
}
}
if(ok==1) break;
}
cout<<endl;
}
else cout<<"NO"<<endl;
}
int main()
{
std::ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tt=1;
cin >> tt;
while(tt--) solve();
}
//sssuuuzzz
//hhjjj
//hjhjh
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3652kb
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: 3612kb
input:
18 qnx oooo tvttj zzzzz pvlne iijt hjhjj loo hh uq mgvgv ewwe iii kykk o mmumm aetvv xntl
output:
YES qnx NO YES vjttt NO YES pvlne YES jtii NO YES loo NO YES uq YES mvgvg NO NO YES ykkk YES o YES ummmm YES aetvv YES xntl
result:
ok Correct (18 test cases)
Test #3:
score: 0
Accepted
time: 1ms
memory: 3872kb
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 gtcpseqh YES bezsrrrrrr YES ree YES lgrhyyy YES bkxwxwwww YES sigahah YES kslzgvvv NO YES yrhqrhqqqq YES dsgfffffff YES zuszuszus YES wycdbnrnrr YES aculelee YES fwcwcwcwcc YES imemeee YES wsexsexee YES ympkkkkkk YES rimzdoee YES fhllll YES yuclllll YES uqruqrq NO NO NO YES cn YES zjlzjllll YES ...
result:
ok Correct (138 test cases)
Test #4:
score: 0
Accepted
time: 1ms
memory: 3888kb
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 lpvfupvfuvfu YES gthundqvcvccccc YES rjigqdgqdddddd YES mniiiiiiiiiiiii YES dsiejxqqqqq YES jvzkvzkkkkkkkkk YES neziwgmawgmaaaa YES dgbdgbdgbdgbg YES ezqbrxbrxb YES tlkqschxyxyyy YES bpdvrjrjrrrrr NO YES gaqkyqkyqky YES iftaeeeeeeee YES aslxhfbqfbqbb YES obzdecvcvcvcv YES eaqbiiiiiiiiii YES exhe...
result:
ok Correct (683 test cases)
Test #5:
score: 0
Accepted
time: 3ms
memory: 3536kb
input:
2713 ahrfzkzqahzahbqahzzu vwwwdpdsopmwmdmss zhkzhzjefkvnjfbxxbk oawqeraqvqoqqg eeeeedsxddeehzeehzee afrzcqrhdqikqcvqcakj xqkkkzqquqqkqqkdd urtrttjuruttutruutut mktgalyydawhgtcka qjhjjxxqhhqxqx fkfzfkffkfkkfffkkfz byyyqbbboboyqqoobb eyeyylrleeylerllrly ggfgzqgyqvqlehnq rrsjrrjrrjjjjrrrzrr qyqqyycrqrr...
output:
YES urfkbqzhaqzhazhazhaz YES vomspdwmspdwmsdww YES evnbfjxkhzbfjxkhzkz YES wervgqaoqaoqqq YES sxzhdezhdedeeeeeeeee YES fzdhivjkqcrakqcraqcq YES xzudqkdqkqkqkqkqq YES jtrutrutrutrutututut YES mldwhcyagtkyagtka YES xhjqxhjqxhjqxq YES zkfzkfkfkfkfkfkffff YES qyobqyobqyobyobbbb YES lyrelyrelyrelyelyel Y...
result:
ok Correct (2713 test cases)
Test #6:
score: 0
Accepted
time: 43ms
memory: 3684kb
input:
35444 vvgmvmmhtmgmmhvfhhhmhmqmqhmhhvf aiiaaaaipaiapsspcppaaappppypapa qgprgwugggggiqargigggugefgarg ssikskkmiisksqsssssssn dtvmryhhtikrrhmmhmmymrmimbvpvv cpbpprllqzletlllplugkxf sbpkbkbsptsbkkkbtbtsktkb ngvnnvnvgcgcnvnngnnnnvgn mhhyltymyjhynhhyymtyuuuyydjyyys vlbkkgmtekutxaltkltttkkcakttlkl njemezmg...
output:
YES tqfhmgvqfhmgvhmvhmvhmvhmhmhmhmm YES cyspiaspiapiapiapapapapapapapaa YES pewfaiurgqaiurgqrgggggggggggg YES mqnkiskiskisksssssssss YES dkbphyrmivthyrmivthrmvhrmvmmmm YES xkugtzqerbcfplplplpllll YES tkpbstkpbstkbstkbskbkbkb YES cvgncvgnvgnvgnvgnnnnnnnn YES lndsjtyuhmjtyuhmyuhmyhyhyyyyyyy YES vbxgme...
result:
ok Correct (35444 test cases)
Test #7:
score: 0
Accepted
time: 15ms
memory: 4284kb
input:
1 lllvrvrqtekpyfwztplrzmkfmlvllvjmzffllrmemmyjmlllwbiruatutvvumfttuemtjvmfvmjktlfzwmllfitqtvjtqftvergkqtebzjmwtvfjklklgjjevuuqrjzltrutklzytzvjyjuzlvjlivilvwtztijfrmvfkmfkiuxrtpftibbrlzvltbljbjtiqlzzjtyvljklvluutzqjvltenvtjlmtjyejvvlverflbvmkvjfwtlvrvmpbtpllvpbklqkulezkmrmltljvtklvitqelmvqvvfqfofkfyu...
output:
YES onxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjlyvreqtkpfwzmonxgauibjl...
result:
ok Correct (1 test case)
Test #8:
score: 0
Accepted
time: 16ms
memory: 4192kb
input:
1 ltdkuekutrbtetdwdttuvutvkvpdntdtlelvepthdtupiwvelpthttmrrtltvztgvutuvypvtbtrtfyrvfutefedpovbufubttvlpfutptdvevmzrvpslffetetveppvotlpewwrefytevteovnfvbytjvtvvhrptvwtewtotpvetgpvfegvefkbttvetrtabhemvtuktevthtbvbyftvrhepebpywhtttfjelrfrttugpevkkytettltvtudidobvmthsotrtvtbtvhtttbwvlpgghbrevplvpttbedfr...
output:
YES qajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofygzmiltdkuherbwvpnqajsofyg...
result:
ok Correct (1 test case)
Test #9:
score: 0
Accepted
time: 7ms
memory: 4240kb
input:
1 kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
output:
YES dkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk...
result:
ok Correct (1 test case)
Test #10:
score: 0
Accepted
time: 6ms
memory: 4220kb
input:
1 llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll...
output:
NO
result:
ok Correct (1 test case)
Test #11:
score: 0
Accepted
time: 6ms
memory: 4204kb
input:
1 xxsssxssxxsxxsssxxxxxxxsxsssxssxsxxssxsssxsxxsssssxxsxxsssxxsxxxsxxsssxxxssssssxxssxxxssssssxxsssssssxsxsssxsxxsssxxssssxssssssssxsssxssxssssxssxsssssxsxsxxsxssxsxxssssxxsssssssxssxxxssxsxsssxsxxsxxxxxsxsxxxsxsxsxsxxsxxsxssssxxxxsxssssxxsxxssssxsxssxxxxxxsxsxsxxxxsxxxssssxsxxxssxxxsxssxxssxxxssssx...
output:
NO
result:
ok Correct (1 test case)
Test #12:
score: 0
Accepted
time: 19ms
memory: 4156kb
input:
1 xuxjjjuwwxxxuljzwjwuxzwwxxujjxjuxjzwxxzxjjwxxwjxlxujjxlwwxwljwwxzxxwlwxuljtxlxjwlxwzxuzxuxuwwxuttzwjjjwxuxuwjxzxjuwllxxjjxxjxjjxjwxxwxuxjjxjzwwwwwzjuzlzujltxuxwxwjltlwjwxuljlxjuujxxxwjwuwjlxjxlxtwxxxwxlxwwlxjlluxxxwwxuxjwjtwlwwwxjxxjtjjxuwjtwxzujzjlwxxjxuxlxjzuujwjjjxxwwlxxxxxxzxxwjwwjjxxwwxxljzjj...
output:
YES tzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtzlwjuxtz...
result:
ok Correct (1 test case)
Test #13:
score: 0
Accepted
time: 14ms
memory: 4132kb
input:
1 rlaarbabrvbxxbbmbabrxqabbxhgaqhlgbaqrarbqagabglbbxqwaaaxrwawxarxhbvxgqgraablbbabbwxaravbbbxaabahxlitlrmgvhxabbbgxbvgvavablmrbvbbbvqbqbgxghwhbbahxcbhbahababrgvvarvxxbvqbbmgrmqvtvbbbavaqbryambabmhvabvarmlvbqiarbbvambbhxthrbhhyqqxgabxaaqvgqmlibrwqaalraawvraaahbbamaaaqqhmrrabvqavbqvamvbbxtlrvqxvlhhvbm...
output:
YES sycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabvixmqhgtwsycrlabv...
result:
ok Correct (1 test case)
Test #14:
score: 0
Accepted
time: 6ms
memory: 4196kb
input:
1 wwwwwwwwwuuwuuwuuwwwwwwuuwwwwwuwwwwuwwwuwwuwwwwuwwwwuwuuwwuwuwwwuuwuwwwwwwwwuwwwwwwwwuuwuuwwwwuuwwwwwwuwwuwuwwuwwuwuuuuuwuuwwwwwuwuwwwwwuwwuwwwwwuuwwuuwwwuuwuwwwuwwwwwwwwwwwuuwuwwwwwwuwuwwuwwwwwwuwwwwuwuwuwuwwuwwwwwuwuwuwwwwuwwwwuwuwwwwwwwwuwwwwuuwwuwuuuwuwwwwwwuuuwuwwwwuwwwuwwwwuwuuuwwwwwwwwwwwww...
output:
NO
result:
ok Correct (1 test case)
Test #15:
score: 0
Accepted
time: 3ms
memory: 4152kb
input:
1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
output:
NO
result:
ok Correct (1 test case)
Test #16:
score: 0
Accepted
time: 16ms
memory: 4196kb
input:
1 xxymtrfydfriirryfiwxxtxwfiwwiirtwiifmxklxddgdrgyxniimirihiitayyidwumtwfxfyifxixrfizfahfafdigkyxigrxtbdwxdiitpxwfxfijirjirfitirqfrxbqiitxhzrwhqtrahrbfdfhrmixwriubiirmwmrmridxrvfvasddrqfrxsmiixrrxwhpifhiinaxxfzeydbavrywtfrwiixtmkqdbxhbxtwfircmririwxaxwmziqxtbrwiifcrwsmrrrmsffitysdixxiyxmrgirhwfrxhcu...
output:
YES ocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbzuahxkylmtgrfdiwnocesvqjpbz...
result:
ok Correct (1 test case)
Test #17:
score: 0
Accepted
time: 15ms
memory: 4136kb
input:
2 jjccjhjceccjccccejcjjcccchcecjchccccjeccjccccccceececccccccccjcecccceccjcccccccechejccccbccccjjcccccecjccjccccjccecccjejcceccjccccceejejcjcjccjcccccchcheccejcccjccjcjeccjcccceccecjcccejcccjccccecchjjheccccjcecjcccccchcjccccehjccechccjcbccccccjcjccjccjccejcccjcjccccccccccbejjcjcejecjjcjjcjeccceccbj...
output:
YES behcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjbehcjb...
result:
ok Correct (2 test cases)
Test #18:
score: 0
Accepted
time: 10ms
memory: 4236kb
input:
2 eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
output:
YES qeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee...
result:
ok Correct (2 test cases)
Test #19:
score: 0
Accepted
time: 3ms
memory: 4180kb
input:
2 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...
output:
NO NO
result:
ok Correct (2 test cases)
Test #20:
score: 0
Accepted
time: 6ms
memory: 4296kb
input:
2 rrwwrwwwrrrwrrrrwrrwrwwwrwrrwwwrrwwwwwwwrrwrwrrwrwrwrwwrwrwrrwrrrwrwwwwrwrrrrwrwrwwrwrwwwwrwrrwwwwrrrwwwrrwwrwwwwrwwwwwwwrwrrrrwwwrwwrrwrwrwrwwrrwrwrrrwwwrwrwwrwrwwrwwrrwrwwwwwwwwwwwwwwwrwrrwrwrwwrwwrwwwwrrrrwrwwwwrwrrrrwrwwwrwwrwrwrrrrrwwwwwwrrrrrwrwrwrwrwrrrwwwrrwwwwwwrrwwwwwwrwwwwrwrrwwrwwrrwrw...
output:
NO NO
result:
ok Correct (2 test cases)
Test #21:
score: 0
Accepted
time: 15ms
memory: 4512kb
input:
2 bwwrbrrbrbbrrbwbwrbbbbvbbwbrrbrvbbrrbbbvrbrbwrbvrrrvrrrrbbrbbbrbbrbrbbrbrvbbwrrbrbbbrbrrbwrwrbbrbbbrbrbbrvbrrbbbbbbbbbrrrrrbvrvbrbrvbbrbbbrbbrrbbrrrbbbvrrrrbbrbbrbbrrbbbrwbrbrbrwrbbrvbbrwbbrrrrbbrrvrrrbrbvvbbrbrrwbwrvbwwrrrbbrwbbbrrvbvbbbbbbwvbvwwbrbrbwrrbbrrbwbwbrbbbrbbbrvvwbrbrrbbrbwrbbrbrbrrrrr...
output:
YES vrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwbvrwb...
result:
ok Correct (2 test cases)
Test #22:
score: 0
Accepted
time: 16ms
memory: 4252kb
input:
2 nugcuvzcqqzcocufwtvmodbqvqwwcqspphcqiupmvscgyppfuvvobvgvbuopbvouqpbqciugsovgqiquudlfcoucvuvuicumvuyviipawfiukqsiuopgqzxovoviqidvgicbfvxpocuvmqdsnqgqpfscnshtvgvugqabisuovqplsfowybikvlgogpdypaugccqqncgpcgbqstgpvcqwvivmnucpaczikfvpqbvdxqqgipbougqcgeitvvipgtvubqqssvokkvgbvqcwdkfcuqsaxsmucgqqusqsunuxvq...
output:
YES rexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmqdofwrexkalyihpsbnugtcvzmq...
result:
ok Correct (2 test cases)
Test #23:
score: 0
Accepted
time: 18ms
memory: 4372kb
input:
2 sybobwroswosbwsswssbsowobowsbwssowwoosobsbbwsbhwwwbbbwbbwssywwsosrswyswowyroossbbowssswwysbswsbbybbbossyosbbwbyswywwbosboysbwbsosobwsbbwswoywbswysbsbssowyobsbybwswbsbsbsoyosooossrwwrbwowwyyyssswsybbsobbbohbbsywysobswwhbssywsywrbbsyossssbossobwsyyrbbssswwwwbbysbobybsbooobwhsosyybbwosbwbwsbobbssowws...
output:
YES hrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshrwobyshr...
result:
ok Correct (2 test cases)
Test #24:
score: 0
Accepted
time: 5ms
memory: 4456kb
input:
2 yyyyyyyyyyyyyyvyyyyyyyvyyyyyvyvyyyyyyyyyvyyvyyyyyyyyyyvyyyyyyyyyyyyyvyyvyyvyyyyyyvyyyyvyyyyyvvyyyyyyyyyyyyyyvyvyvyyyyyyyvyvyyyyyvyvyyyvyyyyyyyyyyyyyvvyyyyvyyyyyyyyvyyyyvyyvyyyyvyvyvyyyyyyyyyvyyyyyyyyyyyyyyyvyyyvyyyyyyyyyyyyyyyyyyyyvyyvvyyyyyyyyvyyyyyyvyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyvyvyyyyyyyyyy...
output:
NO YES jmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmdcpjmd...
result:
ok Correct (2 test cases)
Test #25:
score: 0
Accepted
time: 9ms
memory: 4516kb
input:
2 dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
output:
NO YES tqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqdhnfbrvltqd...
result:
ok Correct (2 test cases)
Test #26:
score: 0
Accepted
time: 6ms
memory: 4640kb
input:
2 jjjjjjjjjjjjujjjjjjjjjjjjjjjjjjjjjjjjujjjjjjjjjjjjjjjjujjjjjjjjjjjjjujjjjjjjjjjjjjjjjjjujjjjjjjujjjujjjjjjjjjjjujjjjjjjjjjjjjjjjjjjjjujjjjujjjjjjjujjjjjjjjjjjjujjjjjjjjjjujjujjjjjjjjjjjjjujjjjjjjjjjjjjjujjjjjjjujjjjjjjjjjjjjjujjjjjjjjjujjjjjjjjjjjjjjjjjjjjujjjjjjjujjjjjjujjjjjjjjjjjujjjjjjjjjjjjjj...
output:
NO NO
result:
ok Correct (2 test cases)
Test #27:
score: 0
Accepted
time: 10ms
memory: 4204kb
input:
3 qgugaaagpllaxasaxxgpxxsqapbgqqglxjghagaxgsullgaxxqbpguxggxygfxaxluxpqxglsjxqhypgpaggagfqfugqlsqxlqguuuuqgygpohaggxbxqjzqjgxxsllaxflshqgaqjaagaupxuugjxpsxgsaguupjqsqxagqgupauupxaajqlxgqhdguggrgjxaxfgbqglbgulgqgxqjjxaagxfxxlgullqdxagsjaqlqgxluuusuqyjxfggllzqljpgfaggbugqgxhuluxxggauggayxquaxxufsxxpbs...
output:
YES rdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqguhaplyxsfbjrdzoqgu...
result:
ok Correct (3 test cases)
Test #28:
score: 0
Accepted
time: 12ms
memory: 4384kb
input:
4 kifbnffgffbsfrfbmfwbkivwdrggfbmimibfbpdfsvfrpmrfmvbpemgiwpbfbmwsfgbwvdamfbfrdgddkndjmmrgtmrrmsbvsfwwfspfftdfibdffffesdkfesbbmipbkrjwdpfgrfofvfpifvnfgrtvfnjmifbiwfbfifxvmsfgmsbdffvjfvdgewibfrrfvrfbbssmwfrskbkfffwfswffbfsedffbmdkmffddbebbrksgiprebrfdwrfngkufmbdffwkbfdeisapfbmbdstwiijbbbodbbbfffikigg...
output:
YES uxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngrmwdpuxotjaekivfsbngr...
result:
ok Correct (4 test cases)
Test #29:
score: 0
Accepted
time: 14ms
memory: 4308kb
input:
5 nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
output:
YES bnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
result:
ok Correct (5 test cases)
Test #30:
score: 0
Accepted
time: 18ms
memory: 3952kb
input:
6 jjwjwwcwuwccuwccwjwtwtecjcpujwtccczccwuuwucecwwwtjwcceuwujtjujctpwwufcjwtjwjwjuujcwcuujjjctwcucuwzfwcwujjujjuecujcfjtucucctejwcujwtcecfwpucwuucjjuuuuuujcwwcuzcwwcpjfcjwjwpwtwtcwcwctcufutcwjucccwwwccfcjjwpwjujeuwjuctwuczpuucujwujccucjcccuuzetjcfzjuuuueuccuwwjtjjfjpccuujjjwjeccccwtwutuwwjucujctwwwcw...
output:
YES fzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcwjfzetupcw...
result:
ok Correct (6 test cases)
Test #31:
score: 0
Accepted
time: 8ms
memory: 3976kb
input:
7 yyyyzyzyyyyyyzyzyyyzzyzzzzzzyzzyyyzyzyzyyyyyzyzzzyyzyyzzzzzyyzyzyyzyzyzzyyyyyzyyyyzzyyzzzzyzzyyzyzyzzzzzzyzyzyszyzzzzzyszyzzzzzyzyzzzzzyzzyzyzyzzyzyyzzzzyyyyyyzzyyyzzzyzzyzzyzyzzyyzyzzyzzyzyzzzzyzzzzzzzzyzyzyyyzzyzzyyzyyzzyzyyyzzzyyzzyyyzyzzzzyzzzyzzzyyzzyyzsyzyzzyzyzyzzyyzzyzyyzyyzyzyzyzzzzzzzzzy...
output:
YES szyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszyszysz...
result:
ok Correct (7 test cases)
Test #32:
score: 0
Accepted
time: 12ms
memory: 4120kb
input:
8 ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
output:
YES yfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
result:
ok Correct (8 test cases)
Test #33:
score: 0
Accepted
time: 8ms
memory: 4084kb
input:
9 dcuhhbmuswbdfduubwhnhbcbcmuwufhssdswkkscshfqnqdcchufhwwhwnfudpewbkbuqdhcuqdphdkaqmubwkckfhudqnqhcbbnpumknquuweqqqdbdubmkdbeacwmduuubfedumuucudbkpbbwkfbckfqweqbcububnmbnbukwwbmcukeuwccqucfcehqfumckwumufdhkebpkckuqchwfchcfbffmcqkbdcunswhwuukwucqcunhnewmbcfdukwcwcnqfuwdmbbcudubwqmhuuhuubqudwqmeddaquc...
output:
YES aedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbmsfwnkaedqcpuhbms...
result:
ok Correct (9 test cases)
Test #34:
score: 0
Accepted
time: 10ms
memory: 3892kb
input:
10 ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
output:
YES xddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd...
result:
ok Correct (10 test cases)
Test #35:
score: 0
Accepted
time: 10ms
memory: 3968kb
input:
11 ntthxnnrwzyrnpymfnexntpxttntwpfnzzyuknpnppnpnxnhtdttnhpxvgnvwpnnnhuzpuzzpluppztdxyvyxnknpdxwpwnfnznfnntvuzngpupvpmplpnpgndkxhxmldnxuwawnzzdlxpppwxujdznzdnxartlingtnntzplnunfttnntuumntnmunkxnleungzpttunpnplthygvhzmjxmnxvzzxfpttlnkpynywdnjdpzzfngtvlnnkeylmhxdhnzznmzpzujzuknmgnxyzfuvnnjpzunpxtdmvnyv...
output:
YES bijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdknthuxrewzmypfbijalgvdkn...
result:
ok Correct (11 test cases)
Test #36:
score: 0
Accepted
time: 9ms
memory: 4460kb
input:
12 fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
output:
YES zfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff...
result:
ok Correct (12 test cases)
Test #37:
score: 0
Accepted
time: 9ms
memory: 4152kb
input:
13 hshhhhhshhhhhhhhhhhhhhhhhhhhshhhhhhhhhhhhhshsshhhhshhhhshhhhhhhhhshhhhhhhhshhshhhhhhhhhhhhshhhhhhhhhhhhhhshhhhhhhshhhshhhhhhhshhhsshsshhhhshhhhhhhhshhhhshhhhhhhhhhhshhhhhhshhhhshhhhhhhhhhhshhhhhhhshhhhhshhhhhhshhhhhhhhhhhhshshhshhhsshhshhhhhhhhhhhhhhhhhhhhhshhhhhshhhhhhhhhhhhhhshhhhhhhhhhhshhhsss...
output:
NO NO YES leqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzsbworundxgtimcfleqzs...
result:
ok Correct (13 test cases)
Test #38:
score: 0
Accepted
time: 8ms
memory: 3992kb
input:
14 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...
output:
NO NO NO NO YES immmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm...
result:
ok Correct (14 test cases)
Test #39:
score: 0
Accepted
time: 13ms
memory: 3948kb
input:
15 rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...
output:
NO YES iwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxerghiwaxe...
result:
ok Correct (15 test cases)
Test #40:
score: 0
Accepted
time: 13ms
memory: 3772kb
input:
100 qqqwqxqqqqqqqqqqqqwqqqwqqqqqqqqqqqqqqwqqqwqqqqqxqqqwqqqqqqqqqqwqqqqqqqwxqqqqwqqqqqqqwqqqqqqwqqqqqqqqqqqqqqwqqwwqqqwqwqqqqqqqqqqqwqqqqqqqqwqqqqqqqqwqqqwqwqqqqqqqqqqqqqqwwqqqqqqwqqqwqqqqqqwqqwqqwqqqqqqqqwwqwqqqqqqqqqqqqqqqqqqqqqwwqxqqwqqqqqwqqqqqwqqwqqqqqqqqqqqqwqqqqwqqqqqqqqwqqqqqqqqqqqqqqqqqxwqq...
output:
YES xwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqxwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqwqw...
result:
ok Correct (100 test cases)
Test #41:
score: 0
Accepted
time: 11ms
memory: 3756kb
input:
101 odousahacopcorozuyvokjoozvhrrxoxoockjzxxxohoeikjjodcijoookbjzvdheojjayoboyejuozmzvejcojrjjkpjjvxvgopreyjpjavrjioovhxqvpzcjvnvjogpojkjakxoovzubhoxvpoauzxkxxeojuothjoqxshjoouoxohjooytexzhjjojupjowpacajoxxjeohxeziouyuhoobpvhhjgjuxexcjjxcukokoxkbovecydydoyyboeooopzbapdbjjoqquejzoadnprjuqejpbuawoooqd...
output:
YES fwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacprzyvkfwtnqgmbiexjoduhsacpr...
result:
ok Correct (101 test cases)
Test #42:
score: 0
Accepted
time: 10ms
memory: 3952kb
input:
102 uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...
output:
YES suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...
result:
ok Correct (102 test cases)
Test #43:
score: 0
Accepted
time: 13ms
memory: 3644kb
input:
103 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
output:
NO YES yovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxkbreqdiyovwlusznfhpajtxk...
result:
ok Correct (103 test cases)
Test #44:
score: 0
Accepted
time: 13ms
memory: 3776kb
input:
104 oouuoouoououououoouuoouoououuuuuooooouoouoouooouoouuoouuouooouooouuououuouooououuooooouooooouuuoouuuoououooouuoooooooooooouuuuouuuuoooouuouuuoououoouoouuuuooououououuuouuuuuouuoouoooooouooouuoouuoouuouooouououooouuouououoooououooououooouuuuoooouuuuuooouuoooouoouuuuuuououoouuououooouooououuouoooo...
output:
NO NO NO NO YES nqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxvgtnqdoumzxv...
result:
ok Correct (104 test cases)
Test #45:
score: 0
Accepted
time: 2ms
memory: 3752kb
input:
105 bcjobfehszohbhnbheesyhozbxbnhqzhohyyyjsbysbbseyqqebxoeehbhsbzsnozsjzssynhzsoeoohzyobsozosyjozjsjhsjyvssnfsyhobsffssnofsbsebyzshyssqjjobosszvsesohbzsyseyhhqsyoenajosnnesoozfsasshboaezhnosbeqshqjczsxysejbsbjysyhbshyoessbbnzjhozsohhsssoaszhojosaeseszjbycoysbhjesssvobnhycosveoyszssbzhhhfsehqbhxbhshn...
output:
YES avbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehznyxqavbocjfsehz...
result:
ok Correct (105 test cases)
Test #46:
score: 0
Accepted
time: 10ms
memory: 3688kb
input:
1000 vlvvvlvvlvvvlvlvvvvvvvlvlvvvvvvvvvvvvvvlvvvlvlvvvllvvvvlvvvvvvvvvvvvvvlvvvvvvvlvlvvvvvvvvvvvvvlvvvlvvvvvlvvvvvvvvvvvvvvvvlvvvvvvvlvlvvvvvvvvlvvvvvvvvvvlvlvvvvvlvvvvlvvvvlvvvlvvvvvvvvlvvvvlvvlvvvvvvvlvvvlvvlvvvvlvvvvvlvvvvvvvvvvvvlvvlvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvlvvvvvvvvlvlvvvvvvl...
output:
NO NO YES qtgxlqtgxlqtgxlqtgxlqtgxlqtgxlqtgxlqtgxlqtgxlqtgxlqtgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgxlqgx...
result:
ok Correct (1000 test cases)
Test #47:
score: 0
Accepted
time: 13ms
memory: 3632kb
input:
1001 nfffnfffffnffnnfnffvnffnnffnnvfffnfnnfnnffffnfvvfffvffvfnfffnfffnfnfffffffffffnffffffffnfvffvfnfvfffffffffffnffvffnvfffnffnnnvffnnffnffnfnffvfffffnffffnffffffnnfffnffvvfvfffffffvffnffffffnfnvnfffnnnnfffnffffnnffnfffnfvnffnvnfffffffffffffffvnffffnffnffffffffffvnffffnfffnfvnvfvfffffffffffnfvnfnff...
output:
YES bvfnbvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnvfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfnfn...
result:
ok Correct (1001 test cases)
Test #48:
score: 0
Accepted
time: 13ms
memory: 3924kb
input:
1002 oogmilwmoobuglffxuswdvmohlohofmbfhomoloeoouofgofolwuozmdmvoooxmmsgosohhooioabmeuuzlmuuazfoes aaaaaataaaaaotaatoaaoaataaataaaaaaoataaaaoaaaaaaaaaaaataaaaaaaaaaataaotataataaaaaaaaoaaaaaaaaaaaaaataoaataaaaaaaoaaaaaaaaaattoaaaaoatoaaaatataaaaaaaaaao ggggggggggggggggggggggggggggggggggggggggggggggggg...
output:
YES azehobgmivlwufsxdazehobgmivlwufsxdzehobgmlwufshogmlufshomlufomlufomufomuomomomoooooooooooooo YES otaotaotaotaotaotaotaotaotaotaotaotaotatatatatataaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa YES oggggggggggggggggggggggggggggggggggggggggg...
result:
ok Correct (1002 test cases)
Test #49:
score: 0
Accepted
time: 13ms
memory: 3644kb
input:
1003 pqvakizaapvlzllaljsajwskvsasivqlrjqkqlivowvkgrvknasireqqkarqrswjelsvkrjiehksswiskkszwlkvqkqalzjlsqplplkavllwllisaslvdvlivklkkvzplqlqklrqigslislelvqleyllllllzjzwikvxswkvlzkqqiqvlasqixkdqklalqalklpsvvekvkkpzspqlvllsskipillllgpsslslpsizsqoaejkxgkeqmsrllaszrknrlzvrkhllkvjkklkvvkijvgqaqrioaallkvzslv...
output:
YES ctbfumxydhengpqviakzljwsroctbfumxydhengpqviakzljwsrobfumxydhengpqviakzljwsrobfumxydhengpqviakzljwsrobfumxydhengpqviakzljwsrobfumxydhengpqviakzljwsrobfumxydhengpqviakzljwsrobfuxydhengpqviakzljwsrobfuxydhengpqviakzljwsrouxydhengpqviakzljwsrouxydhengpqviakzljwsrouxydhengpqviakzljwsrouxydhengpqviakz...
result:
ok Correct (1003 test cases)
Test #50:
score: 0
Accepted
time: 13ms
memory: 3588kb
input:
1004 jffjjjjjfffjfjfjfjjjfjffjjjffffjjjjjjffffffjjjjfffjjjjjfjfffjjfffjffjjjfjjfjffjfffjjfjjfffjjjjjjjffjffffjfffffjjfjjjjjjjffjfffffjffjfffffjjfjjjffjfffffffjjfjffjfjfjfffffjfffjjjffjffjjffjjjffjjffffffjfffjjffffjffffjjfjjfjjjfjjjfffjjffjffjjjffjjjfjjffffffjjfjjfjffjffjfffjfffjfjjjfjjjjfjffjfffjjff...
output:
NO NO YES knhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejqlbmgtknhaoxwucpvirejlbmgtknhaoxwucpvirejlbmgtknhaoxwucpvirejlbmgtknhaoxwucpvirejlbmgt...
result:
ok Correct (1004 test cases)
Test #51:
score: 0
Accepted
time: 14ms
memory: 3640kb
input:
1005 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
output:
YES oqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
result:
ok Correct (1005 test cases)
Test #52:
score: 0
Accepted
time: 21ms
memory: 3668kb
input:
10000 tvbb ueuiisdeuiiuauaeeuueusidaeiuuipiiiphaaiiuiiapuiieaeueippiiiiudaemhdmeeieisiaseeeuiuhmmihesesaemumuiihpuusiai wekkkkkkekkkfxkkkkefkkkkfxkkwkkekfkkkekkkkkkekkkxxkkk ggggggggzgggggggggggzzgggggggg jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...
output:
YES tvbb YES mpadsiehumpadsiehumpadsiehumpadsiehumpasiehumpasieuasieuaieuaieuaieuaieuieuieuieuieuieuieuieuieuiuiiiiiiiiii YES fxkewfxkewfxkefxkekekekkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk NO NO YES gcmxanepqthujnepqthujepqtujepqujpqujpqujpujujujujujjjjjjjj NO YES q YES dqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
result:
ok Correct (10000 test cases)
Test #53:
score: 0
Accepted
time: 21ms
memory: 3612kb
input:
10001 yggyyggggyyyyggggggggyggygggyyggggg vquennceiwrndbehzbzlrlqlwqs nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn...
output:
NO YES chudivslqernwbzlqernwbzlqen NO YES fgroxwmhcejqlyptdunivzkwmhcejqlyptdunivzkhejqypduzkejypdzejypp NO YES nlocydafstgjwivydafstgjwivydafstgjwivydafstgjivydafstgjiydafstjiydafstjiydfstjiydfstjiydfstjiydfsjiydfsjidfjidfidfdfdfdfdfdfdfdfdfffff YES qhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh...
result:
ok Correct (10001 test cases)
Test #54:
score: 0
Accepted
time: 20ms
memory: 3680kb
input:
10002 sitssistttssstssshstssssssttssssshtsssssstssstsssitstststissstthtsstssssstttsststtststisststtssssstsssttsstttsttstttstsssstsssshsssttstttttttsthsstssttssststtssttssiststssssshtisstttsssssttthstssttsstisssststtsssststtststsittstststssttsssssttsstssiststtsssttstttstttsssttsststtssststsstsssstsst...
output:
YES htishtishtishtishtishtishtishtishtishtishtistististststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststs...
result:
ok Correct (10002 test cases)
Test #55:
score: 0
Accepted
time: 17ms
memory: 3612kb
input:
10003 llllllllllllllllll swtiwdqlxpiblvroavecbxnfudmioyjddhovgkvl gggggggggggggwggggg wdffffwffffffffffwfdffffdfddfdfffwdffffffwfffffffffffffdfffwdffffwdffwffffdwffffffwffffwfffffwwffffffffffffdffffwffffffffffwwfffffffffdfffffffdffwffffffffffwfffffffwfffffffffffffdffdfffwf qqqqqqqqqqqqqqqqqqqqqqqqqq...
output:
NO YES rpqtkghujymfsnacewivdlxbowivdlxboivdlovd YES wgggggggggggggggggg YES fdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfdwfwfwfwfwfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff YES zqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq...
result:
ok Correct (10003 test cases)
Test #56:
score: 0
Accepted
time: 22ms
memory: 3868kb
input:
10004 ovyvdpdadmdyjvzgdadvdahmpvmddhvyaippizypypmmdhfhdybzpdeamvadypdvdvh iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiuiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...
output:
YES fgjobeviydpamzhviydpamzhvydpamzhvydpamhvydpamhvydpamvydpvdpvddddddd YES uiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii...
result:
ok Correct (10004 test cases)
Test #57:
score: 0
Accepted
time: 17ms
memory: 3552kb
input:
10005 siissssssssssississssisissisisissiisssiiisssssiisissiisssssissss mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm rrrrrrrrrrrrrrrrrrrrrrrrrrrrrprrrrrrrrrrrrrr zndyqznbdgxp dddddddddddddddddddddddddddddddddddddddyddddddddddddd twtwtttwtttttttttwwttttwwwtwtttwtttttttwtwwwt aaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
NO NO YES prrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr YES qybgxpdnzdnz YES ydddddddddddddddddddddddddddddddddddddddddddddddddddd NO NO NO NO YES pxxx YES htttttttttttttttttttttttttttttttttttttttttttt YES nerkxbqclyhajduwzmsfgtvoqclyhajduwzmsfgtvohjduwzmfghduwzmfhduwmuwmumuuuuuuuu NO YES hytciedqsfw...
result:
ok Correct (10005 test cases)
Test #58:
score: 0
Accepted
time: 51ms
memory: 3880kb
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 qpghreasfjtkxcblvoyuwzoyuwzw YES k NO NO YES xgcjburrrr YES iyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy NO NO YES oqrfgfgg YES gvqlsmmm YES nbjv NO NO YES kpds YES erii NO YES wsb YES v NO YES fccccc YES oxx NO NO NO NO YES lwuhibdevv YES ixhwm YES dw NO NO NO YES awgogo Y...
result:
ok Correct (99995 test cases)
Test #59:
score: 0
Accepted
time: 51ms
memory: 3616kb
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 lcfoo YES oqyvpoqyvpyvpvvvvvvvvvv YES omnapkqtylhewewewe NO YES kxcfdlojvfdlojvljv YES h YES wy YES jgkgkg YES x YES nrctylhzbkipakipapapa YES pmhajhaja YES zwfwff YES gok NO YES pms YES u YES w NO NO NO YES bl YES mfwkmfwkmwkmwkwkwkw NO NO NO YES vooooo NO YES tfjcmvk NO YES bvwydhdhdh...
result:
ok Correct (99996 test cases)
Test #60:
score: 0
Accepted
time: 51ms
memory: 3648kb
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 zbdgtnvjpomvjpomoo NO YES buuuuuuuuuuuuuuuu NO YES huzhuzu YES leqq YES epss NO YES yceviobkhtw YES af YES a YES ztylb YES qdwgrkcp YES baaaaaaaaaaaaaaaaaa YES yiiiiiiiiiiii YES x NO YES q YES ltmruu YES naudmwy YES za YES sw YES qddddddddddddddddddddddd YES adox YES z YES smkb YES ...
result:
ok Correct (99997 test cases)
Test #61:
score: 0
Accepted
time: 43ms
memory: 3684kb
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 dvcithithi YES u YES pcjheotot YES debebebebebebee YES xkohupatyy NO YES aqqq YES yffff YES aylvpcdboftejwgzmhsrqkigzmhsrqkigzhsrqrr NO YES ryusekeke YES coo NO YES lf YES bhwqbhwq YES vxx NO YES kuhsictqyy YES tkkk YES fvvvvvv YES w YES wqerivcpkboasjmtjmt YES puauaa YES ipw YES sbb YES jyae...
result:
ok Correct (99998 test cases)
Test #62:
score: 0
Accepted
time: 52ms
memory: 3584kb
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 mayrsfqdinyrsfqdinrfqdinrfdnrfddd YES qtgqtgqtgggggggg YES pvigxrshcdjohcdjooo NO YES uii NO YES yfcdrb YES uibrzxzxx YES cpbxinqfskhyerwjmadzladzl YES lss YES hqqqqqqqqq NO YES sbi NO YES oxss YES qdgtjayxkvursfzhpoihpoi YES dllllllllllllll YES izzzzzzz NO YES psxqsxq YES oblrwnujcyujcyujuj YES...
result:
ok Correct (99999 test cases)
Test #63:
score: 0
Accepted
time: 51ms
memory: 3620kb
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 vdqlielieleeee NO NO YES liaa YES a NO YES o YES ikwjlgkwjlgkwlgkwlgkwlkwlll NO YES xndtktk YES ehbociiii YES maa YES y YES gvvvvvvvvvvvvvvvvvvvvvv YES hxazvlnn YES xzdzdz NO YES k NO YES fxglcurejkurejk YES jssss YES oeiiiiii YES lspcxktnujyieujyieiei YES wmcwmcwmcmmm YES yvvvvvvv NO N...
result:
ok Correct (100000 test cases)
Extra Test:
score: 0
Extra Test Passed