QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#181799 | #7234. Pencil of Wishing | PhantomThreshold | AC ✓ | 845ms | 209000kb | C++20 | 3.9kb | 2023-09-17 00:43:06 | 2023-09-17 00:43:06 |
Judging History
answer
#include <bits/stdc++.h>
#define ll long long
#define int long long
#define lowbit(x) ((x)&(-x))
using namespace std;
const int maxn = 3100;
string S,T,str;
int sn,tn,n;
int gos[maxn][maxn],gose[maxn][maxn],got[maxn][maxn],gote[maxn][maxn];
int mnlen[maxn];
struct SAM
{
int las,rt,tot;
int par[maxn],len[maxn],ri[maxn];
int son[maxn][28];
int newnode(int L)
{
++tot;
memset(son[tot],0,sizeof son[tot]);
par[tot]=0;
len[tot]=L;
return tot;
}
void init()
{
tot=0;
las=rt=newnode(0);
}
void extend(const int w,const int r)
{
int p=las;
int np=newnode(len[p]+1); ri[np]=r;
while(p && !son[p][w]) son[p][w]=np,p=par[p];
if(!p) par[np]=rt;
else
{
int q=son[p][w];
if(len[q]==len[p]+1) par[np]=q;
else
{
int nq=newnode(len[p]+1);
memcpy(son[nq],son[q],sizeof son[nq]);
par[nq]=par[q];
par[np]=par[q]=nq;
while(p&&son[p][w]==q) son[p][w]=nq,p=par[p];
}
}
las=np;
}
vector<int>V[maxn];
set<int>S[maxn];
void dfs(const int x)
{
if(ri[x]) S[x].insert(ri[x]);
for(auto y:V[x]) dfs(y);
for(auto y:V[x])
{
if(S[x].size()<S[y].size()) swap(S[x],S[y]);
for(auto it:S[y])
S[x].insert(it);
}
for(int i=0;i<=sn;i++)
{
auto it= S[x].lower_bound(i+mnlen[x]);
if(it==S[x].end() || *it>sn) gos[i][x]= -1;
else gos[i][x]= *it;
if(i+mnlen[x]<=sn)
{
it= S[x].find(sn);
if(it!=S[x].end()) gose[i][x]=1;
}
}
for(int i=0;i<=tn;i++)
{
auto it=S[x].lower_bound(sn+1+i+mnlen[x]);
if(it==S[x].end()) got[i][x]= -1;
else got[i][x]= (*it)-sn-1;
if(i+mnlen[x]<=tn)
{
it= S[x].find(sn+1+tn);
if(it!=S[x].end()) gote[i][x]=1;
}
}
}
void build()
{
for(int i=2;i<=tot;i++)
{
V[par[i]].push_back(i);
mnlen[i]= len[par[i]]+1;
}
dfs(rt);
}
}tr;
int f[maxn][maxn];
tuple<int,int,int>g[maxn][maxn];
signed main()
{
ios_base::sync_with_stdio(false); ////////////////////////////////////////
cin.tie(0);
cin>>S; sn=S.size();
cin>>T; tn=T.size();
str= S+(char)('z'+1)+T; n=str.size();
tr.init();
for(int i=0;i<n;i++)
tr.extend(str[i]-'a',i+1);
tr.build();
memset(f,-1,sizeof f);
f[0][0]=0;
for(int i=0;i<=sn;i++) for(int j=0;j<=tn;j++) if(f[i][j]!=-1)
{
for(int x=2;x<=tr.tot;x++) if(gos[i][x]!=-1)
{
if(tr.ri[x] && i==0)
{
int nexi=tr.ri[x], nexj=got[j][x];
if(nexj==-1||nexj!=tr.ri[x]) nexj=tn+1;
if(f[nexi][nexj]==-1 || f[nexi][nexj]>nexi)
{
f[nexi][nexj]=nexi;
g[nexi][nexj]= make_tuple( i,j,nexi );
}
}
int nexi=gos[i][x];
int nexj= got[j][x]==-1?tn+1:got[j][x];
int temp= f[i][j]+mnlen[x]+1;
if( (f[nexi][nexj]==-1 || f[nexi][nexj]>temp) && nexi!=sn )
{
f[nexi][nexj]=temp;
g[nexi][nexj]= make_tuple( i,j,mnlen[x] );
}
if(gose[i][x])
{
nexi=sn;
if(gote[j][x]) nexj=tn;
temp= f[i][j]+ mnlen[x]+1;
if( f[nexi][nexj]==-1 || f[nexi][nexj]>temp )
{
f[nexi][nexj]=temp;
g[nexi][nexj]= make_tuple( i,j,mnlen[x] );
}
}
}
}
int ansi,ansj,ans=sn+1;
for(int i=1;i<=sn;i++) if(f[i][tn+1]!=-1)
{
int j=tn+1;
int tc= f[i][j]+ (i!=sn);
if( tc<ans)
{
ans=tc;
ansi=i;
ansj=j;
}
}
for(int j=0;j<=tn+1;j++) if(f[sn][j]!=-1 && j!=tn)
{
int i=sn;
int tc= f[i][j];
if( tc<ans)
{
ans=tc;
ansi=i;
ansj=j;
}
}
if(ans==sn+1)
{
return 0;
}
int i=ansi,j=ansj;
vector<string>outp;
if(i!=sn) outp.emplace_back("*");
while(i!=0)
{
auto [pi,pj,len]= g[i][j];
outp.push_back( S.substr(i-len+1-1,len) );
if(pi+len!=i) outp.emplace_back("*");
i=pi,j=pj;
}
//cerr<<ans<<endl;
for(int k=(int)outp.size()-1;k>=0;k--) cout<<outp[k];
cout<<endl;
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 87528kb
input:
aabb ab
output:
aa*
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 89692kb
input:
abaabaaabbbaabbb abaabbbaabaaabbb
output:
abaaba*
result:
ok correct
Test #3:
score: 0
Accepted
time: 7ms
memory: 93988kb
input:
amuletofyendor amuletofshmendor
output:
*y*
result:
ok correct
Test #4:
score: 0
Accepted
time: 4ms
memory: 87556kb
input:
spbau spbsu
output:
*a*
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 89660kb
input:
b abaabaaaabaababbabba
output:
b
result:
ok correct
Test #6:
score: 0
Accepted
time: 3ms
memory: 93676kb
input:
bbaabaaa babbaabbbbababbaaab
output:
*a
result:
ok correct
Test #7:
score: 0
Accepted
time: 4ms
memory: 87596kb
input:
abb baabababababbbb
output:
a*
result:
ok correct
Test #8:
score: 0
Accepted
time: 3ms
memory: 89596kb
input:
baaaaaaa abaabbbaabbbba
output:
b*
result:
ok correct
Test #9:
score: 0
Accepted
time: 29ms
memory: 124584kb
input:
aaabbababbbabaaaaabababaabaabbbbaaabbabbabbbaaaabaabaaabbbaabbaaaabbabbabaababbaabbbabaabababbabbbbbbababbaaabbababbaababaabbbbbababbaaaabaabbabaababbabbbbaaababbbabbabbaabb aabbbbbabbbaaababababaaaaabbbababbaaabababbbaabababbaabbaaabaaaabaaababaabaabbabaabaaaabbbaaababaabbbbbbbbaaaaaaaabbaaaaabbaab...
output:
*b
result:
ok correct
Test #10:
score: 0
Accepted
time: 11ms
memory: 114612kb
input:
bbaabaabbaaaabbbbabbaababababbbbababaaaa abaabbaabbaaabbbaabaababaaaababbbbbbababbbaabbbabbbbbabababaabbababaabbbbbbbbaaababababaaababababbbabaababababaabababbaaaaaaaabbaaabbaabbbbaaabbbbbaaaaaaaaabababaaababbbbabbbbaaabbaaaababbaaababbbaaababaaaaabbbbbabaaabaabababbababababbabbaababbbabbaabbbbbbbab...
output:
b*
result:
ok correct
Test #11:
score: 0
Accepted
time: 11ms
memory: 143116kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaab...
output:
*aabbabaaba*babbabaabbaababbab*abaababbaabbabaabb*
result:
ok correct
Test #12:
score: 0
Accepted
time: 7ms
memory: 91740kb
input:
aaaaaabbaaayxybbaaaaabbbb aaaaaabaaaayxybbaaaaaabbb
output:
*bbbb
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 92008kb
input:
bbbbaaaaabbyxyaaabbaaaaaa bbbaaaaaabbyxyaaaabaaaaaa
output:
bbbb*
result:
ok correct
Test #14:
score: 0
Accepted
time: 7ms
memory: 112624kb
input:
bbbaabbbabaaabbbaababbabbbabbaaabbbbbaababb bbbbbabbabbaaabaabbbababbbabaabaabbbbabaaaaabbabbbabababaaabaabbbbaaaaabaaaaabaaaabbbbabbaabababbbbaaaaabbabaaaabbabbbbbbaaaaaabaaaabbaababbbabbbbbaabbbabbabaaaaababaabaabbabbbabbbbbbabbababaabbaaaabbaaabbaabaababababbaabbababbabbaabaabbabbbbaabbaabaabbaba...
output:
*bb
result:
ok correct
Test #15:
score: 0
Accepted
time: 582ms
memory: 198740kb
input:
baabaabaabbbbaaaaabaaababbabbbbbaaaaabbbabaaaabaababaabbbbbabbbbababaabbabbabbbbaaaabbabaaababaabbbaabbbabbabbabaabaaaabbaaabaaaaabaaaabbbbabaabbbaabbaaabbbbabaabaabababaabbbbabaaabbaaaaababaaaababbabababaabbabaaababbaaaaaaaababbbaabaaabababbbbbabbbbbabbbababbbaabbaaabaababbbbabaaaabbbabbbaaababaaba...
output:
b*
result:
ok correct
Test #16:
score: 0
Accepted
time: 3ms
memory: 87556kb
input:
abaab abbab
output:
aba*
result:
ok correct
Test #17:
score: 0
Accepted
time: 3ms
memory: 91648kb
input:
abbaababba abbabaabba
output:
abbaa*
result:
ok correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 91900kb
input:
abbabaababbaabbabaab abbabaabbaababbabaab
output:
*abaaba*
result:
ok correct
Test #19:
score: 0
Accepted
time: 0ms
memory: 96008kb
input:
abbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababba
output:
*bbaababbaa*
result:
ok correct
Test #20:
score: 0
Accepted
time: 0ms
memory: 102024kb
input:
abbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaab
output:
*babbaa*aabbabaabb*
result:
ok correct
Test #21:
score: 0
Accepted
time: 0ms
memory: 116396kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabb...
output:
*babbaa*aabbabaabb*bbaababbab*
result:
ok correct
Test #22:
score: 0
Accepted
time: 0ms
memory: 87532kb
input:
abbab abaab
output:
abb*
result:
ok correct
Test #23:
score: 0
Accepted
time: 0ms
memory: 87644kb
input:
abbabaabba abbaababba
output:
abbab*
result:
ok correct
Test #24:
score: 0
Accepted
time: 0ms
memory: 91704kb
input:
abbabaabbaababbabaab abbabaababbaabbabaab
output:
*abaabb*
result:
ok correct
Test #25:
score: 0
Accepted
time: 7ms
memory: 91636kb
input:
abbabaabbaababbabaababbaabbabaabbaababba abbabaabbaababbaabbabaababbabaabbaababba
output:
*bbaababbab*
result:
ok correct
Test #26:
score: 0
Accepted
time: 3ms
memory: 100020kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab
output:
*babbaa*aabbabaaba*
result:
ok correct
Test #27:
score: 0
Accepted
time: 8ms
memory: 114376kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabb...
output:
*babbabaabb*bbaababbaa*babbaa*
result:
ok correct
Test #28:
score: 0
Accepted
time: 20ms
memory: 139272kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaab...
output:
*aabbabaabbaababbab*abaababbaabbabaaba*aabbabaaba*
result:
ok correct
Test #29:
score: 0
Accepted
time: 3ms
memory: 89808kb
input:
c baccaab
output:
c
result:
ok correct
Test #30:
score: 0
Accepted
time: 3ms
memory: 91776kb
input:
cbbaacccaaaacaaabbac bcbaa
output:
c*
result:
ok correct
Test #31:
score: 0
Accepted
time: 4ms
memory: 87640kb
input:
bcabbbbaab acbb
output:
b*
result:
ok correct
Test #32:
score: 0
Accepted
time: 3ms
memory: 87488kb
input:
abbba abbaaabbbcaacbccbca
output:
*ba
result:
ok correct
Test #33:
score: 0
Accepted
time: 3ms
memory: 87600kb
input:
bbba abbabbacacaccbaacaaa
output:
b*
result:
ok correct
Test #34:
score: 0
Accepted
time: 7ms
memory: 114688kb
input:
babaacbaaacbaccaabcaccbbaccaaabbabbccbbbacababacaccbcaacccbbaacabbcccbcbcbbaabbacccbccbbcbbbabbabcbbcaacacaccabccbcabcbaacccacaaccbaaaccbacaacbbbbcaba cabaaaacaabbcbacbbccaabacacabcbbabaabcabcbccaabccccbccbcbccaaabcccccacbcaacbcbaaccabbbcbcaaccbabcaaccacabbbccaccccacacbbacaacbbcacbbbbcbaabacabbababa...
output:
b*
result:
ok correct
Test #35:
score: 0
Accepted
time: 249ms
memory: 184628kb
input:
cbcacacbbbbcbbccaabbcccbaaacabcbbabaccbbabbaacccacababaaaabbbbcbcbcccbbcccaccbcccbabcabcbbbcbaacbbbcaccbbbcbbabacccacaaaaabcaaaccaccbbbbcbccabcacaaccaacacccababacaccabcccacbcaabbbbcabacaabacaaaabcaccbabbccabcbcacccbcacaabaacccbcbaccbbabaabcbcbabbbabcbaabababbbcbbcaacabcccccbcababbccabcbcabaacbbbccbb...
output:
c*
result:
ok correct
Test #36:
score: 0
Accepted
time: 312ms
memory: 196704kb
input:
bacbaabcccccabacbaaaabbbcbacbabcabbaccabbccacabbaabcacbccbababbbbacbcbbbcacaabababaccacbacacbaabccabcccbcbcbbacababcacaabcbbbcabbbaaacabaaacaccccbbbaaabacccacbbbbbaabbababbacbcaaacaabcccbbcacccbaacaababcbbbbcbaaccbabbacccaccbbabbbcaaccbbaaabccaabcabbbbaacbccccbaccbabcbcbbcabacacaabcabbcbbbaabaabcbaa...
output:
b*
result:
ok correct
Test #37:
score: 0
Accepted
time: 12ms
memory: 122872kb
input:
bacacabcaaaacbbabbcbbbaccabbbccccccabbbccabbabcabcccabbbbaacccbccaccacaabcaacbcbaababbcabcaccabcaaabbaabaacccaccccbcbabababcabcbbabacbacccbacabaacacbbacccaaccbbcaacccbaacacaccabacbbbccccbcccabbcccabbacbbaaaaccaaabccbbacbaacbcbcacccbaa aaabbcbbcacaccccccbacacbabcccbbacbbbcacacaccccaaaaaabbbbcbccbbcca...
output:
b*
result:
ok correct
Test #38:
score: 0
Accepted
time: 23ms
memory: 155540kb
input:
aaabacbccabbcbcacaaabababccbabbbacccccbbcbbaaacbabbcaaccabacbbacacaacbcacbbacbacccabcbacaaabbacbccbbabbccaabbbabccabbaabbbbcaccccabaabbbcbacacabbcaaaaaacaccbcabcccaacbaacbccabccbbbbbcabbbbbcbcccbcbaaacccaccccbcbbcbcaaccacbabcaaabacabaacbcbbabbcbcbcbacaaaccaccaccccbacabaababbbcccbbcbabacbbbbbccbbcaac...
output:
*b
result:
ok correct
Test #39:
score: 0
Accepted
time: 0ms
memory: 87856kb
input:
lflpycarhnsyy dsiouaolhlzmpy
output:
l*
result:
ok correct
Test #40:
score: 0
Accepted
time: 4ms
memory: 87492kb
input:
ktoph mepp
output:
k*
result:
ok correct
Test #41:
score: 0
Accepted
time: 3ms
memory: 93760kb
input:
gsnjrwbwyyrso whodehlflazqn
output:
g*
result:
ok correct
Test #42:
score: 0
Accepted
time: 0ms
memory: 89864kb
input:
rstjl j
output:
r*
result:
ok correct
Test #43:
score: 0
Accepted
time: 4ms
memory: 87672kb
input:
likiiaihmmmdneaey kq
output:
l*
result:
ok correct
Test #44:
score: 0
Accepted
time: 4ms
memory: 145024kb
input:
qwaiqvnrejukzzrxckcbxiluoulcdonjpxbnaunwwacsgzwtnxikrsnjesjqtvkhefzzxosmuesorinxoetsqrqztqgkmfiqbbudrszmguofdqakaeqycnljohzgjiuchxevoidrufeaohhcqavibrmavlfxjkuvjavvyooffmldoddesijwasteapqthtllclksecfsqorakqgqmzwhggvcyhfycjmmgbdolqcfeswtuajjejdkihxaiozbaqvowxcidchldrjvthachxcpqdzszacixfvrdafowwusccdf...
output:
q*
result:
ok correct
Test #45:
score: 0
Accepted
time: 0ms
memory: 130752kb
input:
omhuwyukjnwytkqaqeinjoxxsmnmcuneqhdscyaqwchqiteyicrvetqhpmkppnwjzqsgqnhjldzlojfxdranfgkaivwqaxxdkzsyphzhlzcfesbvfbyrkqyjzuhtwbwlxfyttojbtesytfutoevsglvnimdapmwqvdeliqizhapbobctjatcuifjfuaekyijodzqbgzgtfysmzgophxvlrpqagbpoacpvxhwsytsestcibeqyezdpvi hkelcasxpjysyuauiueibapyqbbnwtlinxryuzmwwckmqyigebhe...
output:
o*
result:
ok correct
Test #46:
score: 0
Accepted
time: 4ms
memory: 128760kb
input:
nqjciwgodkpnbtehhvwlhfzrjajgrvwfzysxtkxrvkinqdncfhpgzvemleajfgctjragnjmllqbbytukmueamclxwqtgpqqpefxtmqccmzmxzdpvllwqiyokuaohilfdepuxzvowcuhhrvexzfzslxxzjtshlgcjynxkzlninjpeyridotayrmlhoczqqokzvjxkwwqmohahtnpihgdbkfgtwaxpzxgovinahhazlemawxqwxswjnvhremqrc sxlfhwlruoqqztntciugaucppzctrcphctlelmrrwwjbaz...
output:
n*
result:
ok correct
Test #47:
score: 0
Accepted
time: 54ms
memory: 204732kb
input:
tiupunfbiiscxbjfpuegqjwvbouywzvnjcbdiktvumuqqztqfjzqhyuykgooryhdyqtbempubutwovfkaykhagzyeljpdpqqyhhfiimkvexnuoxjblyuznxgzrjkzybpwfrspfiscyunxoembspdzuiviqqtgxihqqhtwrwixogfdvwqugpsqedfdfxrpckwsmxerbthscwyxcsaywnrnfqauowenpaysjnxbtperzmyeivehcrcvbhnlrjzcxuopxguwodyebmitnztvshpnpcdyqpwddrebhbbbbsivkxd...
output:
t*
result:
ok correct
Test #48:
score: 0
Accepted
time: 3ms
memory: 102212kb
input:
ejiefhutyzamobntnorglkiqdcei fzsixfuohiwvvpmglnizuyqpbfnyfefksgpuukpdyoubtftrpwwznwwyxnfktiblqtjmxltijzvyxuhdaxovggpswazsibugtjtszpllotibwwevuoftrbewpyulyogtaqmujsjcxwjjvfipftikjjjkdtxymxlclnbycxoyjwzitwlwaaqcnapiizodxjmiextuscgeorhoauunyvjejnnyqmgfieleugzmckdawbpszmbb
output:
e*
result:
ok correct
Test #49:
score: 0
Accepted
time: 3ms
memory: 91912kb
input:
ababab abbaab
output:
aba*
result:
ok correct
Test #50:
score: 0
Accepted
time: 4ms
memory: 87592kb
input:
abbaabbaabba abbabaababba
output:
abbaa*
result:
ok correct
Test #51:
score: 0
Accepted
time: 3ms
memory: 93772kb
input:
abbabaababbabaababbabaab abbabaabbaababbaabbabaab
output:
*abaaba*
result:
ok correct
Test #52:
score: 0
Accepted
time: 0ms
memory: 96060kb
input:
abbabaabbaababbaabbabaabbaababbaabbabaabbaababba abbabaabbaababbabaababbaabbabaababbabaabbaababba
output:
*bbaababbaa*
result:
ok correct
Test #53:
score: 0
Accepted
time: 0ms
memory: 104268kb
input:
abbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab
output:
*abaababbaabbabaaba*
result:
ok correct
Test #54:
score: 0
Accepted
time: 0ms
memory: 118516kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaa...
output:
*babbaa*aabbabaabbaababbaa*babbaa*
result:
ok correct
Test #55:
score: 0
Accepted
time: 19ms
memory: 151388kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabba...
output:
*aabbabaaba*babbabaabbaababbabaababbaabbabaaba*aabbabaaba*
result:
ok correct
Test #56:
score: 0
Accepted
time: 0ms
memory: 89676kb
input:
abbaab ababab
output:
abb*
result:
ok correct
Test #57:
score: 0
Accepted
time: 4ms
memory: 89908kb
input:
abbabaababba abbaabbaabba
output:
*bab*
result:
ok correct
Test #58:
score: 0
Accepted
time: 0ms
memory: 93752kb
input:
abbabaabbaababbaabbabaab abbabaababbabaababbabaab
output:
*aabb*
result:
ok correct
Test #59:
score: 0
Accepted
time: 0ms
memory: 97876kb
input:
abbabaabbaababbabaababbaabbabaababbabaabbaababba abbabaabbaababbaabbabaabbaababbaabbabaabbaababba
output:
*babbab*
result:
ok correct
Test #60:
score: 0
Accepted
time: 4ms
memory: 104096kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaab
output:
*aabbabaabb*
result:
ok correct
Test #61:
score: 0
Accepted
time: 3ms
memory: 120480kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabb...
output:
*babbabaabbaababbab*
result:
ok correct
Test #62:
score: 0
Accepted
time: 20ms
memory: 153300kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabba...
output:
*aabbabaabbaababbabaababbaabbabaabb*
result:
ok correct
Test #63:
score: 0
Accepted
time: 499ms
memory: 208896kb
input:
aabbabbabbaaabbabbaaabaabbabababbabbbbaaabaabbbbaaaaaaaaabbaaabbaababbaabbbabaaabaaaaababaabaaaabbabbbaabbbbbbabbbbbbbbaaabbbbabbabbbaaaaabababbbbaababaaabbababaababaaaaaaabbabaababaaabbbbabbbbbbaaababbaaaaabbabababaaaababbbaaaaaaaaababbbbbaabbbababbbaaaabaaabaabbabbaabababbaabbaababbaaaabbaaabbbbaa...
output:
*abbbabaa*
result:
ok correct
Test #64:
score: 0
Accepted
time: 634ms
memory: 208820kb
input:
baaabaaabbabbabbbbbbbaababbaaaaababbabababbbaaaaaabbabbbbbaabababbbbbbabaaaaaabbbaaabababbaaaabababaabbbabaabaabbbbabbaaaaabbaabbbababbaababbbabbaabbaaaaaabbbababbbaabababaababaabaabbabbbaaababbbbaabbabbbaaaabbabbbabbaaaabbbaaabbaabbbbbbbbaabbbbbaabbaaababaaabbabbbabbbbaabbbbabbababbbaaaabbaabaabbba...
output:
baaabaaa*
result:
ok correct
Test #65:
score: 0
Accepted
time: 43ms
memory: 204804kb
input:
bbbbbbbbabaaaabbababbabaaaaaabbabbabaaaabbbbbababbabbaabaaaaabaaaaaaabbaabbbabbabaaabbaaabaaaaaabaabaababababababbbbaabbbbaaabbbbaaabbbabbabbbbbbaabbbbbbabaabbaaaababbaabbabbbbbabbbaabaabbbabbabbaaabbbabaaabaaabaabbbabbaaaabbbbbbaaaabbabbabbaabaaaabbbbababbaababbbbbbabbaababbbaaabbabaaaaabaaaaaabaaa...
output:
*baaaaabb*
result:
ok correct
Test #66:
score: 0
Accepted
time: 269ms
memory: 204856kb
input:
babababbbbbaabbababbabaababaabbaaaabbbaabaaabbbbbbaaabbabbbbaaaaaabaaaaabbaaaaababbbababbbbaaaaaaaaabbbbaaabbbbaaaaaabbababbbbbbaabababbaaaaabaaabbbaaababababbabbbbbaaabaaabaaaababbabbaabbbbaabaababbabbbbabbbabbbbabbabaaabbbbabaabaaabbabababbbabaabbaaabababbbaaaabbabaaaaaabababaabbabaaabaabbaaabbabb...
output:
*abaaabbab*
result:
ok correct
Test #67:
score: 0
Accepted
time: 55ms
memory: 206760kb
input:
baabbabaabababbabbabaaabbaaaabbbbaaabbabaabaaaaabbbbbbbbaaaabababababaababbaaabaaaaaababbabaaaababaaabbabaaaababbbabbabaaabbbaaabbbbaaaababaaaaabbaaaaaabbaabbbaaaabbbbbbbbbbbabbabbbbbbabaabaabbbaababaaabaaabbaabaabbbbabaabaabbabbbaaaaaabbaaaaaabbaabbbaaaaaaaabaabbabaaabbaabbabaaaaabbabbbabaaabbbabab...
output:
*babababb*
result:
ok correct
Test #68:
score: 0
Accepted
time: 63ms
memory: 209000kb
input:
bbbabaababaaaabbbabbaababababababbaabaaabbbabbbaabaaaababaaabaabbaaaabaabbbaaaaaaaaaaabbbbabaababaabaaabaaababaaababaabbababbabbaaabbbabbbabbbabbbaaabbbabaaabbaaaabbbbbbaaaaabbbbbabaaaabbababaabbabababaabaaababbbbbabababbaabbbbbabbbaabbaaaabbbbbbbaabaaaabaabbbbaabbaaaabaabbaababbaabbbbababaababaabbb...
output:
*baaabbbbba*
result:
ok correct
Test #69:
score: 0
Accepted
time: 190ms
memory: 206800kb
input:
baabbbaaabbbaaaabaabbaaabaaabbbaababbbabbbabbbbababaaabaabaaaaaaaaaaababbbaabbabbbbbbbaababbaabbbabbabbbbababbaabaabbabaabbaaaabaaaaabbaaaaaabbaabaabbabbabbababaaabaabbbbaaaaabaabbaaabaaaabababbbaabbbaaaaabaabbbbabaaababaaabbaabaabaaabaabbbabaaaaaabaaaaabbaaaaabbbbaabaaaaabbbaabaabbbaabbaaaaaaaabbba...
output:
*bbbabbaab*
result:
ok correct
Test #70:
score: 0
Accepted
time: 524ms
memory: 207032kb
input:
bbaaaabaaababbbabbaaaaabbbaabababaabbaaaabaabbbaabbbabbaabaabaabbbbabaabaabbbaabababaaaabaaaaaaabbaabababbaaabbbaaaabbbbbabbaaabaabbaaaabbbbabbaabaabbbaaabbaaaababbbbabbbaababbabbaaaababaabbbabaabbaaaaabaaabbbbbbaabaabbbababbabbbabbbbaaabbbaabaababbabababbbbbabbbaaababaababbbaaabbbbbbaababaabbaaabab...
output:
*abaabbbba*
result:
ok correct
Test #71:
score: 0
Accepted
time: 279ms
memory: 205040kb
input:
bbbaaabbaaaabbbaababbaababaaabbaabbbbaababbbabbaaaabaababaabababaaaabbabaaaaabbabbabaababbaabaaaabbbaababbbbabbbbbaababababaababaaabbababababbbbaaabaabbaababbabbaabbaaabaabaabbabaaabbbaababaaaaaababbaaabbbaababaaabbbbababbbbababaababbabababbabaaaabaaababaabababbbabbbbbbbbaabaaabbbaabaaabbbabbababbbb...
output:
*bbbababbb*
result:
ok correct
Test #72:
score: 0
Accepted
time: 194ms
memory: 204816kb
input:
bbbaababbbabaabaabbbababababbbbaaababaababbbbaaaaabababaabbaabbbbbabbbabbababaababaaabbbaabaaabbbbaaabbbabbabbbbaababbaaaaabbbabaaaabbbbabaaabbbbabbbbaaabbabaababbaabbbabaabababaaaaabababaaababbbabbbaaaaabbabbbbbabbbbaabbbbaaabbaaaabbbbbbabababbbbaaaababaaaabaaaaabbabababbbabbabbbabababaaabaaaaabbaa...
output:
*aaaabbaaa*
result:
ok correct
Test #73:
score: 0
Accepted
time: 153ms
memory: 207056kb
input:
cbabaaabaabbabacaacaaabcabcbcacaabbbcbbcbaaabcacacccbaccacbbcbbcabbcbbcaaabbcbbacbabcccaabcaababcbaabcbcacbcbbaacaabababaccbccacabaabccccacccacbacbcbacabccabcabcabcaacbaabaacaaaaccccccccaabaaccaacaabbacbcbaaacaccacabbcabbbaacbbbcabaccbcbcbabaaaacbabbacaaaacaacacabbcbbcaaabbbccaacbaaccccabccbabaabcbc...
output:
*abbaca*
result:
ok correct
Test #74:
score: 0
Accepted
time: 29ms
memory: 204804kb
input:
caacccccabcccccaabccbbcbacbbaaaaababbacbcaccabbbbcabcabccbccccbbbbbcbabaaaccccbaaccaaaccabcbcbcbaabcacbbcbbcabacabcccacbcaacccabaabbbcbcabccabaccbabbbbccaaaabaaaaabccccabbacabccbcabcaabbcbacbcbabcbcbaaaacbbaaccccbaabbbbbaabcaccbabccbbababbbaacbaaabbcbcbbbbcacabcaabbbccaabaacccccacaababcbabbccacaaaac...
output:
*cabbaa*
result:
ok correct
Test #75:
score: 0
Accepted
time: 83ms
memory: 206844kb
input:
cabbabaababbbabbbbbcabbaabcabbaacbcbbaabaacabbbbbcbcbcacbcbcbcacbcccaaccccaabaaabcabaabaaacbacccacbcaaaabcbbccaacababccbaaaacbaccabcabacabbbbccbacccabbbbbbaccabbcacabbbabcccbbcccbbabbccbcccaaabcabaabcccacaaaacaabbbcacccbcbbccacbaacaaccbcccccbaabaabbaaaccbbababbbbacaaaccacaccccbcbaaccaccbcbaacccbcacc...
output:
*acacb*
result:
ok correct
Test #76:
score: 0
Accepted
time: 114ms
memory: 208744kb
input:
aaaccbbcbcccaabccbacbaacbbccccaacbcbacbaaacbccbcbbcaccbacbcabbcabcaaccaccbbbabcbccabaaabaacabaccbcacaaaabcacbabbbcbaababcbcbcacbccbbcbacbbaccaaabaaaaaacababbcccbcabccbabcbbcbbaccabacaaabacabbbacacccaabccbcbbaaacbabbbcbbbbbacbaacaccabbabcbbbbbabccbbbbccacaaaaacbabaccabababaccacabbaacaacabbcbacbbbcabc...
output:
*cbbcab*
result:
ok correct
Test #77:
score: 0
Accepted
time: 59ms
memory: 204820kb
input:
bbccabbaaacaabccbbcabaabacacccbcbcacacbbabcaabbcbbbabacbbccbcbbacbbbccbbbaaaacbababbbbacbabbcccaaacaacaaabababbacabccacbabccacaabbbbcbcacbcaaabaabbabccbccbacbbcccaabababbbcbccccbbaacaacbababcaaacbbcabaaacbabcccbbbccbcccaaaaacabcaaaaaccaaabacbbcbcbababcbabbaabaabbabbabaabbabcaaacabcbbcbacbbcbacababcc...
output:
*cbccbc*
result:
ok correct
Test #78:
score: 0
Accepted
time: 36ms
memory: 206752kb
input:
lpttdhethqqjsrubvpdqeovuoplraehsetbotseeccifeigbhnvuevaebtbdsprgjoqcsffsfhfarsinftmposbqrdckmvnmjaecapcpsmrpcdaifaonvcqocctnnsblmrrcdqkoielilvjfcehjulaiiqqnjqvfggtkifvmgdvaieejlhfmfqsbaoancnqkgsclbbonggedmsiqrsuaehifupvhdrkgnutviqaptfndvbueomvvfaddagpqcfqdveaelalfinvdpdrlrumcsdoqhikjafqlhnhraniugohn...
output:
*sd*
result:
ok correct
Test #79:
score: 0
Accepted
time: 29ms
memory: 206784kb
input:
oritciiecdskatgrbgfktnwtcnkbgokhvtjdnsvskfhsuhdaliempcinwhgqhltimclbvorwgpjdsdfspldiurhkrlwtsuohjpcsfhpohatgpqnkaonhftitshupwoklnhvgjamhdfhkbjtomjkbfqbmffgmtgspfnumgdfbuglicskmlcefeuaqmlobsgtgkgmhuieshisrbgifurucoqivthhogdjskdfcjpwiieernhmcdrgsrlapsiucqjuehucqlrimhwumjvqiwfovovegttgqovabdqbodfqjcqdm...
output:
*vwo*
result:
ok correct
Test #80:
score: 0
Accepted
time: 23ms
memory: 206720kb
input:
updqlfbekkkdanokirpipkpsnwgngbpeurgklrbjiqajpbkeifvouucscddhairrabwessumieqpcthmvitvcwrabaterhfgfrwsuenxutntexhofpktvssjabsaksxwfhcbmmjhkhujktxwevrtixhbkcnhswkwwfxmhgfpnoitqqtpuvjkxhfldhhglwukdrqxanlfbsvpbfhpcnitioivhufabxxwqvkofwadcbaislpqtprkfrmrcvkjsnbnjpigheagnvulxrxgkjbtdmvujwcoqtmedcgcfuhsemos...
output:
*asm*
result:
ok correct
Test #81:
score: 0
Accepted
time: 31ms
memory: 204624kb
input:
qvmxredpqwnnijojyaooivkyhlakakxcknvuyyokyjmxdcrdcfxjtscayyakvcuxproyhhkcutvvdebbmqgfyvfkmhcimudfhnmqtjkjgwxmnepdmmsreotldpunphyemtgbuigpstrvwyxspenfsnsqvyqrtfassiulcmctdpjlytqkiyypagstoqwmdocvofywwpmotkeakcrlmtbwwbfqcvjnkdtbmgwkrvnawfaqngijytjryufyftrreslvjacrxwcfpskperradbpsqcoanajpwpxinunejseqdanf...
output:
*ckx*
result:
ok correct
Test #82:
score: 0
Accepted
time: 29ms
memory: 206652kb
input:
brleofcmbhtgyjhaoqqmdtzyyakmidnbqnsisunzorvahityskealvozpjrlcyuzsnezbueqnbcjsxjobuiqjiebzeeayxtwxqowjiubyfvytrazgatudhfshhuunqkgmpoxjueebvaitdincjxthsqcvqwsjxldttmvdcxxksygghpfvwhrahtfxqxtljbfnuujoamdqicjkrwlneudalkuuyibrhmlbyjmbusehslqlfbmihvxarkaxkpxlrovmaurmwuwcxzgdsjylduqdpzgqvgzyhkieryzjgafsxry...
output:
*lm*
result:
ok correct
Test #83:
score: 0
Accepted
time: 11ms
memory: 161548kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok correct
Test #84:
score: 0
Accepted
time: 21ms
memory: 165704kb
input:
abaaacbbcbbbcabbcbaabbaabcbaccaaacaaccbbcbbaaacaccaabccccabbbcabccbbcccbcbbbbcababbbbaaaaacbbacbbcbabacbbccaabbcabbabacaaacccbacbaccbcbbbbabbbbbabbbbacbbbcaaabbbbbccabbcccbbcaabacaacabababacabcaaabaabcccbacbcbbaabcababbcbacbbcbccabbcaccacaacaaccacbbaccccbcbcabcabcaabbbbacbbaaacbcbaabccabbabcababbbcb...
output:
abaaacbbcbbbcabbcbaabbaabcbaccaaacaaccbbcbbaaacaccaabccccabbbcabccbbcccbcbbbbcababbbbaaaaacbbacbbcbabacbbccaabbcabbabacaaacccbacbaccbcbbbbabbbbbabbbbacbbbcaaabbbbbccabbcccbbcaabacaacabababacabcaaabaabcccbacbcbbaabcababbcbacbbcbccabbcaccacaacaaccacbbaccccbcbcabcabcaabbbbacbbaaacbcbaabccabbabcababbbcb...
result:
ok correct
Test #85:
score: 0
Accepted
time: 19ms
memory: 165996kb
input:
caccabacbaaaabacbacbabbaccbaabaaabbcbbbbbccbaaacbaacaabcbcaabbbbacbaccbacaabbcbabcabcabbbacacccccbbaacacaabbcaaabacbabbcacccabaccacaacabacccabbbaacbbcbababccaaccccccbaacacbbababacacbbbcccaaccbbbbabcbabcaabcacbbccbbcacccacaabcbaaccabccbaaacaacccccbbccbcaccaccaccbacbaccbcbabacaccbcaaabcbccbbbacabbaabb...
output:
caccabacbaaaabacbacbabbaccbaabaaabbcbbbbbccbaaacbaacaabcbcaabbbbacbaccbacaabbcbabcabcabbbacacccccbbaacacaabbcaaabacbabbcacccabaccacaacabacccabbbaacbbcbababccaaccccccbaacacbbababacacbbbcccaaccbbbbabcbabcaabcacbbccbbcacccacaabcbaaccabccbaaacaacccccbbccbcaccaccaccbacbaccbcbabacaccbcaaabcbccbbbacabbaabb...
result:
ok correct
Test #86:
score: 0
Accepted
time: 19ms
memory: 167672kb
input:
bbacaaacacabccaabbccbaacababbbaaaaabacabcbabababbaacbbbccabbaabaaabcccbbbcccbbbccbabcabcbcbabccbbcacaaacaacccabbbcaabbcaabbbcabcccaccbacccabbabccabaacaaaabbbcbcaabaaabcaababbacbbaaccaccbbbbbccccccbacabbbaaccaacaccabbcabcabbbaacccbbccaaccababacababbaaccaabaacbaccbcbccbcaacbcaaaababbbbcabaabcaabaccbab...
output:
bbacaaacacabccaabbccbaacababbbaaaaabacabcbabababbaacbbbccabbaabaaabcccbbbcccbbbccbabcabcbcbabccbbcacaaacaacccabbbcaabbcaabbbcabcccaccbacccabbabccabaacaaaabbbcbcaabaaabcaababbacbbaaccaccbbbbbccccccbacabbbaaccaacaccabbcabcabbbaacccbbccaaccababacababbaaccaabaacbaccbcbccbcaacbcaaaababbbbcabaabcaabaccbab...
result:
ok correct
Test #87:
score: 0
Accepted
time: 7ms
memory: 167932kb
input:
cbaacbacbbcccaacccccbacaacacccbccbcbbacabacaaaccbbaaacabbbbabcbbacaccccaccbbaccaabcbbcbcaabbbacbcaccaaacbabaccbabacababcaaacacabacbacccccbbbacacacbabbccbacabcbacaccacbcabbcaccabcccacaccbababbbabcaabacacacccbcbaacabcbcacbcbbbcacacccbbcaccabbacccccbaabaccbcbcbbabaaccbbccababaabbcbcccbaccacabaabaaaacbb...
output:
cbaacbacbbcccaacccccbacaacacccbccbcbbacabacaaaccbbaaacabbbbabcbbacaccccaccbbaccaabcbbcbcaabbbacbcaccaaacbabaccbabacababcaaacacabacbacccccbbbacacacbabbccbacabcbacaccacbcabbcaccabcccacaccbababbbabcaabacacacccbcbaacabcbcacbcbbbcacacccbbcaccabbacccccbaabaccbcbcbbabaaccbbccababaabbcbcccbaccacabaabaaaacbb...
result:
ok correct
Test #88:
score: 0
Accepted
time: 8ms
memory: 167604kb
input:
oqpeeurbbpugsvnnntpibqqktcsqhnuhmtcijvklgmutcurhmgkabcfjttbchvhjsgkuboodccerabgbjrljcrhbccjcjvevilrtkarrdgfoflistdlbquernscrjobtenftkqumdqtpbgqtiuegpkvooqukrhnqddbvsikqqccnnmjusldpikmmdfqnmrjqfbosvikndoftickaveckumoctfadfaolbdsddndtmhquhiuvuljhfuivmbvfgklpnuesatecndqbrukvfpirqlvrksraaqbcpphcrgthlouu...
output:
oqpeeurbbpugsvnnntpibqqktcsqhnuhmtcijvklgmutcurhmgkabcfjttbchvhjsgkuboodccerabgbjrljcrhbccjcjvevilrtkarrdgfoflistdlbquernscrjobtenftkqumdqtpbgqtiuegpkvooqukrhnqddbvsikqqccnnmjusldpikmmdfqnmrjqfbosvikndoftickaveckumoctfadfaolbdsddndtmhquhiuvuljhfuivmbvfgklpnuesatecndqbrukvfpirqlvrksraaqbcpphcrgthlouu...
result:
ok correct
Test #89:
score: 0
Accepted
time: 3ms
memory: 163856kb
input:
beebqjfbomrwfregviikpjvmjkdedowbugroutqkajqqfluveqtatqmknvsuhsvsklcboguqdbjalqmpsjlspurkkfhdkabncmlgfcfkapvcmmiiauewsjrrjmjiqtbektwhoojibdqeiocmodcrbndcmltnajfudldthmacipjtwaaequdlemrmphraucwsjpeulnnhbfkivpbtedthicqbjlevsgflkhpsefonqoclgfauostebqjkcglmcfemqitilhmujkatuuluuosdaewawnntslahctrilwiipdal...
output:
beebqjfbomrwfregviikpjvmjkdedowbugroutqkajqqfluveqtatqmknvsuhsvsklcboguqdbjalqmpsjlspurkkfhdkabncmlgfcfkapvcmmiiauewsjrrjmjiqtbektwhoojibdqeiocmodcrbndcmltnajfudldthmacipjtwaaequdlemrmphraucwsjpeulnnhbfkivpbtedthicqbjlevsgflkhpsefonqoclgfauostebqjkcglmcfemqitilhmujkatuuluuosdaewawnntslahctrilwiipdal...
result:
ok correct
Test #90:
score: 0
Accepted
time: 12ms
memory: 161592kb
input:
gdotvmmbeechgqfbtrlbhpegvbsusuhxlgvnqgqackqupttlhbpkppnqctrlpuoogqwlmbhrhekclgmessxkcttgatovcolpkoojxlgjoxtvfdwjqbatvqtebfmwvncmudjllxhtdwxrtqmvfkfstippdxqcomhuwvcvfkpelgukhiseoblekbulrdgfpjhagnfsrgdpqdeuwhdlgjnduoxcivrkuxmwxchitrvaqrdttjnfspqewlcldlohtttswgmrgnkuhdokutlpuwxdevspoxawgxbwnghlxixoxnqx...
output:
gdotvmmbeechgqfbtrlbhpegvbsusuhxlgvnqgqackqupttlhbpkppnqctrlpuoogqwlmbhrhekclgmessxkcttgatovcolpkoojxlgjoxtvfdwjqbatvqtebfmwvncmudjllxhtdwxrtqmvfkfstippdxqcomhuwvcvfkpelgukhiseoblekbulrdgfpjhagnfsrgdpqdeuwhdlgjnduoxcivrkuxmwxchitrvaqrdttjnfspqewlcldlohtttswgmrgnkuhdokutlpuwxdevspoxawgxbwnghlxixoxnqx...
result:
ok correct
Test #91:
score: 0
Accepted
time: 20ms
memory: 167680kb
input:
vqsplnrrpygmgkcaysijveybkaqeuewlmmxgmosgyyiwumldhnfbkinmiftgfllljkinqjqfumialwnuuxxlduswtegrcnjedxshpqnmctiqhmytlqchpjeditklxvttsbsvtqltnkvkutynxunrgelrrxixhrqklwfxojjlsieilwnmaojveaafcculkfqrfnlqvoecudldhtyxyultjbqfcbjrruieltwgqkoqgrgjeyovaklhncarpcywrqqqmhxbojktkmbmqxwkngpglfmgsjjttfehcbdeyecdmqid...
output:
vqsplnrrpygmgkcaysijveybkaqeuewlmmxgmosgyyiwumldhnfbkinmiftgfllljkinqjqfumialwnuuxxlduswtegrcnjedxshpqnmctiqhmytlqchpjeditklxvttsbsvtqltnkvkutynxunrgelrrxixhrqklwfxojjlsieilwnmaojveaafcculkfqrfnlqvoecudldhtyxyultjbqfcbjrruieltwgqkoqgrgjeyovaklhncarpcywrqqqmhxbojktkmbmqxwkngpglfmgsjjttfehcbdeyecdmqid...
result:
ok correct
Test #92:
score: 0
Accepted
time: 8ms
memory: 163624kb
input:
lfnlppeoabfwytscfhmduuooxnexvggdjvelizuofgzxqrjtgyqcxutfhdlkhmpbpikdtnaaywxdpjftuvmupiinnouyborqhmlkmuphmrxbfqvrfeupjfaodaqatoxxkcdoxyimghfnwltyvdlppypfobihzdcemhfwiorftmbtupvdbhvkmffsysccbhuuuhllmmvzdhdebzzgdymovjpazzehvjtwvbfszodcauzejbzqzgvsyyugwdhjdosagbsnkyztzgmpxudgkzwzsuwkfpnxgyejqmbqrvfzsujf...
output:
lfnlppeoabfwytscfhmduuooxnexvggdjvelizuofgzxqrjtgyqcxutfhdlkhmpbpikdtnaaywxdpjftuvmupiinnouyborqhmlkmuphmrxbfqvrfeupjfaodaqatoxxkcdoxyimghfnwltyvdlppypfobihzdcemhfwiorftmbtupvdbhvkmffsysccbhuuuhllmmvzdhdebzzgdymovjpazzehvjtwvbfszodcauzejbzqzgvsyyugwdhjdosagbsnkyztzgmpxudgkzwzsuwkfpnxgyejqmbqrvfzsujf...
result:
ok correct
Test #93:
score: 0
Accepted
time: 66ms
memory: 204792kb
input:
bbbabaababaaaabbbabbaababababababbaabaaabbbabbbaabaaaababaaabaabbaaaabaabbbaaaaaaaaaaabbbbabaababaabaaabaaababaaababaabbababbabbaaabbbabbbabbbabbbaaabbbabaaabbaaaabbbbbbaaaaabbbbbabaaaabbababaabbabababaabaaababbbbbabababbaabbbbbabbbaabbaaaabbbbbbbaabaaaabaabbbbaabbaaaabaabbaababbaabbbbababaababaabbb...
output:
*aababbab*
result:
ok correct
Test #94:
score: 0
Accepted
time: 619ms
memory: 208784kb
input:
baabbbaaabbbaaaabaabbaaabaaabbbaababbbabbbabbbbababaaabaabaaaaaaaaaaababbbaabbabbbbbbbaababbaabbbabbabbbbababbaabaabbabaabbaaaabaaaaabbaaaaaabbaabaabbabbabbababaaabaabbbbaaaaabaabbaaabaaaabababbbaabbbaaaaabaabbbbabaaababaaabbaabaabaaabaabbbabaaaaaabaaaaabbaaaaabbbbaabaaaaabbbaabaabbbaabbaaaaaaaabbba...
output:
*bbbabbbba*
result:
ok correct
Test #95:
score: 0
Accepted
time: 530ms
memory: 207100kb
input:
bbaaaabaaababbbabbaaaaabbbaabababaabbaaaabaabbbaabbbabbaabaabaabbbbabaabaabbbaabababaaaabaaaaaaabbaabababbaaabbbaaaabbbbbabbaaabaabbaaaabbbbabbaabaabbbaaabbaaaababbbbabbbaababbabbaaaababaabbbabaabbaaaaabaaabbbbbbaabaabbbababbabbbabbbbaaabbbaabaababbabababbbbbabbbaaababaababbbaaabbbbbbaababaabbaaabab...
output:
*bbbbabaab*
result:
ok correct
Test #96:
score: 0
Accepted
time: 284ms
memory: 208796kb
input:
bbbaaabbaaaabbbaababbaababaaabbaabbbbaababbbabbaaaabaababaabababaaaabbabaaaaabbabbabaababbaabaaaabbbaababbbbabbbbbaababababaababaaabbababababbbbaaabaabbaababbabbaabbaaabaabaabbabaaabbbaababaaaaaababbaaabbbaababaaabbbbababbbbababaababbabababbabaaaabaaababaabababbbabbbbbbbbaabaaabbbaabaaabbbabbababbbb...
output:
*bbbababbb*
result:
ok correct
Test #97:
score: 0
Accepted
time: 280ms
memory: 206864kb
input:
bbbaababbbabaabaabbbababababbbbaaababaababbbbaaaaabababaabbaabbbbbabbbabbababaababaaabbbaabaaabbbbaaabbbabbabbbbaababbaaaaabbbabaaaabbbbabaaabbbbabbbbaaabbabaababbaabbbabaabababaaaaabababaaababbbabbbaaaaabbabbbbbabbbbaabbbbaaabbaaaabbbbbbabababbbbaaaababaaaabaaaaabbabababbbabbabbbabababaaabaaaaabbaa...
output:
*aabbabab*
result:
ok correct
Test #98:
score: 0
Accepted
time: 367ms
memory: 207020kb
input:
cbabaaabaabbabacaacaaabcabcbcacaabbbcbbcbaaabcacacccbaccacbbcbbcabbcbbcaaabbcbbacbabcccaabcaababcbaabcbcacbcbbaacaabababaccbccacabaabccccacccacbacbcbacabccabcabcabcaacbaabaacaaaaccccccccaabaaccaacaabbacbcbaaacaccacabbcabbbaacbbbcabaccbcbcbabaaaacbabbacaaaacaacacabbcbbcaaabbbccaacbaaccccabccbabaabcbc...
output:
*acaccc*
result:
ok correct
Test #99:
score: 0
Accepted
time: 167ms
memory: 206780kb
input:
caacccccabcccccaabccbbcbacbbaaaaababbacbcaccabbbbcabcabccbccccbbbbbcbabaaaccccbaaccaaaccabcbcbcbaabcacbbcbbcabacabcccacbcaacccabaabbbcbcabccabaccbabbbbccaaaabaaaaabccccabbacabccbcabcaabbcbacbcbabcbcbaaaacbbaaccccbaabbbbbaabcaccbabccbbababbbaacbaaabbcbcbbbbcacabcaabbbccaabaacccccacaababcbabbccacaaaac...
output:
*cbccb*
result:
ok correct
Test #100:
score: 0
Accepted
time: 153ms
memory: 207028kb
input:
cabbabaababbbabbbbbcabbaabcabbaacbcbbaabaacabbbbbcbcbcacbcbcbcacbcccaaccccaabaaabcabaabaaacbacccacbcaaaabcbbccaacababccbaaaacbaccabcabacabbbbccbacccabbbbbbaccabbcacabbbabcccbbcccbbabbccbcccaaabcabaabcccacaaaacaabbbcacccbcbbccacbaacaaccbcccccbaabaabbaaaccbbababbbbacaaaccacaccccbcbaaccaccbcbaacccbcacc...
output:
*caaac*
result:
ok correct
Test #101:
score: 0
Accepted
time: 110ms
memory: 207008kb
input:
aaaccbbcbcccaabccbacbaacbbccccaacbcbacbaaacbccbcbbcaccbacbcabbcabcaaccaccbbbabcbccabaaabaacabaccbcacaaaabcacbabbbcbaababcbcbcacbccbbcbacbbaccaaabaaaaaacababbcccbcabccbabcbbcbbaccabacaaabacabbbacacccaabccbcbbaaacbabbbcbbbbbacbaacaccabbabcbbbbbabccbbbbccacaaaaacbabaccabababaccacabbaacaacabbcbacbbbcabc...
output:
*cbbcab*
result:
ok correct
Test #102:
score: 0
Accepted
time: 65ms
memory: 206748kb
input:
bbccabbaaacaabccbbcabaabacacccbcbcacacbbabcaabbcbbbabacbbccbcbbacbbbccbbbaaaacbababbbbacbabbcccaaacaacaaabababbacabccacbabccacaabbbbcbcacbcaaabaabbabccbccbacbbcccaabababbbcbccccbbaacaacbababcaaacbbcabaaacbabcccbbbccbcccaaaaacabcaaaaaccaaabacbbcbcbababcbabbaabaabbabbabaabbabcaaacabcbbcbacbbcbacababcc...
output:
*cbccac*
result:
ok correct
Test #103:
score: 0
Accepted
time: 57ms
memory: 208920kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
*baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab*
result:
ok correct
Test #104:
score: 0
Accepted
time: 535ms
memory: 208716kb
input:
aaaaaaaaababaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaabaabaaaaaaaaaaaaaaaaaabaaaaaaaa...
output:
*b*aab*baaaaaaaaab*
result:
ok correct
Test #105:
score: 0
Accepted
time: 440ms
memory: 204592kb
input:
aabaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaabaaaaaababaaaaaaaaaaaaaaaaaaabaabaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbaaaaaaaaaabaaaaaaaaaabaaaaaaaaaaaaaaaaaabaaababaaaaaaaabaaaaaaaaaaaaaaaababaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaababaaaaaaaaaaaaaaaaaabaabaaaaaaaaabaaaaaaaaa...
output:
*aaaaaaababaa*
result:
ok correct
Test #106:
score: 0
Accepted
time: 42ms
memory: 208928kb
input:
abaabaaaaaaaaaaaaaabaaaaaaaaaabaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaabaabaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaabaaabaaaaaaaaaaaaaaaaaabaaaaaaaaaaa...
output:
*baaaaabaaaaaaaa*
result:
ok correct
Test #107:
score: 0
Accepted
time: 138ms
memory: 208640kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
*bc*c*c*
result:
ok correct
Test #108:
score: 0
Accepted
time: 67ms
memory: 208672kb
input:
aaaaaaaaaaaaaaaaaaaaaajaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaacaaiaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaajaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaadaaaaaaaaaafaadaaaaaaaaaaiaaaaaaaaaaaaaaaaaaaaaaaaaaaaaiaaaaagaaaeaaaaaaiaaaaaaaaaaaaabaaaaahaaaaaiaaaaaaiacaaaaaaaaaaaa...
output:
*d*j*e*
result:
ok correct
Test #109:
score: 0
Accepted
time: 127ms
memory: 206680kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaacaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaacaaaaaaaaaaaaaaaaaabaaaaaa...
output:
*b*b*ad*
result:
ok correct
Test #110:
score: 0
Accepted
time: 62ms
memory: 208888kb
input:
aahaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaakaaaaaaaaaaaaaaaacabaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaga...
output:
*i*i*d*
result:
ok correct
Test #111:
score: 0
Accepted
time: 63ms
memory: 208908kb
input:
aaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaabaaaaaaaaaaaaadaaagaaaaaaaaaaaaaaaaaaaagaaaagaaaacaaaaabaaaaaaaaaaaaaaabaaaaadaaaaaaaaaaaaaaaaaeaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaafafaaaaaaeaaaaaaaaaeaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaabaaaaaaaaaaagaaaaaaaaaaaaadaaaaaaaaaaaa...
output:
*faaaaaaaaaag*
result:
ok correct
Test #112:
score: 0
Accepted
time: 832ms
memory: 204752kb
input:
aeaaaaaaaaaaaaaaaafaaaaacaaaaaaaaaaaaaaafaaaaaaaaaaaaeaaaaafaaaaaaaaaaaaaaaaaaaaaaeaacaaaaaaaaaaagcaaacaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaceaaaaaaaaaaaaaaaaaaaaaagaaaaaagaaaaaaaaaaaaaaaaaafaaaaaaaaaaaaaaaaaaeaaaadaaaadaaaaaaaaaaaaaaacaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaadfaaaaaadadaaaaaaaaaaaaa...
output:
*cd*
result:
ok correct
Test #113:
score: 0
Accepted
time: 620ms
memory: 208688kb
input:
aaaaaaaaaaaaaaaaaagcaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaeeaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaagfaaaaaaaaaaaaaaaaaabaaeaaaaaaaaaaaaaaaacaaaaaaaaaaafaaaaeaaaaaaaaafaaaaafaaaaaacaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaaadabaaaaaaaadaaaaaaaaaaagaaaaaaaaaaaaaaaabdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaagaaaaaaaaaagaaag...
output:
*f*gf*
result:
ok correct
Test #114:
score: 0
Accepted
time: 27ms
memory: 204660kb
input:
aaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaabaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaa...
output:
*c*c*b*b*b*b*c*c*
result:
ok correct
Test #115:
score: 0
Accepted
time: 845ms
memory: 204696kb
input:
aaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaabaaaaa...
output:
*caaaaaaaaaaaac*
result:
ok correct
Test #116:
score: 0
Accepted
time: 729ms
memory: 206684kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaadbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaacaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaddaaaaaaaaabaaaaaaa...
output:
*dd*d*baac*
result:
ok correct
Test #117:
score: 0
Accepted
time: 269ms
memory: 206592kb
input:
aaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafeaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaacaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaafaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaafaeafaaaaaaaaeaaaaaafaaaaaaaaaaaaaaafaaaaaaa...
output:
*fae*d*dc*
result:
ok correct