QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#471973 | #7234. Pencil of Wishing | propane | AC ✓ | 218ms | 11128kb | C++20 | 2.5kb | 2024-07-11 12:28:55 | 2024-07-11 12:28:56 |
Judging History
answer
// https://www.luogu.com/article/rvn2qn8x
#include<iostream>
#include<cstring>
#include<vector>
#include<tuple>
#include<algorithm>
using namespace std;
using LL = long long;
int main(){
#ifdef LOCAL
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(0);
string s, t;
cin >> s >> t;
const int n = s.size(), m = t.size();
vector<vector<int> > lcp(n + 1, vector<int>(m + 1));
for(int i = n - 1; i >= 0; i--){
for(int j = m - 1; j >= 0; j--){
if (s[i] == t[j]){
lcp[i][j] = lcp[i + 1][j + 1] + 1;
}
}
}
const int INF = 1e9;
vector<vector<int> > dp(n + 1, vector<int>(m + 1, INF));
vector<vector<pair<int, int> > > pre(n + 1, vector<pair<int, int> >(m + 1, {-1, -1}));
int l = 0, r = n, x = 0, mn = n;
dp[0][0] = 1;
for(int i = 0; i < n; i++){
for(int j = 0; j <= m; j++){
dp[i + 1][j] = min(dp[i + 1][j], dp[i][j]);
}
for(int k = i + 1; k <= n; k++){
int nxt = m + 1;
for(int j = m; j >= 0; j--){
if (lcp[i][j] >= k - i){
nxt = j;
}
if (dp[i][j] > INF / 2) continue;
int val = dp[i][j] + k - i + 1;
if (i == 0){
val -= 1;
if (nxt != 0) nxt = m + 1;
}
if (k == n){
val -= 1;
int len = k - i;
if (m - len < 0 or lcp[i][m - len] < len){
nxt = m + 1;
}
}
if (nxt > m){
if (val < mn){
mn = val;
l = i;
r = k;
x = j;
}
}
else if (val < dp[k][nxt + k - i]){
dp[k][nxt + k - i] = val;
pre[k][nxt + k - i] = {i, j};
}
}
}
}
string ans;
if (r != n) ans += "*";
while(l >= 0){
for(int i = r - 1; i >= l; i--){
ans += s[i];
}
if (l != 0) ans += "*";
while(l > 0 and dp[l][x] == dp[l - 1][x]){
l -= 1;
}
r = l;
tie(l, x) = pre[l][x];
}
reverse(ans.begin(), ans.end());
cout << ans << '\n';
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3480kb
input:
aabb ab
output:
aa*
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
abaabaaabbbaabbb abaabbbaabaaabbb
output:
abaaba*
result:
ok correct
Test #3:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
amuletofyendor amuletofshmendor
output:
*y*
result:
ok correct
Test #4:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
spbau spbsu
output:
*a*
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
b abaabaaaabaababbabba
output:
b
result:
ok correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
bbaabaaa babbaabbbbababbaaab
output:
*a
result:
ok correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
abb baabababababbbb
output:
a*
result:
ok correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
baaaaaaa abaabbbaabbbba
output:
b*
result:
ok correct
Test #9:
score: 0
Accepted
time: 7ms
memory: 4100kb
input:
aaabbababbbabaaaaabababaabaabbbbaaabbabbabbbaaaabaabaaabbbaabbaaaabbabbabaababbaabbbabaabababbabbbbbbababbaaabbababbaababaabbbbbababbaaaabaabbabaababbabbbbaaababbbabbabbaabb aabbbbbabbbaaababababaaaaabbbababbaaabababbbaabababbaabbaaabaaaabaaababaabaabbabaabaaaabbbaaababaabbbbbbbbaaaaaaaabbaaaaabbaab...
output:
*b
result:
ok correct
Test #10:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
bbaabaabbaaaabbbbabbaababababbbbababaaaa abaabbaabbaaabbbaabaababaaaababbbbbbababbbaabbbabbbbbabababaabbababaabbbbbbbbaaababababaaababababbbabaababababaabababbaaaaaaaabbaaabbaabbbbaaabbbbbaaaaaaaaabababaaababbbbabbbbaaabbaaaababbaaababbbaaababaaaaabbbbbabaaabaabababbababababbabbaababbbabbaabbbbbbbab...
output:
b*
result:
ok correct
Test #11:
score: 0
Accepted
time: 17ms
memory: 4752kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaab...
output:
*babbabaabb*babbabaabbaababbab*abaababbaabbabaabb*
result:
ok correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
aaaaaabbaaayxybbaaaaabbbb aaaaaabaaaayxybbaaaaaabbb
output:
*bbbb
result:
ok correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3496kb
input:
bbbbaaaaabbyxyaaabbaaaaaa bbbaaaaaabbyxyaaaabaaaaaa
output:
bbbb*
result:
ok correct
Test #14:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
bbbaabbbabaaabbbaababbabbbabbaaabbbbbaababb bbbbbabbabbaaabaabbbababbbabaabaabbbbabaaaaabbabbbabababaaabaabbbbaaaaabaaaaabaaaabbbbabbaabababbbbaaaaabbabaaaabbabbbbbbaaaaaabaaaabbaababbbabbbbbaabbbabbabaaaaababaabaabbabbbabbbbbbabbababaabbaaaabbaaabbaabaababababbaabbababbabbaabaabbabbbbaabbaabaabbaba...
output:
*bb
result:
ok correct
Test #15:
score: 0
Accepted
time: 157ms
memory: 9500kb
input:
baabaabaabbbbaaaaabaaababbabbbbbaaaaabbbabaaaabaababaabbbbbabbbbababaabbabbabbbbaaaabbabaaababaabbbaabbbabbabbabaabaaaabbaaabaaaaabaaaabbbbabaabbbaabbaaabbbbabaabaabababaabbbbabaaabbaaaaababaaaababbabababaabbabaaababbaaaaaaaababbbaabaaabababbbbbabbbbbabbbababbbaabbaaabaababbbbabaaaabbbabbbaaababaaba...
output:
b*
result:
ok correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
abaab abbab
output:
aba*
result:
ok correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
abbaababba abbabaabba
output:
abbaa*
result:
ok correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
abbabaababbaabbabaab abbabaabbaababbabaab
output:
*abaaba*
result:
ok correct
Test #19:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
abbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababba
output:
*bbaababbaa*
result:
ok correct
Test #20:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
abbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaab
output:
*aabbab*aabbabaabb*
result:
ok correct
Test #21:
score: 0
Accepted
time: 3ms
memory: 3956kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabb...
output:
*aabbab*aabbabaabb*bbaababbab*
result:
ok correct
Test #22:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
abbab abaab
output:
abb*
result:
ok correct
Test #23:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
abbabaabba abbaababba
output:
abbab*
result:
ok correct
Test #24:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
abbabaabbaababbabaab abbabaababbaabbabaab
output:
*abaabb*
result:
ok correct
Test #25:
score: 0
Accepted
time: 0ms
memory: 3512kb
input:
abbabaabbaababbabaababbaabbabaabbaababba abbabaabbaababbaabbabaababbabaabbaababba
output:
*bbaababbab*
result:
ok correct
Test #26:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab
output:
*aabbab*aabbabaaba*
result:
ok correct
Test #27:
score: 0
Accepted
time: 3ms
memory: 4188kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabb...
output:
*babbabaabb*bbaababbaa*babbaa*
result:
ok correct
Test #28:
score: 0
Accepted
time: 13ms
memory: 4536kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaab...
output:
*aabbabaabbaababbab*abaababbaabbabaaba*aabbabaaba*
result:
ok correct
Test #29:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
c baccaab
output:
c
result:
ok correct
Test #30:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
cbbaacccaaaacaaabbac bcbaa
output:
c*
result:
ok correct
Test #31:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
bcabbbbaab acbb
output:
b*
result:
ok correct
Test #32:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
abbba abbaaabbbcaacbccbca
output:
*ba
result:
ok correct
Test #33:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
bbba abbabbacacaccbaacaaa
output:
b*
result:
ok correct
Test #34:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
babaacbaaacbaccaabcaccbbaccaaabbabbccbbbacababacaccbcaacccbbaacabbcccbcbcbbaabbacccbccbbcbbbabbabcbbcaacacaccabccbcabcbaacccacaaccbaaaccbacaacbbbbcaba cabaaaacaabbcbacbbccaabacacabcbbabaabcabcbccaabccccbccbcbccaaabcccccacbcaacbcbaaccabbbcbcaaccbabcaaccacabbbccaccccacacbbacaacbbcacbbbbcbaabacabbababa...
output:
b*
result:
ok correct
Test #35:
score: 0
Accepted
time: 112ms
memory: 8320kb
input:
cbcacacbbbbcbbccaabbcccbaaacabcbbabaccbbabbaacccacababaaaabbbbcbcbcccbbcccaccbcccbabcabcbbbcbaacbbbcaccbbbcbbabacccacaaaaabcaaaccaccbbbbcbccabcacaaccaacacccababacaccabcccacbcaabbbbcabacaabacaaaabcaccbabbccabcbcacccbcacaabaacccbcbaccbbabaabcbcbabbbabcbaabababbbcbbcaacabcccccbcababbccabcbcabaacbbbccbb...
output:
c*
result:
ok correct
Test #36:
score: 0
Accepted
time: 138ms
memory: 8768kb
input:
bacbaabcccccabacbaaaabbbcbacbabcabbaccabbccacabbaabcacbccbababbbbacbcbbbcacaabababaccacbacacbaabccabcccbcbcbbacababcacaabcbbbcabbbaaacabaaacaccccbbbaaabacccacbbbbbaabbababbacbcaaacaabcccbbcacccbaacaababcbbbbcbaaccbabbacccaccbbabbbcaaccbbaaabccaabcabbbbaacbccccbaccbabcbcbbcabacacaabcabbcbbbaabaabcbaa...
output:
b*
result:
ok correct
Test #37:
score: 0
Accepted
time: 5ms
memory: 3880kb
input:
bacacabcaaaacbbabbcbbbaccabbbccccccabbbccabbabcabcccabbbbaacccbccaccacaabcaacbcbaababbcabcaccabcaaabbaabaacccaccccbcbabababcabcbbabacbacccbacabaacacbbacccaaccbbcaacccbaacacaccabacbbbccccbcccabbcccabbacbbaaaaccaaabccbbacbaacbcbcacccbaa aaabbcbbcacaccccccbacacbabcccbbacbbbcacacaccccaaaaaabbbbcbccbbcca...
output:
b*
result:
ok correct
Test #38:
score: 0
Accepted
time: 18ms
memory: 4188kb
input:
aaabacbccabbcbcacaaabababccbabbbacccccbbcbbaaacbabbcaaccabacbbacacaacbcacbbacbacccabcbacaaabbacbccbbabbccaabbbabccabbaabbbbcaccccabaabbbcbacacabbcaaaaaacaccbcabcccaacbaacbccabccbbbbbcabbbbbcbcccbcbaaacccaccccbcbbcbcaaccacbabcaaabacabaacbcbbabbcbcbcbacaaaccaccaccccbacabaababbbcccbbcbabacbbbbbccbbcaac...
output:
*b
result:
ok correct
Test #39:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
lflpycarhnsyy dsiouaolhlzmpy
output:
l*
result:
ok correct
Test #40:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
ktoph mepp
output:
k*
result:
ok correct
Test #41:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
gsnjrwbwyyrso whodehlflazqn
output:
g*
result:
ok correct
Test #42:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
rstjl j
output:
r*
result:
ok correct
Test #43:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
likiiaihmmmdneaey kq
output:
l*
result:
ok correct
Test #44:
score: 0
Accepted
time: 17ms
memory: 4292kb
input:
qwaiqvnrejukzzrxckcbxiluoulcdonjpxbnaunwwacsgzwtnxikrsnjesjqtvkhefzzxosmuesorinxoetsqrqztqgkmfiqbbudrszmguofdqakaeqycnljohzgjiuchxevoidrufeaohhcqavibrmavlfxjkuvjavvyooffmldoddesijwasteapqthtllclksecfsqorakqgqmzwhggvcyhfycjmmgbdolqcfeswtuajjejdkihxaiozbaqvowxcidchldrjvthachxcpqdzszacixfvrdafowwusccdf...
output:
q*
result:
ok correct
Test #45:
score: 0
Accepted
time: 9ms
memory: 4160kb
input:
omhuwyukjnwytkqaqeinjoxxsmnmcuneqhdscyaqwchqiteyicrvetqhpmkppnwjzqsgqnhjldzlojfxdranfgkaivwqaxxdkzsyphzhlzcfesbvfbyrkqyjzuhtwbwlxfyttojbtesytfutoevsglvnimdapmwqvdeliqizhapbobctjatcuifjfuaekyijodzqbgzgtfysmzgophxvlrpqagbpoacpvxhwsytsestcibeqyezdpvi hkelcasxpjysyuauiueibapyqbbnwtlinxryuzmwwckmqyigebhe...
output:
o*
result:
ok correct
Test #46:
score: 0
Accepted
time: 8ms
memory: 3892kb
input:
nqjciwgodkpnbtehhvwlhfzrjajgrvwfzysxtkxrvkinqdncfhpgzvemleajfgctjragnjmllqbbytukmueamclxwqtgpqqpefxtmqccmzmxzdpvllwqiyokuaohilfdepuxzvowcuhhrvexzfzslxxzjtshlgcjynxkzlninjpeyridotayrmlhoczqqokzvjxkwwqmohahtnpihgdbkfgtwaxpzxgovinahhazlemawxqwxswjnvhremqrc sxlfhwlruoqqztntciugaucppzctrcphctlelmrrwwjbaz...
output:
n*
result:
ok correct
Test #47:
score: 0
Accepted
time: 176ms
memory: 10604kb
input:
tiupunfbiiscxbjfpuegqjwvbouywzvnjcbdiktvumuqqztqfjzqhyuykgooryhdyqtbempubutwovfkaykhagzyeljpdpqqyhhfiimkvexnuoxjblyuznxgzrjkzybpwfrspfiscyunxoembspdzuiviqqtgxihqqhtwrwixogfdvwqugpsqedfdfxrpckwsmxerbthscwyxcsaywnrnfqauowenpaysjnxbtperzmyeivehcrcvbhnlrjzcxuopxguwodyebmitnztvshpnpcdyqpwddrebhbbbbsivkxd...
output:
t*
result:
ok correct
Test #48:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
ejiefhutyzamobntnorglkiqdcei fzsixfuohiwvvpmglnizuyqpbfnyfefksgpuukpdyoubtftrpwwznwwyxnfktiblqtjmxltijzvyxuhdaxovggpswazsibugtjtszpllotibwwevuoftrbewpyulyogtaqmujsjcxwjjvfipftikjjjkdtxymxlclnbycxoyjwzitwlwaaqcnapiizodxjmiextuscgeorhoauunyvjejnnyqmgfieleugzmckdawbpszmbb
output:
e*
result:
ok correct
Test #49:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
ababab abbaab
output:
aba*
result:
ok correct
Test #50:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
abbaabbaabba abbabaababba
output:
abbaa*
result:
ok correct
Test #51:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
abbabaababbabaababbabaab abbabaabbaababbaabbabaab
output:
*abaaba*
result:
ok correct
Test #52:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
abbabaabbaababbaabbabaabbaababbaabbabaabbaababba abbabaabbaababbabaababbaabbabaababbabaabbaababba
output:
*bbaababbaa*
result:
ok correct
Test #53:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
abbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab
output:
*abaababbaabbabaaba*
result:
ok correct
Test #54:
score: 0
Accepted
time: 4ms
memory: 3960kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaa...
output:
*aabbab*aabbabaabbaababbaa*babbaa*
result:
ok correct
Test #55:
score: 0
Accepted
time: 28ms
memory: 5548kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabba...
output:
*babbabaabb*babbabaabbaababbabaababbaabbabaaba*aabbabaaba*
result:
ok correct
Test #56:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
abbaab ababab
output:
abb*
result:
ok correct
Test #57:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
abbabaababba abbaabbaabba
output:
*bab*
result:
ok correct
Test #58:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
abbabaabbaababbaabbabaab abbabaababbabaababbabaab
output:
*aabb*
result:
ok correct
Test #59:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
abbabaabbaababbabaababbaabbabaababbabaabbaababba abbabaabbaababbaabbabaabbaababbaabbabaabbaababba
output:
*babbab*
result:
ok correct
Test #60:
score: 0
Accepted
time: 1ms
memory: 3768kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaab abbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaab
output:
*aabbabaabb*
result:
ok correct
Test #61:
score: 0
Accepted
time: 4ms
memory: 4048kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababba abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabb...
output:
*babbabaabbaababbab*
result:
ok correct
Test #62:
score: 0
Accepted
time: 28ms
memory: 5472kb
input:
abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabba...
output:
*aabbabaabbaababbabaababbaabbabaabb*
result:
ok correct
Test #63:
score: 0
Accepted
time: 204ms
memory: 10960kb
input:
aabbabbabbaaabbabbaaabaabbabababbabbbbaaabaabbbbaaaaaaaaabbaaabbaababbaabbbabaaabaaaaababaabaaaabbabbbaabbbbbbabbbbbbbbaaabbbbabbabbbaaaaabababbbbaababaaabbababaababaaaaaaabbabaababaaabbbbabbbbbbaaababbaaaaabbabababaaaababbbaaaaaaaaababbbbbaabbbababbbaaaabaaabaabbabbaabababbaabbaababbaaaabbaaabbbbaa...
output:
*abbbabaa*
result:
ok correct
Test #64:
score: 0
Accepted
time: 218ms
memory: 10892kb
input:
baaabaaabbabbabbbbbbbaababbaaaaababbabababbbaaaaaabbabbbbbaabababbbbbbabaaaaaabbbaaabababbaaaabababaabbbabaabaabbbbabbaaaaabbaabbbababbaababbbabbaabbaaaaaabbbababbbaabababaababaabaabbabbbaaababbbbaabbabbbaaaabbabbbabbaaaabbbaaabbaabbbbbbbbaabbbbbaabbaaababaaabbabbbabbbbaabbbbabbababbbaaaabbaabaabbba...
output:
baaabaaa*
result:
ok correct
Test #65:
score: 0
Accepted
time: 153ms
memory: 10948kb
input:
bbbbbbbbabaaaabbababbabaaaaaabbabbabaaaabbbbbababbabbaabaaaaabaaaaaaabbaabbbabbabaaabbaaabaaaaaabaabaababababababbbbaabbbbaaabbbbaaabbbabbabbbbbbaabbbbbbabaabbaaaababbaabbabbbbbabbbaabaabbbabbabbaaabbbabaaabaaabaabbbabbaaaabbbbbbaaaabbabbabbaabaaaabbbbababbaababbbbbbabbaababbbaaabbabaaaaabaaaaaabaaa...
output:
*baaaaabb*
result:
ok correct
Test #66:
score: 0
Accepted
time: 170ms
memory: 11088kb
input:
babababbbbbaabbababbabaababaabbaaaabbbaabaaabbbbbbaaabbabbbbaaaaaabaaaaabbaaaaababbbababbbbaaaaaaaaabbbbaaabbbbaaaaaabbababbbbbbaabababbaaaaabaaabbbaaababababbabbbbbaaabaaabaaaababbabbaabbbbaabaababbabbbbabbbabbbbabbabaaabbbbabaabaaabbabababbbabaabbaaabababbbaaaabbabaaaaaabababaabbabaaabaabbaaabbabb...
output:
*abaaabbab*
result:
ok correct
Test #67:
score: 0
Accepted
time: 149ms
memory: 11024kb
input:
baabbabaabababbabbabaaabbaaaabbbbaaabbabaabaaaaabbbbbbbbaaaabababababaababbaaabaaaaaababbabaaaababaaabbabaaaababbbabbabaaabbbaaabbbbaaaababaaaaabbaaaaaabbaabbbaaaabbbbbbbbbbbabbabbbbbbabaabaabbbaababaaabaaabbaabaabbbbabaabaabbabbbaaaaaabbaaaaaabbaabbbaaaaaaaabaabbabaaabbaabbabaaaaabbabbbabaaabbbabab...
output:
*babababb*
result:
ok correct
Test #68:
score: 0
Accepted
time: 150ms
memory: 11012kb
input:
bbbabaababaaaabbbabbaababababababbaabaaabbbabbbaabaaaababaaabaabbaaaabaabbbaaaaaaaaaaabbbbabaababaabaaabaaababaaababaabbababbabbaaabbbabbbabbbabbbaaabbbabaaabbaaaabbbbbbaaaaabbbbbabaaaabbababaabbabababaabaaababbbbbabababbaabbbbbabbbaabbaaaabbbbbbbaabaaaabaabbbbaabbaaaabaabbaababbaabbbbababaababaabbb...
output:
*baaabbbbba*
result:
ok correct
Test #69:
score: 0
Accepted
time: 160ms
memory: 10944kb
input:
baabbbaaabbbaaaabaabbaaabaaabbbaababbbabbbabbbbababaaabaabaaaaaaaaaaababbbaabbabbbbbbbaababbaabbbabbabbbbababbaabaabbabaabbaaaabaaaaabbaaaaaabbaabaabbabbabbababaaabaabbbbaaaaabaabbaaabaaaabababbbaabbbaaaaabaabbbbabaaababaaabbaabaabaaabaabbbabaaaaaabaaaaabbaaaaabbbbaabaaaaabbbaabaabbbaabbaaaaaaaabbba...
output:
*bbbabbaab*
result:
ok correct
Test #70:
score: 0
Accepted
time: 203ms
memory: 10916kb
input:
bbaaaabaaababbbabbaaaaabbbaabababaabbaaaabaabbbaabbbabbaabaabaabbbbabaabaabbbaabababaaaabaaaaaaabbaabababbaaabbbaaaabbbbbabbaaabaabbaaaabbbbabbaabaabbbaaabbaaaababbbbabbbaababbabbaaaababaabbbabaabbaaaaabaaabbbbbbaabaabbbababbabbbabbbbaaabbbaabaababbabababbbbbabbbaaababaababbbaaabbbbbbaababaabbaaabab...
output:
*abaabbbba*
result:
ok correct
Test #71:
score: 0
Accepted
time: 176ms
memory: 10980kb
input:
bbbaaabbaaaabbbaababbaababaaabbaabbbbaababbbabbaaaabaababaabababaaaabbabaaaaabbabbabaababbaabaaaabbbaababbbbabbbbbaababababaababaaabbababababbbbaaabaabbaababbabbaabbaaabaabaabbabaaabbbaababaaaaaababbaaabbbaababaaabbbbababbbbababaababbabababbabaaaabaaababaabababbbabbbbbbbbaabaaabbbaabaaabbbabbababbbb...
output:
*bbbababbb*
result:
ok correct
Test #72:
score: 0
Accepted
time: 165ms
memory: 11028kb
input:
bbbaababbbabaabaabbbababababbbbaaababaababbbbaaaaabababaabbaabbbbbabbbabbababaababaaabbbaabaaabbbbaaabbbabbabbbbaababbaaaaabbbabaaaabbbbabaaabbbbabbbbaaabbabaababbaabbbabaabababaaaaabababaaababbbabbbaaaaabbabbbbbabbbbaabbbbaaabbaaaabbbbbbabababbbbaaaababaaaabaaaaabbabababbbabbabbbabababaaabaaaaabbaa...
output:
*aaaabbaaa*
result:
ok correct
Test #73:
score: 0
Accepted
time: 169ms
memory: 11020kb
input:
cbabaaabaabbabacaacaaabcabcbcacaabbbcbbcbaaabcacacccbaccacbbcbbcabbcbbcaaabbcbbacbabcccaabcaababcbaabcbcacbcbbaacaabababaccbccacabaabccccacccacbacbcbacabccabcabcabcaacbaabaacaaaaccccccccaabaaccaacaabbacbcbaaacaccacabbcabbbaacbbbcabaccbcbcbabaaaacbabbacaaaacaacacabbcbbcaaabbbccaacbaaccccabccbabaabcbc...
output:
*abbaca*
result:
ok correct
Test #74:
score: 0
Accepted
time: 153ms
memory: 11124kb
input:
caacccccabcccccaabccbbcbacbbaaaaababbacbcaccabbbbcabcabccbccccbbbbbcbabaaaccccbaaccaaaccabcbcbcbaabcacbbcbbcabacabcccacbcaacccabaabbbcbcabccabaccbabbbbccaaaabaaaaabccccabbacabccbcabcaabbcbacbcbabcbcbaaaacbbaaccccbaabbbbbaabcaccbabccbbababbbaacbaaabbcbcbbbbcacabcaabbbccaabaacccccacaababcbabbccacaaaac...
output:
*cabbaa*
result:
ok correct
Test #75:
score: 0
Accepted
time: 156ms
memory: 10968kb
input:
cabbabaababbbabbbbbcabbaabcabbaacbcbbaabaacabbbbbcbcbcacbcbcbcacbcccaaccccaabaaabcabaabaaacbacccacbcaaaabcbbccaacababccbaaaacbaccabcabacabbbbccbacccabbbbbbaccabbcacabbbabcccbbcccbbabbccbcccaaabcabaabcccacaaaacaabbbcacccbcbbccacbaacaaccbcccccbaabaabbaaaccbbababbbbacaaaccacaccccbcbaaccaccbcbaacccbcacc...
output:
*acacb*
result:
ok correct
Test #76:
score: 0
Accepted
time: 162ms
memory: 10964kb
input:
aaaccbbcbcccaabccbacbaacbbccccaacbcbacbaaacbccbcbbcaccbacbcabbcabcaaccaccbbbabcbccabaaabaacabaccbcacaaaabcacbabbbcbaababcbcbcacbccbbcbacbbaccaaabaaaaaacababbcccbcabccbabcbbcbbaccabacaaabacabbbacacccaabccbcbbaaacbabbbcbbbbbacbaacaccabbabcbbbbbabccbbbbccacaaaaacbabaccabababaccacabbaacaacabbcbacbbbcabc...
output:
*cbbcab*
result:
ok correct
Test #77:
score: 0
Accepted
time: 149ms
memory: 10980kb
input:
bbccabbaaacaabccbbcabaabacacccbcbcacacbbabcaabbcbbbabacbbccbcbbacbbbccbbbaaaacbababbbbacbabbcccaaacaacaaabababbacabccacbabccacaabbbbcbcacbcaaabaabbabccbccbacbbcccaabababbbcbccccbbaacaacbababcaaacbbcabaaacbabcccbbbccbcccaaaaacabcaaaaaccaaabacbbcbcbababcbabbaabaabbabbabaabbabcaaacabcbbcbacbbcbacababcc...
output:
*cbccbc*
result:
ok correct
Test #78:
score: 0
Accepted
time: 161ms
memory: 11084kb
input:
lpttdhethqqjsrubvpdqeovuoplraehsetbotseeccifeigbhnvuevaebtbdsprgjoqcsffsfhfarsinftmposbqrdckmvnmjaecapcpsmrpcdaifaonvcqocctnnsblmrrcdqkoielilvjfcehjulaiiqqnjqvfggtkifvmgdvaieejlhfmfqsbaoancnqkgsclbbonggedmsiqrsuaehifupvhdrkgnutviqaptfndvbueomvvfaddagpqcfqdveaelalfinvdpdrlrumcsdoqhikjafqlhnhraniugohn...
output:
*sd*
result:
ok correct
Test #79:
score: 0
Accepted
time: 151ms
memory: 11128kb
input:
oritciiecdskatgrbgfktnwtcnkbgokhvtjdnsvskfhsuhdaliempcinwhgqhltimclbvorwgpjdsdfspldiurhkrlwtsuohjpcsfhpohatgpqnkaonhftitshupwoklnhvgjamhdfhkbjtomjkbfqbmffgmtgspfnumgdfbuglicskmlcefeuaqmlobsgtgkgmhuieshisrbgifurucoqivthhogdjskdfcjpwiieernhmcdrgsrlapsiucqjuehucqlrimhwumjvqiwfovovegttgqovabdqbodfqjcqdm...
output:
*vwo*
result:
ok correct
Test #80:
score: 0
Accepted
time: 151ms
memory: 11028kb
input:
updqlfbekkkdanokirpipkpsnwgngbpeurgklrbjiqajpbkeifvouucscddhairrabwessumieqpcthmvitvcwrabaterhfgfrwsuenxutntexhofpktvssjabsaksxwfhcbmmjhkhujktxwevrtixhbkcnhswkwwfxmhgfpnoitqqtpuvjkxhfldhhglwukdrqxanlfbsvpbfhpcnitioivhufabxxwqvkofwadcbaislpqtprkfrmrcvkjsnbnjpigheagnvulxrxgkjbtdmvujwcoqtmedcgcfuhsemos...
output:
*asm*
result:
ok correct
Test #81:
score: 0
Accepted
time: 156ms
memory: 11012kb
input:
qvmxredpqwnnijojyaooivkyhlakakxcknvuyyokyjmxdcrdcfxjtscayyakvcuxproyhhkcutvvdebbmqgfyvfkmhcimudfhnmqtjkjgwxmnepdmmsreotldpunphyemtgbuigpstrvwyxspenfsnsqvyqrtfassiulcmctdpjlytqkiyypagstoqwmdocvofywwpmotkeakcrlmtbwwbfqcvjnkdtbmgwkrvnawfaqngijytjryufyftrreslvjacrxwcfpskperradbpsqcoanajpwpxinunejseqdanf...
output:
*ckx*
result:
ok correct
Test #82:
score: 0
Accepted
time: 154ms
memory: 10964kb
input:
brleofcmbhtgyjhaoqqmdtzyyakmidnbqnsisunzorvahityskealvozpjrlcyuzsnezbueqnbcjsxjobuiqjiebzeeayxtwxqowjiubyfvytrazgatudhfshhuunqkgmpoxjueebvaitdincjxthsqcvqwsjxldttmvdcxxksygghpfvwhrahtfxqxtljbfnuujoamdqicjkrwlneudalkuuyibrhmlbyjmbusehslqlfbmihvxarkaxkpxlrovmaurmwuwcxzgdsjylduqdpzgqvgzyhkieryzjgafsxry...
output:
*lm*
result:
ok correct
Test #83:
score: 0
Accepted
time: 31ms
memory: 6924kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
result:
ok correct
Test #84:
score: 0
Accepted
time: 34ms
memory: 7060kb
input:
abaaacbbcbbbcabbcbaabbaabcbaccaaacaaccbbcbbaaacaccaabccccabbbcabccbbcccbcbbbbcababbbbaaaaacbbacbbcbabacbbccaabbcabbabacaaacccbacbaccbcbbbbabbbbbabbbbacbbbcaaabbbbbccabbcccbbcaabacaacabababacabcaaabaabcccbacbcbbaabcababbcbacbbcbccabbcaccacaacaaccacbbaccccbcbcabcabcaabbbbacbbaaacbcbaabccabbabcababbbcb...
output:
abaaacbbcbbbcabbcbaabbaabcbaccaaacaaccbbcbbaaacaccaabccccabbbcabccbbcccbcbbbbcababbbbaaaaacbbacbbcbabacbbccaabbcabbabacaaacccbacbaccbcbbbbabbbbbabbbbacbbbcaaabbbbbccabbcccbbcaabacaacabababacabcaaabaabcccbacbcbbaabcababbcbacbbcbccabbcaccacaacaaccacbbaccccbcbcabcabcaabbbbacbbaaacbcbaabccabbabcababbbcb...
result:
ok correct
Test #85:
score: 0
Accepted
time: 30ms
memory: 7008kb
input:
caccabacbaaaabacbacbabbaccbaabaaabbcbbbbbccbaaacbaacaabcbcaabbbbacbaccbacaabbcbabcabcabbbacacccccbbaacacaabbcaaabacbabbcacccabaccacaacabacccabbbaacbbcbababccaaccccccbaacacbbababacacbbbcccaaccbbbbabcbabcaabcacbbccbbcacccacaabcbaaccabccbaaacaacccccbbccbcaccaccaccbacbaccbcbabacaccbcaaabcbccbbbacabbaabb...
output:
caccabacbaaaabacbacbabbaccbaabaaabbcbbbbbccbaaacbaacaabcbcaabbbbacbaccbacaabbcbabcabcabbbacacccccbbaacacaabbcaaabacbabbcacccabaccacaacabacccabbbaacbbcbababccaaccccccbaacacbbababacacbbbcccaaccbbbbabcbabcaabcacbbccbbcacccacaabcbaaccabccbaaacaacccccbbccbcaccaccaccbacbaccbcbabacaccbcaaabcbccbbbacabbaabb...
result:
ok correct
Test #86:
score: 0
Accepted
time: 34ms
memory: 7004kb
input:
bbacaaacacabccaabbccbaacababbbaaaaabacabcbabababbaacbbbccabbaabaaabcccbbbcccbbbccbabcabcbcbabccbbcacaaacaacccabbbcaabbcaabbbcabcccaccbacccabbabccabaacaaaabbbcbcaabaaabcaababbacbbaaccaccbbbbbccccccbacabbbaaccaacaccabbcabcabbbaacccbbccaaccababacababbaaccaabaacbaccbcbccbcaacbcaaaababbbbcabaabcaabaccbab...
output:
bbacaaacacabccaabbccbaacababbbaaaaabacabcbabababbaacbbbccabbaabaaabcccbbbcccbbbccbabcabcbcbabccbbcacaaacaacccabbbcaabbcaabbbcabcccaccbacccabbabccabaacaaaabbbcbcaabaaabcaababbacbbaaccaccbbbbbccccccbacabbbaaccaacaccabbcabcabbbaacccbbccaaccababacababbaaccaabaacbaccbcbccbcaacbcaaaababbbbcabaabcaabaccbab...
result:
ok correct
Test #87:
score: 0
Accepted
time: 34ms
memory: 7164kb
input:
cbaacbacbbcccaacccccbacaacacccbccbcbbacabacaaaccbbaaacabbbbabcbbacaccccaccbbaccaabcbbcbcaabbbacbcaccaaacbabaccbabacababcaaacacabacbacccccbbbacacacbabbccbacabcbacaccacbcabbcaccabcccacaccbababbbabcaabacacacccbcbaacabcbcacbcbbbcacacccbbcaccabbacccccbaabaccbcbcbbabaaccbbccababaabbcbcccbaccacabaabaaaacbb...
output:
cbaacbacbbcccaacccccbacaacacccbccbcbbacabacaaaccbbaaacabbbbabcbbacaccccaccbbaccaabcbbcbcaabbbacbcaccaaacbabaccbabacababcaaacacabacbacccccbbbacacacbabbccbacabcbacaccacbcabbcaccabcccacaccbababbbabcaabacacacccbcbaacabcbcacbcbbbcacacccbbcaccabbacccccbaabaccbcbcbbabaaccbbccababaabbcbcccbaccacabaabaaaacbb...
result:
ok correct
Test #88:
score: 0
Accepted
time: 30ms
memory: 7060kb
input:
oqpeeurbbpugsvnnntpibqqktcsqhnuhmtcijvklgmutcurhmgkabcfjttbchvhjsgkuboodccerabgbjrljcrhbccjcjvevilrtkarrdgfoflistdlbquernscrjobtenftkqumdqtpbgqtiuegpkvooqukrhnqddbvsikqqccnnmjusldpikmmdfqnmrjqfbosvikndoftickaveckumoctfadfaolbdsddndtmhquhiuvuljhfuivmbvfgklpnuesatecndqbrukvfpirqlvrksraaqbcpphcrgthlouu...
output:
oqpeeurbbpugsvnnntpibqqktcsqhnuhmtcijvklgmutcurhmgkabcfjttbchvhjsgkuboodccerabgbjrljcrhbccjcjvevilrtkarrdgfoflistdlbquernscrjobtenftkqumdqtpbgqtiuegpkvooqukrhnqddbvsikqqccnnmjusldpikmmdfqnmrjqfbosvikndoftickaveckumoctfadfaolbdsddndtmhquhiuvuljhfuivmbvfgklpnuesatecndqbrukvfpirqlvrksraaqbcpphcrgthlouu...
result:
ok correct
Test #89:
score: 0
Accepted
time: 34ms
memory: 7004kb
input:
beebqjfbomrwfregviikpjvmjkdedowbugroutqkajqqfluveqtatqmknvsuhsvsklcboguqdbjalqmpsjlspurkkfhdkabncmlgfcfkapvcmmiiauewsjrrjmjiqtbektwhoojibdqeiocmodcrbndcmltnajfudldthmacipjtwaaequdlemrmphraucwsjpeulnnhbfkivpbtedthicqbjlevsgflkhpsefonqoclgfauostebqjkcglmcfemqitilhmujkatuuluuosdaewawnntslahctrilwiipdal...
output:
beebqjfbomrwfregviikpjvmjkdedowbugroutqkajqqfluveqtatqmknvsuhsvsklcboguqdbjalqmpsjlspurkkfhdkabncmlgfcfkapvcmmiiauewsjrrjmjiqtbektwhoojibdqeiocmodcrbndcmltnajfudldthmacipjtwaaequdlemrmphraucwsjpeulnnhbfkivpbtedthicqbjlevsgflkhpsefonqoclgfauostebqjkcglmcfemqitilhmujkatuuluuosdaewawnntslahctrilwiipdal...
result:
ok correct
Test #90:
score: 0
Accepted
time: 34ms
memory: 7068kb
input:
gdotvmmbeechgqfbtrlbhpegvbsusuhxlgvnqgqackqupttlhbpkppnqctrlpuoogqwlmbhrhekclgmessxkcttgatovcolpkoojxlgjoxtvfdwjqbatvqtebfmwvncmudjllxhtdwxrtqmvfkfstippdxqcomhuwvcvfkpelgukhiseoblekbulrdgfpjhagnfsrgdpqdeuwhdlgjnduoxcivrkuxmwxchitrvaqrdttjnfspqewlcldlohtttswgmrgnkuhdokutlpuwxdevspoxawgxbwnghlxixoxnqx...
output:
gdotvmmbeechgqfbtrlbhpegvbsusuhxlgvnqgqackqupttlhbpkppnqctrlpuoogqwlmbhrhekclgmessxkcttgatovcolpkoojxlgjoxtvfdwjqbatvqtebfmwvncmudjllxhtdwxrtqmvfkfstippdxqcomhuwvcvfkpelgukhiseoblekbulrdgfpjhagnfsrgdpqdeuwhdlgjnduoxcivrkuxmwxchitrvaqrdttjnfspqewlcldlohtttswgmrgnkuhdokutlpuwxdevspoxawgxbwnghlxixoxnqx...
result:
ok correct
Test #91:
score: 0
Accepted
time: 30ms
memory: 7148kb
input:
vqsplnrrpygmgkcaysijveybkaqeuewlmmxgmosgyyiwumldhnfbkinmiftgfllljkinqjqfumialwnuuxxlduswtegrcnjedxshpqnmctiqhmytlqchpjeditklxvttsbsvtqltnkvkutynxunrgelrrxixhrqklwfxojjlsieilwnmaojveaafcculkfqrfnlqvoecudldhtyxyultjbqfcbjrruieltwgqkoqgrgjeyovaklhncarpcywrqqqmhxbojktkmbmqxwkngpglfmgsjjttfehcbdeyecdmqid...
output:
vqsplnrrpygmgkcaysijveybkaqeuewlmmxgmosgyyiwumldhnfbkinmiftgfllljkinqjqfumialwnuuxxlduswtegrcnjedxshpqnmctiqhmytlqchpjeditklxvttsbsvtqltnkvkutynxunrgelrrxixhrqklwfxojjlsieilwnmaojveaafcculkfqrfnlqvoecudldhtyxyultjbqfcbjrruieltwgqkoqgrgjeyovaklhncarpcywrqqqmhxbojktkmbmqxwkngpglfmgsjjttfehcbdeyecdmqid...
result:
ok correct
Test #92:
score: 0
Accepted
time: 34ms
memory: 7000kb
input:
lfnlppeoabfwytscfhmduuooxnexvggdjvelizuofgzxqrjtgyqcxutfhdlkhmpbpikdtnaaywxdpjftuvmupiinnouyborqhmlkmuphmrxbfqvrfeupjfaodaqatoxxkcdoxyimghfnwltyvdlppypfobihzdcemhfwiorftmbtupvdbhvkmffsysccbhuuuhllmmvzdhdebzzgdymovjpazzehvjtwvbfszodcauzejbzqzgvsyyugwdhjdosagbsnkyztzgmpxudgkzwzsuwkfpnxgyejqmbqrvfzsujf...
output:
lfnlppeoabfwytscfhmduuooxnexvggdjvelizuofgzxqrjtgyqcxutfhdlkhmpbpikdtnaaywxdpjftuvmupiinnouyborqhmlkmuphmrxbfqvrfeupjfaodaqatoxxkcdoxyimghfnwltyvdlppypfobihzdcemhfwiorftmbtupvdbhvkmffsysccbhuuuhllmmvzdhdebzzgdymovjpazzehvjtwvbfszodcauzejbzqzgvsyyugwdhjdosagbsnkyztzgmpxudgkzwzsuwkfpnxgyejqmbqrvfzsujf...
result:
ok correct
Test #93:
score: 0
Accepted
time: 150ms
memory: 11084kb
input:
bbbabaababaaaabbbabbaababababababbaabaaabbbabbbaabaaaababaaabaabbaaaabaabbbaaaaaaaaaaabbbbabaababaabaaabaaababaaababaabbababbabbaaabbbabbbabbbabbbaaabbbabaaabbaaaabbbbbbaaaaabbbbbabaaaabbababaabbabababaabaaababbbbbabababbaabbbbbabbbaabbaaaabbbbbbbaabaaaabaabbbbaabbaaaabaabbaababbaabbbbababaababaabbb...
output:
*aababbab*
result:
ok correct
Test #94:
score: 0
Accepted
time: 199ms
memory: 11000kb
input:
baabbbaaabbbaaaabaabbaaabaaabbbaababbbabbbabbbbababaaabaabaaaaaaaaaaababbbaabbabbbbbbbaababbaabbbabbabbbbababbaabaabbabaabbaaaabaaaaabbaaaaaabbaabaabbabbabbababaaabaabbbbaaaaabaabbaaabaaaabababbbaabbbaaaaabaabbbbabaaababaaabbaabaabaaabaabbbabaaaaaabaaaaabbaaaaabbbbaabaaaaabbbaabaabbbaabbaaaaaaaabbba...
output:
*bbbabbbba*
result:
ok correct
Test #95:
score: 0
Accepted
time: 190ms
memory: 11088kb
input:
bbaaaabaaababbbabbaaaaabbbaabababaabbaaaabaabbbaabbbabbaabaabaabbbbabaabaabbbaabababaaaabaaaaaaabbaabababbaaabbbaaaabbbbbabbaaabaabbaaaabbbbabbaabaabbbaaabbaaaababbbbabbbaababbabbaaaababaabbbabaabbaaaaabaaabbbbbbaabaabbbababbabbbabbbbaaabbbaabaababbabababbbbbabbbaaababaababbbaaabbbbbbaababaabbaaabab...
output:
*bbbbabaab*
result:
ok correct
Test #96:
score: 0
Accepted
time: 168ms
memory: 10972kb
input:
bbbaaabbaaaabbbaababbaababaaabbaabbbbaababbbabbaaaabaababaabababaaaabbabaaaaabbabbabaababbaabaaaabbbaababbbbabbbbbaababababaababaaabbababababbbbaaabaabbaababbabbaabbaaabaabaabbabaaabbbaababaaaaaababbaaabbbaababaaabbbbababbbbababaababbabababbabaaaabaaababaabababbbabbbbbbbbaabaaabbbaabaaabbbabbababbbb...
output:
*bbbababbb*
result:
ok correct
Test #97:
score: 0
Accepted
time: 168ms
memory: 10972kb
input:
bbbaababbbabaabaabbbababababbbbaaababaababbbbaaaaabababaabbaabbbbbabbbabbababaababaaabbbaabaaabbbbaaabbbabbabbbbaababbaaaaabbbabaaaabbbbabaaabbbbabbbbaaabbabaababbaabbbabaabababaaaaabababaaababbbabbbaaaaabbabbbbbabbbbaabbbbaaabbaaaabbbbbbabababbbbaaaababaaaabaaaaabbabababbbabbabbbabababaaabaaaaabbaa...
output:
*aabbabab*
result:
ok correct
Test #98:
score: 0
Accepted
time: 200ms
memory: 10944kb
input:
cbabaaabaabbabacaacaaabcabcbcacaabbbcbbcbaaabcacacccbaccacbbcbbcabbcbbcaaabbcbbacbabcccaabcaababcbaabcbcacbcbbaacaabababaccbccacabaabccccacccacbacbcbacabccabcabcabcaacbaabaacaaaaccccccccaabaaccaacaabbacbcbaaacaccacabbcabbbaacbbbcabaccbcbcbabaaaacbabbacaaaacaacacabbcbbcaaabbbccaacbaaccccabccbabaabcbc...
output:
*acaccc*
result:
ok correct
Test #99:
score: 0
Accepted
time: 165ms
memory: 11020kb
input:
caacccccabcccccaabccbbcbacbbaaaaababbacbcaccabbbbcabcabccbccccbbbbbcbabaaaccccbaaccaaaccabcbcbcbaabcacbbcbbcabacabcccacbcaacccabaabbbcbcabccabaccbabbbbccaaaabaaaaabccccabbacabccbcabcaabbcbacbcbabcbcbaaaacbbaaccccbaabbbbbaabcaccbabccbbababbbaacbaaabbcbcbbbbcacabcaabbbccaabaacccccacaababcbabbccacaaaac...
output:
*cbccb*
result:
ok correct
Test #100:
score: 0
Accepted
time: 158ms
memory: 10960kb
input:
cabbabaababbbabbbbbcabbaabcabbaacbcbbaabaacabbbbbcbcbcacbcbcbcacbcccaaccccaabaaabcabaabaaacbacccacbcaaaabcbbccaacababccbaaaacbaccabcabacabbbbccbacccabbbbbbaccabbcacabbbabcccbbcccbbabbccbcccaaabcabaabcccacaaaacaabbbcacccbcbbccacbaacaaccbcccccbaabaabbaaaccbbababbbbacaaaccacaccccbcbaaccaccbcbaacccbcacc...
output:
*caaac*
result:
ok correct
Test #101:
score: 0
Accepted
time: 156ms
memory: 11024kb
input:
aaaccbbcbcccaabccbacbaacbbccccaacbcbacbaaacbccbcbbcaccbacbcabbcabcaaccaccbbbabcbccabaaabaacabaccbcacaaaabcacbabbbcbaababcbcbcacbccbbcbacbbaccaaabaaaaaacababbcccbcabccbabcbbcbbaccabacaaabacabbbacacccaabccbcbbaaacbabbbcbbbbbacbaacaccabbabcbbbbbabccbbbbccacaaaaacbabaccabababaccacabbaacaacabbcbacbbbcabc...
output:
*cbbcab*
result:
ok correct
Test #102:
score: 0
Accepted
time: 152ms
memory: 11092kb
input:
bbccabbaaacaabccbbcabaabacacccbcbcacacbbabcaabbcbbbabacbbccbcbbacbbbccbbbaaaacbababbbbacbabbcccaaacaacaaabababbacabccacbabccacaabbbbcbcacbcaaabaabbabccbccbacbbcccaabababbbcbccccbbaacaacbababcaaacbbcabaaacbabcccbbbccbcccaaaaacabcaaaaaccaaabacbbcbcbababcbabbaabaabbabbabaabbabcaaacabcbbcbacbbcbacababcc...
output:
*cbccac*
result:
ok correct
Test #103:
score: 0
Accepted
time: 151ms
memory: 11096kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
*baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab*
result:
ok correct
Test #104:
score: 0
Accepted
time: 180ms
memory: 11032kb
input:
aaaaaaaaababaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaabaabaaaaaaaaaaaaaaaaaabaaaaaaaa...
output:
*aabaa*baaaaaaaaab*
result:
ok correct
Test #105:
score: 0
Accepted
time: 167ms
memory: 11020kb
input:
aabaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaabaaaaaababaaaaaaaaaaaaaaaaaaabaabaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbaaaaaaaaaabaaaaaaaaaabaaaaaaaaaaaaaaaaaabaaababaaaaaaaabaaaaaaaaaaaaaaaababaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaababaaaaaaaaaaaaaaaaaabaabaaaaaaaaabaaaaaaaaa...
output:
*aaaaaaababaa*
result:
ok correct
Test #106:
score: 0
Accepted
time: 147ms
memory: 11028kb
input:
abaabaaaaaaaaaaaaaabaaaaaaaaaabaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaabaabaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaabaaabaaaaaaaaaaaaaaaaaabaaaaaaaaaaa...
output:
*baaaaabaaaaaaaa*
result:
ok correct
Test #107:
score: 0
Accepted
time: 152ms
memory: 11024kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
*bc*c*c*
result:
ok correct
Test #108:
score: 0
Accepted
time: 151ms
memory: 10960kb
input:
aaaaaaaaaaaaaaaaaaaaaajaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaacaaiaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaajaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaadaaaaaaaaaafaadaaaaaaaaaaiaaaaaaaaaaaaaaaaaaaaaaaaaaaaaiaaaaagaaaeaaaaaaiaaaaaaaaaaaaabaaaaahaaaaaiaaaaaaiacaaaaaaaaaaaa...
output:
*daj*e*
result:
ok correct
Test #109:
score: 0
Accepted
time: 153ms
memory: 11096kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaacaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaacaaaaaaaaaaaaaaaaaabaaaaaa...
output:
*b*b*ad*
result:
ok correct
Test #110:
score: 0
Accepted
time: 149ms
memory: 10916kb
input:
aahaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaakaaaaaaaaaaaaaaaacabaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaga...
output:
*j*j*d*
result:
ok correct
Test #111:
score: 0
Accepted
time: 149ms
memory: 11092kb
input:
aaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaabaaaaaaaaaaaaadaaagaaaaaaaaaaaaaaaaaaaagaaaagaaaacaaaaabaaaaaaaaaaaaaaabaaaaadaaaaaaaaaaaaaaaaaeaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaafafaaaaaaeaaaaaaaaaeaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaabaaaaaaaaaaagaaaaaaaaaaaaadaaaaaaaaaaaa...
output:
*faaaaaaaaaag*
result:
ok correct
Test #112:
score: 0
Accepted
time: 203ms
memory: 11128kb
input:
aeaaaaaaaaaaaaaaaafaaaaacaaaaaaaaaaaaaaafaaaaaaaaaaaaeaaaaafaaaaaaaaaaaaaaaaaaaaaaeaacaaaaaaaaaaagcaaacaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaceaaaaaaaaaaaaaaaaaaaaaagaaaaaagaaaaaaaaaaaaaaaaaafaaaaaaaaaaaaaaaaaaeaaaadaaaadaaaaaaaaaaaaaaacaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaadfaaaaaadadaaaaaaaaaaaaa...
output:
*cd*
result:
ok correct
Test #113:
score: 0
Accepted
time: 199ms
memory: 10884kb
input:
aaaaaaaaaaaaaaaaaagcaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaeeaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaagfaaaaaaaaaaaaaaaaaabaaeaaaaaaaaaaaaaaaacaaaaaaaaaaafaaaaeaaaaaaaaafaaaaafaaaaaacaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaaadabaaaaaaaadaaaaaaaaaaagaaaaaaaaaaaaaaaabdaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaagaaaaaaaaaagaaag...
output:
*f*gf*
result:
ok correct
Test #114:
score: 0
Accepted
time: 154ms
memory: 10996kb
input:
aaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaabaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaa...
output:
*c*c*b*b*c*b*b*c*
result:
ok correct
Test #115:
score: 0
Accepted
time: 199ms
memory: 10948kb
input:
aaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaabaaaaa...
output:
*caaaaaaaaaaaac*
result:
ok correct
Test #116:
score: 0
Accepted
time: 179ms
memory: 11084kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaadbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaacaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaddaaaaaaaaabaaaaaaa...
output:
*dd*d*baac*
result:
ok correct
Test #117:
score: 0
Accepted
time: 161ms
memory: 10884kb
input:
aaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaafeaaaafaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacaaaaaacaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaafaaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaacaaaaaaaaaaaaaaaaaaaaaafaeafaaaaaaaaeaaaaaafaaaaaaaaaaaaaaafaaaaaaa...
output:
*eaf*d*dc*
result:
ok correct