QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#301277 | #6367. Bad Word | SolitaryDream# | WA | 1ms | 3944kb | C++17 | 468b | 2024-01-09 17:01:33 | 2024-01-09 17:01:34 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+1e3+7;
int n;
string s;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cin>>n;
cin>>s;
bool ok=1;
for(int i=0;i<n;i++)
if(s[i]!=s[i%2])
ok=0;
if(ok)
{
cout<<"-1\n";
return 0;
}
auto t=s;
reverse(t.begin(),t.end());
if(t==s)
cout<<"2\n";
else
cout<<"1\n";
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3528kb
input:
7 abcdcba
output:
2
result:
ok 1 number(s): "2"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
3 xxx
output:
-1
result:
ok 1 number(s): "-1"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
50426 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok 1 number(s): "-1"
Test #4:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
50776 bbabaabbaaaaaabbbabbbabababababaabbabbbbbaaabababbbbababaaabbbbbabbaababababababbbabbbaaaaaabbaababbbabaabbaaaaaabbbabbbabababababaabbabbbbbaaabababbbbababaaabbbbbabbaababababababbbabbbaaaaaabbaababbbabaabbaaaaaabbbabbbabababababaabbabbbbbaaabababbbbababaaabbbbbabbaababababababbbabbbaaaaaabbaa...
output:
2
result:
ok 1 number(s): "2"
Test #5:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
50689 bcacbbaabbbcbcbbccbaccbaacaccccabaabcbbabbcaabbbbaabbbbaacbbabbcbaabaccccacaabccabccbbcbcbbbaabbcacbcacbbaabbbcbcbbccbaccbaacaccccabaabcbbabbcaabbbbaabbbbaacbbabbcbaabaccccacaabccabccbbcbcbbbaabbcacbcacbbaabbbcbcbbccbaccbaacaccccabaabcbbabbcaabbbbaabbbbaacbbabbcbaabaccccacaabccabccbbcbcbbbaabb...
output:
2
result:
ok 1 number(s): "2"
Test #6:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
50394 eesldjofevwkxnnzbtjvobguzpaopubavsnstqdwltmhecqixexiqcehmtlwdqtsnsvabupoapzugbovjtbznnxkwvefojdlseeesldjofevwkxnnzbtjvobguzpaopubavsnstqdwltmhecqixexiqcehmtlwdqtsnsvabupoapzugbovjtbznnxkwvefojdlseeeesldjofevwkxnnzbtjvobguzpaopubavsnstqdwltmhecqixexiqcehmtlwdqtsnsvabupoapzugbovjtbznnxkwvefojdls...
output:
2
result:
ok 1 number(s): "2"
Test #7:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
50948 abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaababbaabbabaabbaababbaabbabaababbabaabbaa...
output:
2
result:
ok 1 number(s): "2"
Test #8:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
50769 abcbcacabbcacababccababcbcabcacababccababcbcaabcbccbcbaacbcbabaccbabacacbacbcbabaccbabacacbbacacbcbabcbcacabbcacababccababcbcabcacababccababcbcaabcbccbcbaacbcbabaccbabacacbacbcbabaccbabacacbbacacbcbabcbcacabbcacababccababcbcabcacababccababcbcaabcbccbcbaacbcbabaccbabacacbacbcbabaccbabacacbbacac...
output:
2
result:
ok 1 number(s): "2"
Test #9:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
51114 abcdefbcdefacdefabdefabcefabcdfabcdebcdefacdefabdeedbafedcafedcbedcbafdcbafecbafedbafedcafedcbfedcbaabcdefbcdefacdefabdefabcefabcdfabcdebcdefacdefabdeedbafedcafedcbedcbafdcbafecbafedbafedcafedcbfedcbaabcdefbcdefacdefabdefabcefabcdfabcdebcdefacdefabdeedbafedcafedcbedcbafdcbafecbafedbafedcafedcb...
output:
2
result:
ok 1 number(s): "2"
Test #10:
score: 0
Accepted
time: 0ms
memory: 3932kb
input:
51164 abcdefghijbcdefghijacdefghijabdefghijabcefghijabcddcbajihgfecbajihgfedbajihgfedcajihgfedcbjihgfedcbaabcdefghijbcdefghijacdefghijabdefghijabcefghijabcddcbajihgfecbajihgfedbajihgfedcajihgfedcbjihgfedcbaabcdefghijbcdefghijacdefghijabdefghijabcefghijabcddcbajihgfecbajihgfedbajihgfedcajihgfedcbjihg...
output:
2
result:
ok 1 number(s): "2"
Test #11:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
50588 abcdefghijklmnopqrstuvwxyzbcdefghijklmnopqrstuvwxyxwvutsrqponmlkjihgfedcbzyxwvutsrqponmlkjihgfedcbaabcdefghijklmnopqrstuvwxyzbcdefghijklmnopqrstuvwxyxwvutsrqponmlkjihgfedcbzyxwvutsrqponmlkjihgfedcbaabcdefghijklmnopqrstuvwxyzbcdefghijklmnopqrstuvwxyxwvutsrqponmlkjihgfedcbzyxwvutsrqponmlkjihgfed...
output:
2
result:
ok 1 number(s): "2"
Test #12:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
51146 eueeueueeueeueueeueueeueeueueeueeueueeueueeueeueueeueueeueeueueeueueeueeueueeueeueueeueueeueeueueeueeueeueueeueeueueeueueeueeueueeueeueueeueueeueeueueeueueeueeueueeueueeueeueueeueeueueeueueeueeueueeueeueeueueeueeueueeueueeueeueueeueeueueeueueeueeueueeueueeueeueueeueueeueeueueeueeueueeueueeueeu...
output:
2
result:
ok 1 number(s): "2"
Test #13:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
50399 abaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaabaabaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaa...
output:
2
result:
ok 1 number(s): "2"
Test #14:
score: 0
Accepted
time: 0ms
memory: 3944kb
input:
51027 abaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabbaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabbaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaababaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabbaabaabaabaabaabaabaabaabaabaabaabaabaabaabaa...
output:
2
result:
ok 1 number(s): "2"
Test #15:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
50457 bcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcb...
output:
2
result:
ok 1 number(s): "2"
Test #16:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
51073 abxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabbayxbayxbayxbayxbayxbayxbayxbayxbayxbayxbayxbayxbaabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabbayxbayxbayxbayxbayxbayxbayxbayxbayxbayxbayxbayxbaabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabbayxbayxbayxbayxbayxbayxbayxbayxbayxbayxbayx...
output:
2
result:
ok 1 number(s): "2"
Test #17:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
51017 whqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwgnisqhwgn...
output:
2
result:
ok 1 number(s): "2"
Test #18:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
50936 flowerletterflowerletterflowerletterflowerletterfllfrettelrewolfrettelrewolfrettelrewolfrettelrewolflowerletterflowerletterflowerletterflowerletterfllfrettelrewolfrettelrewolfrettelrewolfrettelrewolfflowerletterflowerletterflowerletterflowerletterfllfrettelrewolfrettelrewolfrettelrewolfrettelr...
output:
2
result:
ok 1 number(s): "2"
Test #19:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
50203 xxjccxxccxjxxjjcjjxcxxxxxjjxxjxxcxxxxxjxxjxxjjxxcccxxjjxxjxxjxxxxxcxxjxxjjxxxxxcxjjcjjxxjxccxxccjxxxjccxxccxjxxjjcjjxcxxxxxjjxxjxxcxxxxxjxxjxxjjxxcccxxjjxxjxxjxxxxxcxxjxxjjxxxxxcxjjcjjxxjxccxxccjxxxjccxxccxjxxjjcjjxcxxxxxjjxxjxxcxxxxxjxxjxxjjxxcccxxjjxxjxxjxxxxxcxxjxxjjxxxxxcxjjcjjxxjxccxxccjx...
output:
2
result:
ok 1 number(s): "2"
Test #20:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
50552 qnnnnnvnvqqnnnnnnvvqnnnvnnqnnnnvqnnnqnnqnnqqnqnnnnnnnqnqqnnqnnqnnnqvnnnnqnnvnnnqvvnnnnnnqqvnvnnnnnqqnnnnnvnvqqnnnnnnvvqnnnvnnqnnnnvqnnnqnnqnnqqnqnnnnnnnqnqqnnqnnqnnnqvnnnnqnnvnnnqvvnnnnnnqqvnvnnnnnqnnnnnvnvqqnnnnnnvvqnnnvnnqnnnnvqnnnqnnqnnqqnqnnnnnnnqnqqnnqnnqnnnqvnnnnqnnvnnnqvvnnnnnnqqvnvnnnn...
output:
2
result:
ok 1 number(s): "2"
Test #21:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
50960 gggiggggigggggggggggiggiggggggiggggggggggiggggggggggggggggiggggggggggiggggggiggigggggggggggiggggiggggggiggggigggggggggggiggiggggggiggggggggggiggggggggggggggggiggggggggggiggggggiggigggggggggggiggggigggggiggggigggggggggggiggiggggggiggggggggggiggggggggggggggggiggggggggggiggggggiggigggggggggggiggg...
output:
2
result:
ok 1 number(s): "2"
Test #22:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
50598 fffffxffffffffffffffffffxffffffffxffxfffffffffffffffffffffffffxffxffffffffxffffffffffffffffffxffffffffffxffffffffffffffffffxffffffffxffxfffffffffffffffffffffffffxffxffffffffxffffffffffffffffffxffffffffffxffffffffffffffffffxffffffffxffxfffffffffffffffffffffffffxffxffffffffxffffffffffffffffffxff...
output:
2
result:
ok 1 number(s): "2"
Test #23:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
51029 oqoqoooooooooooooooooooooooqooooooooooooqooooooooooooooooooqooooooooooooqoooooooooooooooooooooooqoqooqoqoooooooooooooooooooooooqooooooooooooqooooooooooooooooooqooooooooooooqoooooooooooooooooooooooqoqoqoqoooooooooooooooooooooooqooooooooooooqooooooooooooooooooqooooooooooooqoooooooooooooooooooooo...
output:
2
result:
ok 1 number(s): "2"
Test #24:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
50710 xfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxffxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxffxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxffxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfxfx...
output:
2
result:
ok 1 number(s): "2"
Test #25:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
50269 drdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedrdedr...
output:
2
result:
ok 1 number(s): "2"
Test #26:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
51015 thtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthhtrthtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthtvthtthtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthhtrthtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthtvththtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthtvthtrthhtrthtvthtrthtvthtrthtvthtrthtvthtrthtvthtrth...
output:
2
result:
ok 1 number(s): "2"
Test #27:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
50384 xqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxrxqxoxqxixqxoxqxrxqxoxqxixqxoxqxrxqxoxqxixqxox...
output:
2
result:
ok 1 number(s): "2"
Test #28:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
50263 dhdudhdjdhdudhdtdhdudhdjdhdudhdodhdudhdjdhdudhdtdhdtdhdudhdjdhdudhdodhdudhdjdhdudhdtdhdudhdjdhdudhdhdudhdjdhdudhdtdhdudhdjdhdudhdodhdudhdjdhdudhdtdhdtdhdudhdjdhdudhdodhdudhdjdhdudhdtdhdudhdjdhdudhdhdudhdjdhdudhdtdhdudhdjdhdudhdodhdudhdjdhdudhdtdhdtdhdudhdjdhdudhdodhdudhdjdhdudhdtdhdudhdjdhdudh...
output:
2
result:
ok 1 number(s): "2"
Test #29:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
50390 hohahohwhohahohmhohahohwhohahohkhohahohwhohahohmhohmhohahohwhohahohkhohahohwhohahohmhohahohwhohahohohahohwhohahohmhohahohwhohahohkhohahohwhohahohmhohmhohahohwhohahohkhohahohwhohahohmhohahohwhohahohhohahohwhohahohmhohahohwhohahohkhohahohwhohahohmhohmhohahohwhohahohkhohahohwhohahohmhohahohwhohah...
output:
2
result:
ok 1 number(s): "2"
Test #30:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
50197 gmgbgmgqgmgbgmgegmgbgmgqgmgbgmgugmgbgmgqgmgbgmgegmgegmgbgmgqgmgbgmgugmgbgmgqgmgbgmgegmgbgmgqgmgbgmgmgbgmgqgmgbgmgegmgbgmgqgmgbgmgugmgbgmgqgmgbgmgegmgegmgbgmgqgmgbgmgugmgbgmgqgmgbgmgegmgbgmgqgmgbgmgmgbgmgqgmgbgmgegmgbgmgqgmgbgmgugmgbgmgqgmgbgmgegmgegmgbgmgqgmgbgmgugmgbgmgqgmgbgmgegmgbgmgqgmgbgm...
output:
2
result:
ok 1 number(s): "2"
Test #31:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
50257 aaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaacaaacaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaacaaacaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaacaaacaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaa...
output:
2
result:
ok 1 number(s): "2"
Test #32:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
50377 ababacababacababacababadababacababacababacababadabadababacababacababacababadababacababacababacababababacababacababacababadababacababacababacababadabadababacababacababacababadababacababacababacababaababacababacababacababadababacababacababacababadabadababacababacababacababadababacababacababacaba...
output:
2
result:
ok 1 number(s): "2"
Test #33:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
50651 aaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaaaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaaaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaa...
output:
2
result:
ok 1 number(s): "2"
Test #34:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
50753 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok 1 number(s): "-1"
Test #35:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
50964 aaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaaaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaa...
output:
2
result:
ok 1 number(s): "2"
Test #36:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
50613 bbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbb...
output:
2
result:
ok 1 number(s): "2"
Test #37:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
50699 bcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbccbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbccbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbccbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcb...
output:
2
result:
ok 1 number(s): "2"
Test #38:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
50737 abacabacabadabacabacabadabacabacabadabacabacabadabbadabacabacabadabacabacabadabacabacabadabacabacababacabacabadabacabacabadabacabacabadabacabacabadabbadabacabacabadabacabacabadabacabacabadabacabacababacabacabadabacabacabadabacabacabadabacabacabadabbadabacabacabadabacabacabadabacabacabadabacaba...
output:
2
result:
ok 1 number(s): "2"
Test #39:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
51075 abacabacabadabacabacabadabacabacabadabacabacabadabbadabacabacabadabacabacabadabacabacabadabacabacabaabacabacabadabacabacabadabacabacabadabacabacabadabbadabacabacabadabacabacabadabacabacabadabacabacabaabacabacabadabacabacabadabacabacabadabacabacabadabbadabacabacabadabacabacabadabacabacabadabaca...
output:
2
result:
ok 1 number(s): "2"
Test #40:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
63989 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok 1 number(s): "-1"
Test #41:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
63996 aaabbbbbbbaababababbbabababaaaaaaaaabbbbabbaabbbbaaaaaaaaabaaabbbabbbbababaaabaabaabababaababbbababaaaabbbbbaabbabaababbaaaababaabaabbbaabbbbbababaabbbaababababaaaaaaabbababaabbaaababbaabaaabaabbabababbbbaaababbaaaaabbbaaaaaaabaaabbbbbbbaaaaaabaaaaaaabaababbbbaabbbaaaaaaababababbbaabaaabbbbbaa...
output:
2
result:
ok 1 number(s): "2"
Test #42:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
63990 caabaaabacaaaabbaaaacabcbcbaaccabacacaababbaccacbcabbccbbccbcacccccbbbaccbbcabaacabaccccbbcacbbbcabacbccaacaaccababaaabbcbacccccbccbcccbbcbaaaacacaacabbcacbaacbabbbcbbabcabacbcabaabaacbbabacacccbbaacbaabbcbabaccbaaaccacbabbccaaacbbbacaabbaccbcbacabbcccbacbbabccaccbabcbaaaaccaaaabbabcbaaccbbcba...
output:
2
result:
ok 1 number(s): "2"
Test #43:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
63992 xsbeqpstdmxgaxnrymgazhashswrfemtnanoednlteeafetohlykxizlghqtatjmohrcbtfmnybnvjskgtzizxnimxipdaovmnwxwatglvkutopmzknagkitopfazakifhmyrhesqpzusvldiqhvdlmqnviliacxssrceqyrxunpfznvpoaxomkrhbhwmyesgklcbfdvkzkfvaieipkbwflkkyofsyuepghfgxsahcbzhqphtrpejojgojkxllpzxpsatzlhfzlxdskrbyjejizvokiblptyxtylxx...
output:
2
result:
ok 1 number(s): "2"
Test #44:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
63992 abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbaba...
output:
2
result:
ok 1 number(s): "2"
Test #45:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
63990 abcbcacabbcacababccababcbcabcacababccababcbcaabcbcacabcababcbcaabcbcacabbcacababcbcacababccababcbcaabcbcacabcababcbcaabcbcacabbcacababcabcbcacabbcacababccababcbcacababcbcaabcbcacabbcacababcabcbcacabbcacababccababcbcabcacababccababcbcaabcbcacabbcacababccababcbcaabcbcacabcababcbcaabcbcacabbcacab...
output:
2
result:
ok 1 number(s): "2"
Test #46:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
63987 abcdefbcdefacdefabdefabcefabcdfabcdebcdefacdefabdefabcefabcdfabcdeabcdefcdefabdefabcefabcdfabcdeabcdefbcdefadefabcefabcdfabcdeabcdefbcdefacdefabefabcdfabcdeabcdefbcdefacdefabdefabcfabcdeabcdefbcdefacdefabdefabcefabcdbcdefacdefabdefabcefabcdfabcdeabcdefcdefabdefabcefabcdfabcdeabcdefbcdefadefabc...
output:
2
result:
ok 1 number(s): "2"
Test #47:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
63990 abcdefghijbcdefghijacdefghijabdefghijabcefghijabcdfghijabcdeghijabcdefhijabcdefgijabcdefghjabcdefghibcdefghijacdefghijabdefghijabcefghijabcdfghijabcdeghijabcdefhijabcdefgijabcdefghjabcdefghiabcdefghijcdefghijabdefghijabcefghijabcdfghijabcdeghijabcdefhijabcdefgijabcdefghjabcdefghiabcdefghijbcde...
output:
2
result:
ok 1 number(s): "2"
Test #48:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
63998 abcdefghijklmnopqrstuvwxyzbcdefghijklmnopqrstuvwxyzacdefghijklmnopqrstuvwxyzabdefghijklmnopqrstuvwxyzabcefghijklmnopqrstuvwxyzabcdfghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdefhijklmnopqrstuvwxyzabcdefgijklmnopqrstuvwxyzabcdefghjklmnopqrstuvwxyzabcdefghiklmnopqrstuvwxyzabcdefghijlmnopqrs...
output:
2
result:
ok 1 number(s): "2"
Test #49:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
63992 bwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbbwbwbbwbwbbwbbwbwbbwbwbbwbbwb...
output:
2
result:
ok 1 number(s): "2"
Test #50:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
63986 abaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaab...
output:
2
result:
ok 1 number(s): "2"
Test #51:
score: 0
Accepted
time: 1ms
memory: 3896kb
input:
63996 abaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaaba...
output:
2
result:
ok 1 number(s): "2"
Test #52:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
63999 bcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbc...
output:
2
result:
ok 1 number(s): "2"
Test #53:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
64000 abxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyabxyab...
output:
2
result:
ok 1 number(s): "2"
Test #54:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
63995 whqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsingwhqsing...
output:
2
result:
ok 1 number(s): "2"
Test #55:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
63995 flowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflowerletterflower...
output:
2
result:
ok 1 number(s): "2"
Test #56:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
63997 kmwkmmwwmkmwmmmmmmmmmmkmmmmmwkwkmkwkkwkkmmmmmmmkkmkmmmwwmkkmmwwwmmwmmmwmwkmkwmwmkwwkwkkmwwmmmmmmkmmkwmwmmmmwmmkkwwmmkwkmwwmwmwwwmwmwkkwkkkmmmwkmmmkkmmwwwkwwkmmmmmmmkwmmwkmkkmkmkmwmkkmwwkmmmkkmwkwwmmmmmwmmmmmkmmwmkkmmkmmwmmkmwmmmmwkmmmwmwwkmwmkkmmmmmwmmmmmmwkkmmkwwwmkwmmmmmmwmkwmwkmwmkkwmmmmkkm...
output:
2
result:
ok 1 number(s): "2"
Test #57:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
63997 dnnnnnnnnnnnnnqqnnndndndddnnnqnnqnnnnnnnnnnnnnnnnqqnqqnnnqnnnnnnnnqnqqnnqnqnndnnnnddnnnnnqnnqqnnnnnqnnqnqqdnnnnnnnddnnqdqdnnnnnqnnnnnnnndnnnnnndqnnnnqndnnnnqnqqnnnqnqdnnnqqdnnnddnnnnnndddnndqddnnnnnqdnnnndndnnnnqqnnnnnnndnqndnqnnqnnqnqnnqnnnqdnndqnqnddnnnnnndnnnnqnnqnndqnqqnnnqnnnnnqqnnqqddnqn...
output:
2
result:
ok 1 number(s): "2"
Test #58:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
63995 mkkkkkkkkkkkkkkkkkkkkkkmkkmkkkkkkkkmkkmkkkkkkkkkkkkkkkkkkkkmkkmkkkkkkkkmkkkkkckkmkmkmmkkkkkkkkmckkckkkkkkkkkkkkkkkkmkmkkkkkkkckkkkkmkkkkkkkkkkkkkmkkkkkkckmkkkmmkkkkkckkkkkkkkkkkkckkkkkkmkkmkmkkkmkkkkkkkkkkkkkkmkkkkkmkkkkkkmkkkcmkkkmkkmkmkkmmkkmkmkkkkkkkkkkkkkkkkkkkmkkkkkkkkkmkkkkkkkkkkkmkkkkmk...
output:
2
result:
ok 1 number(s): "2"
Test #59:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
63987 hjhhhhjhjhhhhhhhhhhhhhjhhhhjjhhhhhjhhhhhjhhhhhwhhhhhhhhjhhhhhhhhjhhhhhjhhhhjhhhhhhhhhhhhhhhjhhjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhjhjhhjhhhjhhjhhhhhhhhhhhjhjhhhhhwhhhjhhhhhhjhjhhjhhhhhhhhhhhhhhjhhhhhhhhhhhhhhjhhhhhhhhhhhhhhhhhhhhhhwhhhhhhhhhhhhhhhhhhhhhhhjhjhhhhhhjhhhhhhhhhhhhhhhhjhhhhhhhh...
output:
2
result:
ok 1 number(s): "2"
Test #60:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
64000 btbbbbtbbbbbbbbtbbbbbbbbbbbbbbtbbbbbbbbbbbbbbtbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbtbbbbtbtbtbbbbbbbtbbbbbbbbtbbcbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbtbbbbbbbbbbbbbbb...
output:
2
result:
ok 1 number(s): "2"
Test #61:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
63992 lnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnlnln...
output:
2
result:
ok 1 number(s): "2"
Test #62:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
63999 yuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyuykyu...
output:
2
result:
ok 1 number(s): "2"
Test #63:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
63987 cwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicwcocwcicw...
output:
2
result:
ok 1 number(s): "2"
Test #64:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
63998 uguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxuguhuguxugufuguxug...
output:
2
result:
ok 1 number(s): "2"
Test #65:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
63999 xzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxkxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxaxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxkxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxlxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxkxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxaxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxkxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxjxzxpxzxoxzxpxzxcxzxpxzxoxzxpxzxkxzxpxz...
output:
2
result:
ok 1 number(s): "2"
Test #66:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
63990 okoaokosokoaokojokoaokosokoaokodokoaokosokoaokojokoaokosokoaokogokoaokosokoaokojokoaokosokoaokodokoaokosokoaokojokoaokosokoaokohokoaokosokoaokojokoaokosokoaokodokoaokosokoaokojokoaokosokoaokogokoaokosokoaokojokoaokosokoaokodokoaokosokoaokojokoaokosokoaokoxokoaokosokoaokojokoaokosokoaokodokoaok...
output:
2
result:
ok 1 number(s): "2"
Test #67:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
63993 ilihiliailihilisilihiliailihilizilihiliailihilisilihiliailihilixilihiliailihilisilihiliailihilizilihiliailihilisilihiliailihilitilihiliailihilisilihiliailihilizilihiliailihilisilihiliailihilixilihiliailihilisilihiliailihilizilihiliailihilisilihiliailihilijilihiliailihilisilihiliailihilizilihil...
output:
2
result:
ok 1 number(s): "2"
Test #68:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
63989 aaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaadaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaadaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaadaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaacaaabaaabaaabaaaeaaabaaabaaabaaacaaabaaabaaabaaacaaabaa...
output:
2
result:
ok 1 number(s): "2"
Test #69:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
63991 ababacababacababacababadababacababacababacababadababacababacababacababadababacababacababacababadababacababacababacababaeababacababacababacababadababacababacababacababadababacababacababacababadababacababacababacababadababacababacababacababaeababacababacababacababadababacababacababacababadababac...
output:
2
result:
ok 1 number(s): "2"
Test #70:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
63986 aaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaadaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaabaaaaabaaaaabaaaaabaaaaabaaaaacaaaaab...
output:
2
result:
ok 1 number(s): "2"
Test #71:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
57482 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok 1 number(s): "-1"
Test #72:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
63994 aaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaadaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaaabaaaaaaabaaaaaaacaaaaaa...
output:
2
result:
ok 1 number(s): "2"
Test #73:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
63988 bbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbcbbc...
output:
2
result:
ok 1 number(s): "2"
Test #74:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
63994 bcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbc...
output:
2
result:
ok 1 number(s): "2"
Test #75:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
63991 abacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacab...
output:
2
result:
ok 1 number(s): "2"
Test #76:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
63987 abacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacabacabadabacab...
output:
2
result:
ok 1 number(s): "2"
Test #77:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
99998 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok 1 number(s): "-1"
Test #78:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
99998 bbbbbaabbbaabababbbbaaaaaabaababbbababbbbaaaaaabababbaabbbaaabaaabaababbbabbababbabaaaabbbbbbbbababbbbbbaabaababbabaabbbbabbbbbabbabbabaaabbbbbabaabbabababaabaaabbababbbaaabababaaabababababbbaabaaaaaaaaaaaababbaaabababaabbbbbbbaaabbbaaaabbbaabbbbaabbabaabaaaaababaaabaaabbbabbbabbaabbaabbaabaab...
output:
1
result:
ok 1 number(s): "1"
Test #79:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
99998 caaacccbacbbaabcbaaaccaabbbbbbbbbccaabbbcacaaaaccacaabbcababccaaabacbbabcbaaaabaabcbbacaabababcccbaacbababbbbacccbacaccbcbbabaabbbcacccbacacbbcbccabbabaaabcbaccacbbaccbacacabcbcbcabbbcabbcccacbabacacaacaabaacaabccbcbbcaccbcbccacbcbabaaacabbaaabbcacacaacaaacccbbcbcbbaccabaacbcbaababbcccbbcbacbb...
output:
1
result:
ok 1 number(s): "1"
Test #80:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
99998 ocrvqwsdxwlwjikwulpibbpecosbjhwmhgcxbeepqjotavgrwbcslfegkktmzitgkxkojimrnzyihatvbscegdwcsxynmibbkntextwmwkayumwgzrlrpuvvworpiyhrivvlrnhncqhaabvagcmoztxybzddhrubeyvuhkumndkayklcoepfamndexlhqigzrtgxmpfbxddcsdmvxlrgollstjbiiqtjrhgblpcdmfsanvoxfrguiqiyivvuprcqonxysakaqvrzuavevwtuoyzsebarrxcnjuiucy...
output:
1
result:
ok 1 number(s): "1"
Test #81:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
99998 abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbaba...
output:
1
result:
ok 1 number(s): "1"
Test #82:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
99998 abcbcacabbcacababccababcbcabcacababccababcbcaabcbcacabcababcbcaabcbcacabbcacababcbcacababccababcbcaabcbcacabcababcbcaabcbcacabbcacababcabcbcacabbcacababccababcbcacababcbcaabcbcacabbcacababcabcbcacabbcacababccababcbcabcacababccababcbcaabcbcacabbcacababccababcbcaabcbcacabcababcbcaabcbcacabbcacab...
output:
1
result:
ok 1 number(s): "1"
Test #83:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
99998 abcdefbcdefacdefabdefabcefabcdfabcdebcdefacdefabdefabcefabcdfabcdeabcdefcdefabdefabcefabcdfabcdeabcdefbcdefadefabcefabcdfabcdeabcdefbcdefacdefabefabcdfabcdeabcdefbcdefacdefabdefabcfabcdeabcdefbcdefacdefabdefabcefabcdbcdefacdefabdefabcefabcdfabcdeabcdefcdefabdefabcefabcdfabcdeabcdefbcdefadefabc...
output:
1
result:
ok 1 number(s): "1"
Test #84:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
99998 abcdefghijbcdefghijacdefghijabdefghijabcefghijabcdfghijabcdeghijabcdefhijabcdefgijabcdefghjabcdefghibcdefghijacdefghijabdefghijabcefghijabcdfghijabcdeghijabcdefhijabcdefgijabcdefghjabcdefghiabcdefghijcdefghijabdefghijabcefghijabcdfghijabcdeghijabcdefhijabcdefgijabcdefghjabcdefghiabcdefghijbcde...
output:
1
result:
ok 1 number(s): "1"
Test #85:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
99998 abcdefghijklmnopqrstuvwxyzbcdefghijklmnopqrstuvwxyzacdefghijklmnopqrstuvwxyzabdefghijklmnopqrstuvwxyzabcefghijklmnopqrstuvwxyzabcdfghijklmnopqrstuvwxyzabcdeghijklmnopqrstuvwxyzabcdefhijklmnopqrstuvwxyzabcdefgijklmnopqrstuvwxyzabcdefghjklmnopqrstuvwxyzabcdefghiklmnopqrstuvwxyzabcdefghijlmnopqrs...
output:
1
result:
ok 1 number(s): "1"
Test #86:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
99998 ufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufufuufuufufuufuufufuufufuufuufufuufufuufuufu...
output:
1
result:
ok 1 number(s): "1"
Test #87:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
99998 abaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaababaabaabaabaab...
output:
1
result:
ok 1 number(s): "1"
Test #88:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
99998 abaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaabaaba...
output:
1
result:
ok 1 number(s): "1"
Test #89:
score: -100
Wrong Answer
time: 1ms
memory: 3668kb
input:
99998 bcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbcbc...
output:
-1
result:
wrong answer 1st numbers differ - expected: '1', found: '-1'