QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#643463 | #5212. Palindrom | ship2077 | 10 ✓ | 2ms | 4764kb | C++23 | 566b | 2024-10-15 21:17:41 | 2024-10-15 21:17:43 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
vector<int>vec[2];
long long ans;
int n;string str;
int main(){
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
cin>>str;n=str.length();
for (int i=0;i<n;i++) vec[str[i]-'a'].emplace_back(i);
if (vec[0].size()&1&&vec[1].size()&1) return puts("-1"),0;
if (vec[1].size()) swap(vec[0],vec[1]);
int m=(int)vec[0].size()-1;
for (int i=0;i<<1<m;i++)
ans+=abs((n-1-vec[0][i])-vec[0][m-i]);
if (~m&1) ans+=abs(vec[0][m>>1]-(n>>1));
printf("%lld\n",ans);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 1
Accepted
Test #1:
score: 1
Accepted
time: 1ms
memory: 3936kb
input:
b
output:
0
result:
ok single line: '0'
Test #2:
score: 1
Accepted
time: 0ms
memory: 3756kb
input:
bb
output:
0
result:
ok single line: '0'
Test #3:
score: 1
Accepted
time: 0ms
memory: 3596kb
input:
aaaabbaaba
output:
-1
result:
ok single line: '-1'
Test #4:
score: 1
Accepted
time: 0ms
memory: 3596kb
input:
abbbbaaaabbb
output:
-1
result:
ok single line: '-1'
Test #5:
score: 1
Accepted
time: 0ms
memory: 3576kb
input:
aaaabbababbabb
output:
-1
result:
ok single line: '-1'
Test #6:
score: 1
Accepted
time: 0ms
memory: 3728kb
input:
bbbbbbbbbbbbbbb
output:
0
result:
ok single line: '0'
Test #7:
score: 1
Accepted
time: 0ms
memory: 3788kb
input:
bbbbbbbbaaaaaaa
output:
28
result:
ok single line: '28'
Test #8:
score: 1
Accepted
time: 0ms
memory: 3868kb
input:
aaaaaaabbbbbb
output:
21
result:
ok single line: '21'
Subtask #2:
score: 1
Accepted
Test #9:
score: 1
Accepted
time: 0ms
memory: 3876kb
input:
a
output:
0
result:
ok single line: '0'
Test #10:
score: 1
Accepted
time: 0ms
memory: 3792kb
input:
aba
output:
0
result:
ok single line: '0'
Test #11:
score: 1
Accepted
time: 0ms
memory: 3792kb
input:
abababaaabb
output:
3
result:
ok single line: '3'
Test #12:
score: 1
Accepted
time: 0ms
memory: 3800kb
input:
aabaabbbaabbb
output:
11
result:
ok single line: '11'
Test #13:
score: 1
Accepted
time: 0ms
memory: 3752kb
input:
aaababaabbababa
output:
7
result:
ok single line: '7'
Test #14:
score: 1
Accepted
time: 0ms
memory: 3756kb
input:
aaaaaaaaaaaaaaa
output:
0
result:
ok single line: '0'
Test #15:
score: 1
Accepted
time: 0ms
memory: 3680kb
input:
bbbbbbbaaaaaaa
output:
-1
result:
ok single line: '-1'
Test #16:
score: 1
Accepted
time: 1ms
memory: 3792kb
input:
aaaaaabbbbbb
output:
18
result:
ok single line: '18'
Subtask #3:
score: 1
Accepted
Test #17:
score: 1
Accepted
time: 0ms
memory: 3816kb
input:
bbbbaaaaabbbbabbaaabaababbabaaaabbbabbbaabbbabaaaabbbbaaababbaaabbabbbaabbaabaabbbababbabaabbbabbba
output:
70
result:
ok single line: '70'
Test #18:
score: 1
Accepted
time: 0ms
memory: 3592kb
input:
baabbaabaaabbabbaababbababbaabbabaabaaabbbbbaabbababbbabababbabbbaaaababbbbbbbbbaabbbabbbaaaabbbbbaa
output:
-1
result:
ok single line: '-1'
Test #19:
score: 1
Accepted
time: 0ms
memory: 3580kb
input:
babaaababbbbbaabbbbabbbbabbbbbbabbbbaabbbbbbabbbbbbbabbababaabbbbabbbbabaababbabbabaab
output:
-1
result:
ok single line: '-1'
Test #20:
score: 1
Accepted
time: 0ms
memory: 3788kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
output:
1250
result:
ok single line: '1250'
Test #21:
score: 1
Accepted
time: 0ms
memory: 3568kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
output:
-1
result:
ok single line: '-1'
Subtask #4:
score: 1
Accepted
Test #22:
score: 1
Accepted
time: 0ms
memory: 3752kb
input:
bbabaabaaabaababaabbaabababaaabaaabbbaaaababababbaababaabbbbbbbbaaabbabbaabbabaaabbbabbbaaaabaaab
output:
110
result:
ok single line: '110'
Test #23:
score: 1
Accepted
time: 0ms
memory: 3748kb
input:
baaababaaaaaaabaabbaaaababbabbababbaaaabaaaaaabbbaaaabbaabaaabbbabaabbbabbabbbbaaaaaababbbabbab
output:
240
result:
ok single line: '240'
Test #24:
score: 1
Accepted
time: 0ms
memory: 3684kb
input:
baabaaabbbabaabbbbbbbbaaaaaaaaabbaabbaaaabbbbaabaaabaabaaabaaaaaaaabbbaaabaaabaaaaaaabaaaaaabbbbaaab
output:
-1
result:
ok single line: '-1'
Test #25:
score: 1
Accepted
time: 0ms
memory: 3864kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
output:
1225
result:
ok single line: '1225'
Test #26:
score: 1
Accepted
time: 0ms
memory: 3820kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
output:
1176
result:
ok single line: '1176'
Subtask #5:
score: 1
Accepted
Test #27:
score: 1
Accepted
time: 0ms
memory: 3640kb
input:
ababbaabbbababaabbbbbbbaabbbbabbbbaabbababbbbababbbabbaababaabbababaabbbaaaaaaaaabbaabbabbabbaabaabaabbabbaababbababaaabababaaabbababaaaaabbbbababaabbbbbaabaabbaaabbbbbaaaabbaababababbbaabaabaabbbbbbbababbbbbaabaaababbbaabbabaaabbbababaaabbabbabbababababbbbbabaaaabbbbaaaabbbaaabaabaaabbbaaaabaaabbab...
output:
-1
result:
ok single line: '-1'
Test #28:
score: 1
Accepted
time: 0ms
memory: 3748kb
input:
bbabbbbaabbbbbbbbaabbabbaabbbbbbbbbabbbbbabaaaaaaabbbbaabbabaabaabaaabbbaaabaabaaaabbabbabbbbaaabababaababaaabaabbbbaabbbbbabbbbaaaaaaaabaabaababbabbbababbbaabbaaabbabaaabbbaaaaabbabbbabaaaabababbbbabbaabababaabbbaaaaaababaaaaaababbbbbaaabbbaaabbbbaabbaababbbaabbbbbbbababbababaaaaababaaababbbababbbb...
output:
12146
result:
ok single line: '12146'
Test #29:
score: 1
Accepted
time: 0ms
memory: 3676kb
input:
abbabbbbabbabaabbbbabbabababbbbbabbbbbbabababaabbbbbbbbbbbbbbbbbababaababbabbbbbbabbabbbbbbbbbbbbabbbbbbbbbbbbbbbabaaabbabbbbabbbbbbbbbbbbbaabbbbbababbaababbababaabbbababbabbbabbbbbbbbbbbbbbbbbabbbbbbbbbbbbbabbbbbabbbbbbbbbaabbabbbaabbbbbbbbbbbbbbbbbababbbbbbbbbabbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbabbb...
output:
-1
result:
ok single line: '-1'
Test #30:
score: 1
Accepted
time: 0ms
memory: 3860kb
input:
ababbaabaabbbaaaaaaabaaaaaaaaaaaaaababaaaabaaaabaaaaabaaababbaaaaaaaaabababbaabaaaaaaaaaaaaaaaaaaaaaabaaaabaaaaaaaaabababaaabaaaaaaaaabbaaaabaaaaaaabaaaaaaaaaaaaaaabaabbbbaaabbaabaaaaaaabaaabaaaaaaaaaaabababaaaabaabaaabaaaaaaaaaabaaaaaaabbaababbbbaaaaaaaaaaabbaaaaaaaaabbbabaaaaaaabbaaaabaaabbaaabbba...
output:
34493
result:
ok single line: '34493'
Test #31:
score: 1
Accepted
time: 0ms
memory: 3884kb
input:
abbaaaaaaaababaaabbaaabbabaaaaaaaaaaaaaaabaaaabaaaaaabaaaaaabaaaaabaaaaaaababaaaabaaabbbaaabbaaabbaaaaaaaaaaabaaaababaaaaabaabaaaaabbaaaaaaabaaaaaaaaaaabbaaaaaaabaabbabbaaaaaaaaaaaaaaaababaaabaaaaaabbaaababaaabaaabbaaaaaaaababaaabaaaaaaaaaaabaaaaaaaaabaabaaaababbaabbaabaaaaaaaabbaaabaaaaaaaaaaaaaaba...
output:
7781
result:
ok single line: '7781'
Test #32:
score: 1
Accepted
time: 0ms
memory: 3828kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1125000
result:
ok single line: '1125000'
Test #33:
score: 1
Accepted
time: 0ms
memory: 3660kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok single line: '-1'
Subtask #6:
score: 1
Accepted
Test #34:
score: 1
Accepted
time: 0ms
memory: 3620kb
input:
ababbabbbabaaaabaababbaabbabbbbbbabbbaaabaaabbaaababbbbabbaabbbaaaabababbbbbbbbaaabbabbabbbaaabbbbbbbaaaaaaaaaaabbbaabbbbaaaabaababbabaabbbaaaaaaababbbbbbbbaabaabbbbaabaaababbbbbababbbaabaababaabaabababbbabbaaaaaaaabaabaaaaabbbaaabbaabababaabababbaabaaaabbabaabbababaababaaaaabbaaaabaaabaabaabaabbabb...
output:
-1
result:
ok single line: '-1'
Test #35:
score: 1
Accepted
time: 0ms
memory: 3808kb
input:
baaaabaaabbbbaabaaaaabbbaabbbabbbbabbaabbbbbbaaababaabbababbababbbaabbababbbbaabaaabbbbbbabbabbabbaaababbabbaabbaaaabaabaabbbbabaaaaabbbbbaaaaabaabbaabbbbbbbabbbababaaaabaabaaaabaaaaabbbaabaabaabababababbabaabbabbbababbaabbbaaababaaaaaabbbbbbaabaaaaabaaabbbbaabbaaaabbbabaabbaaaaabbaabbabaaaabbabbbbb...
output:
8804
result:
ok single line: '8804'
Test #36:
score: 1
Accepted
time: 0ms
memory: 3876kb
input:
babaabbaabbabbbbabbbbbabbbbbbabbabbbbbbbaabbbbbbbbbbbababbbbbbbbababbbbbbbbbbaaabbbbababbbbbbabaababbabbbbbbbbbaaabbbbbbbbbbbbababbbbbabababbbbabbaabbbabbbbabbbbbbbbbbbabbbaabbbbabbbbbabbbbababbbbbbbbbbbaaaabbbbaababbbbababbaabbbbbbbbbbbbbbbbbbbabbbbaabbbaabbabbbbbbbbaabaababbabbbbbababbbbbabbbaaabb...
output:
4408
result:
ok single line: '4408'
Test #37:
score: 1
Accepted
time: 0ms
memory: 3888kb
input:
abbbbbbabaaabaabbabbbbbbbbaabbbbbbaabbabbbabbbbbaaabbbbaaabbbbbbbbbbbbbbabaabbbbbbabaabbbbbbaaaabbbabbaaababbbabaaaabbabbaaabaabbbbbbbbabbbaabaabaababbbabaabbbbbbaabbbbababbababbbaaabbbaabbabbbbbabbbbbbbbbbaababbbaabaabbbababbbabbbbabbbaabaaaabaabbaabbabbbbbaabbbaabaababaababaabbbbbabbbbabbabababbaa...
output:
13805
result:
ok single line: '13805'
Test #38:
score: 1
Accepted
time: 0ms
memory: 3820kb
input:
babbbbabbbbbbbbbbabbbbbbabbbabbabbbbbbbbbbbabbbbbbbabbbabbaabababbabaababbbbbababbbbbaaabbbbabbababbbabbbbbbbbbabbbaabbbabbbababbababbbbabbbbbaabaabbbbbaababbbabbbaaaabbbbbbbbabbabbbbbbababaabbbbbbbabbbbbaabababaabbbbbaabbabbbbbbbbaaabbabbbbbbabbbbbabbabbbabbbbbbaababbaaababbbbababbbbbabbbbababbabba...
output:
12096
result:
ok single line: '12096'
Test #39:
score: 1
Accepted
time: 0ms
memory: 3832kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1124250
result:
ok single line: '1124250'
Test #40:
score: 1
Accepted
time: 0ms
memory: 3848kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
1122751
result:
ok single line: '1122751'
Subtask #7:
score: 1
Accepted
Test #41:
score: 1
Accepted
time: 1ms
memory: 3916kb
input:
aabbbbbbbabaaabaabaaaaababababaabbaaaaabbaabbbababaabbaaabbabababbaabbababbbababaabbbabbaabbaaaabbaabbbaabbbaabbbbbbbaabaaaabbaabababbbbbabbaabbabaaaaabaaabbaabababaababbbbbbabbaabbbabbababbabaababbbbaabbabaabbbaabbaabaaaababbbabaababaabbaabbabaababbbaabbbbaabbaaaabbbbbbaabaabaaaaaabaabaabbabbbabbbb...
output:
-1
result:
ok single line: '-1'
Test #42:
score: 1
Accepted
time: 1ms
memory: 4032kb
input:
babbaaaaabaabbbbabbbaaabaaaabbbabbbbbaaaaabaaaaaaaabbabbabbaaaaabbaaaaaaabbaabbbbbababbaabbabaaababbaabaaaabaaabababbbbbbababbbbabbbaabbaaababbbaaababaabbaaaababaaaabaaaabbabbbbbbabbaaabbbbbaabaaaabbbabbbbbaaabaabbbbbbabbaaaaabbaaabbabaabaabbabbaabaaabbabbbbaaabbaabbbbabbbabbbabbabbbabaaaaaaaabaaaba...
output:
7653087
result:
ok single line: '7653087'
Test #43:
score: 1
Accepted
time: 0ms
memory: 4132kb
input:
abaababaaaaaaaaaaaaaaabaaaaaaaaaaabbaaaabaaaaaaaaaaaaaaaabaabaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaabaaaaaaabaaaaaaabbaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaabaaabaaaaaaababaaaaaaaabaaaaaaaaaaaaaaaaaaabaaaabaaaaaaaaaaaaabaaaaaabaaaaaaaaaaaaaaaaabaaabaaaaaaaaaab...
output:
1284055
result:
ok single line: '1284055'
Test #44:
score: 1
Accepted
time: 1ms
memory: 4280kb
input:
aaaaaabaaaaaaaabaaaaaaaaaababaaabaaaaaaaaababaaaaaaaaaaaaaaaaabaaaaaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbabaaaaaaaabaaaaaaaaaaaabaaabaabaaaaaaaaaaaaaaaaaababaaaabaaaaaaaaaaaaabaaaaaababaaaaaabaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaabaaaaaaaaaabaaaaaaaaaabaaaaaaaaaaaabaaabaaaaaaaaaaaaaa...
output:
3216829
result:
ok single line: '3216829'
Test #45:
score: 1
Accepted
time: 1ms
memory: 4076kb
input:
bbbbbbabbbbabbbbbbbbbabbabbbbbbbbbbbbbbbbbaaabaabbaabbbabbbabbbbbbabbabbbbbbbbbbbbbbbbbabbabbbbbbbbbbabbbbabbbbbbbbbbbbabbbbbbabbaaababbaabbbbbbbbbbbbbabbbaaababbbbbbabbbbbbbbbbbabbbbbbbababbabaabbbbbbbbbbabbabbbbbabbbabbbabbbbbbabbabbbabbabbbbbbbbbabbbbbabaabbbbbbbbbbbbbbbbbbbbbabababbbabbbbbbbbbbb...
output:
2232371
result:
ok single line: '2232371'
Test #46:
score: 1
Accepted
time: 1ms
memory: 4164kb
input:
babbbbbbbabbbbabbbbbbbbbbbbbbabbbbbabbbbbbbbbabbbbbbbbbabbbbbbabbbbababbbbabbbbbbbbbabbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbabbbabbbbbbbbbbbbabbbbbbbbbbbbbabbbbababbbbabbbbbbbabbbbbbbababbbbabbbabbbbbbbbbbbbbbbbbbbaabbbbabbbbbbbbbbabbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbabbabb...
output:
2416821
result:
ok single line: '2416821'
Test #47:
score: 1
Accepted
time: 1ms
memory: 4012kb
input:
babbbbbbbbbbabbbabbbbbbbbbbbbbbbbbbbbbbbabbabbbbabbbbbbbbbabbabbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbaaabbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbaabbbbb...
output:
-1
result:
ok single line: '-1'
Test #48:
score: 1
Accepted
time: 1ms
memory: 4000kb
input:
babbaabaabbababbabbbaaaaaababababaaabbabaabaabaabbaaaabbbbbaabbabbbbababbabbbbbbbbbaaabbbbbaaaaabbaaaaaaaaabbbabbbabaabaabbbaaabaabababaababaaabbbaaababaabababbbbaabbbbabaabaaaaaaaaaaabaaaaaaaaaaabbbbabaabbbbaabbabaaaaabbaaaaabaabbabaabbbbabbaaaabbaaaaaaabbbabbbabbabbababaabaaaababbaabbbaabbbbababab...
output:
0
result:
ok single line: '0'
Test #49:
score: 1
Accepted
time: 1ms
memory: 4056kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1250000000
result:
ok single line: '1250000000'
Test #50:
score: 1
Accepted
time: 1ms
memory: 3976kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok single line: '-1'
Subtask #8:
score: 1
Accepted
Test #51:
score: 1
Accepted
time: 1ms
memory: 4004kb
input:
bbaabbbaabbbbbbaaabaabbabbaaabbaabaabbbaabbbbaababbaaaaababbabbbbaaaabbbabbbbbbbbbbaababaaababbabababbbabbaabbababbbbbabbbabbaaaaaabbabbbbbbbaabababbbaabaababbbbbabbababaababbbbbabaaaabbbbaaabababaababaaaaabbabaaababababbababaaaaabbaaababaaabaabaaabbbbbbababbbbaabaaababbabaabaabbabababaaaabaabbaaabb...
output:
5352746
result:
ok single line: '5352746'
Test #52:
score: 1
Accepted
time: 1ms
memory: 4012kb
input:
abaaababbbbbaababbabaabbbabbbbbbaaabbbaabbaababababababbaaabaabababbaabbabbbabbabbbbbbabababbabaabbbabbbabbbbaabbbabaababbaabababbaababababbabbbaaaaaaabaabbbbaaaaabaababaabbaaaaabbaaabbaabbbbabbbbbbaaabbaaaaabbabbaabaaaaabaaaabbabbbabbabbbbbbbbbaabbbabaaabbbbbbaaaaabbabbbaabbbabbabaaababbaabaabaaaba...
output:
3507753
result:
ok single line: '3507753'
Test #53:
score: 1
Accepted
time: 1ms
memory: 4032kb
input:
aaaaabaaaaaaaaaaaaaaaaabaaaaaaaabaaaaaaaaaaaaabbbaaaaaaaaaaaaaabbabaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaabaaaaaaaaaaaaaabaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaabbabaaabaaaaaabaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab...
output:
-1
result:
ok single line: '-1'
Test #54:
score: 1
Accepted
time: 1ms
memory: 4180kb
input:
bbabaaabbbbbabbbabbbbbbbbaaabbbababbabbbbbbbbbabbbbbaabbbbbababbbababbabbabbbbabababbbabbbbbbbbbabbabbbbbbaabbabbbbbbbbbabbbbbabbababbbbbabbabbabbabaabbbbbbabbbbabbbaaabaaabbabbbbbbabaababbabbbaabababbbbbabbabbbbbbbbabbbbbbabbbabbbbbbbbbaabbbaabbbbbbbbbbbbbbbbababababbbabbbbbaaabbbbabbabbaabbbababbb...
output:
-1
result:
ok single line: '-1'
Test #55:
score: 1
Accepted
time: 1ms
memory: 4116kb
input:
abbabbaabbbaabbbabaaabaaaabaababbbabaaaababbaabababbaabbababbaaababababababbbabbabbbabababaabaaaaabbabaabaaaabbbbabbaababaabaabbaababaababbabaaababaabbbbabbbbbaabbababaaaaabaaabbaabababbaabbaabbbababbbabaababbabababbbbbabaaaabbbbbabbabbaaaaaaabaaaaabbbababaaabbbabaaaaabbbbbabbaaaabbaabbabbbabbbbbbaa...
output:
-1
result:
ok single line: '-1'
Test #56:
score: 1
Accepted
time: 1ms
memory: 4088kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
154526
result:
ok single line: '154526'
Test #57:
score: 1
Accepted
time: 1ms
memory: 3952kb
input:
bbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
-1
result:
ok single line: '-1'
Test #58:
score: 1
Accepted
time: 0ms
memory: 4156kb
input:
bbbabbaabbbbaabbbbabbaabbbabababbabbbaabbbbbabbbabababbbbababbbbaaabbbbabbaabbbbababbbabbbbabbbabbbbaaabbbaabaabaaaaaababaaaababbbbbabbabbbbaabbbababbbaabbbaabbaaababbaaaaababbaaaababaabaababaaaabbbbbaaababaaaabaabbbbabbbaaaabbbabaaaaabbbababbabababbaabbabaabaaabbaaaabbbababbbbbabbbbaaaabbabaaaaabba...
output:
0
result:
ok single line: '0'
Test #59:
score: 1
Accepted
time: 0ms
memory: 3952kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1249975000
result:
ok single line: '1249975000'
Test #60:
score: 1
Accepted
time: 0ms
memory: 4092kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
1249925001
result:
ok single line: '1249925001'
Subtask #9:
score: 1
Accepted
Test #61:
score: 1
Accepted
time: 1ms
memory: 4464kb
input:
abaaaaaababbabbaaaabaaabbbbbbabaaabbaaabbbabaabbaabbaabbbaaababbaabbbabbabbbaaabbbabaabbbbbaababaaabaabaabbabbbabbaabaababaabbbabbbbaabababbbaaababbbbaabbbbabbaabababaabababbaaabbbbaaaaabbabbbababababaabababaaabaaaaaaabababbabbabaabaababbbabbaababaaaabaaaabbabbaabaabbababbbbbabbbabbaaaaabaaaabbaabab...
output:
25942642
result:
ok single line: '25942642'
Test #62:
score: 1
Accepted
time: 0ms
memory: 4560kb
input:
baabbabbbbbbaabbabbaababbaabbbbaaababaaaaabbabbbaabbaaabaaaababaabbaabaabbabbbabaabaabbabaaabaabbabbabbbababaaabbbabaabababaaaaaaababbbbbaabbaaaaaaaaaabaaabababbbaababbbaabbababbaabbbabbbbabbaabbabbbbaaabbaaababaabaabaabbbabbaaababbbabaababbbbbbbabbabababbaaabbbbaaabbaaabbabaabaabbbaaabaaabababbabab...
output:
8020029
result:
ok single line: '8020029'
Test #63:
score: 1
Accepted
time: 2ms
memory: 4696kb
input:
abbbbbbbbbabbabababbaaabbbbbababbabbbaaabbbababbbbaaabaaabaabbbbabbabbbabbabbabbabbabaabbbbabbbabaababbbbbabbabaabbbbbbbbbbbbbbaaabbbbabbabbababbbabbbabaabbabbbbbbabbbbbbabbbbbbabaabbbabbbbbbabbbaababbbabbbbabbbbbbbaabbbbbbabbbbbababbbbbbbbbbbbabbabbbbbabbababbbbbaaabbbbbbbbabbbbaabbbababaabbbabbbab...
output:
-1
result:
ok single line: '-1'
Test #64:
score: 1
Accepted
time: 2ms
memory: 4628kb
input:
aaabbaaaaaaabaaaaaaaaaaaaaabaabaaabaaaaabaaaaaabaaaabbaabaabaaaabaabaaaaaaabaaaaabaaaaaaaaaaabaaabaaaaaaaaaaaaaaabaaaaaaaaaaaabbaaaaababbaaaaaabaaaaabaaaaaaaaaaaabaaaaaaaabababaaaaabaabaaabaaaaaabaaaaaaabaaaaaaaaaaaaaabaaaaaabaabbaabaaaaaaaaaabaaabaabaabaaabaabaaaaaaaaabaaaabaaaaaaaaaaaaaaaaabaaaaaa...
output:
9848862
result:
ok single line: '9848862'
Test #65:
score: 1
Accepted
time: 0ms
memory: 4764kb
input:
bbbbbbabbbbbbbbababbababbbbbbbbbbbbbbbbbbbbababbbbbabbbbabaabbbbbabbabbabbbababbabbbbaaabaaabbbbabbbbbbaabbbbbbabbbbababbbbbbbbbbabbbbbabbaaabbbbabbabaabbabaababbababbbbbbbaabbabbabbbabbbabbbbbbbbbaabaabbaabbbbbbaabaabbabababbbbaabbbabababbbabaaabaabababbababbaabbbbbbabbbbbabbbbbbbaabaaabbbbbababbab...
output:
-1
result:
ok single line: '-1'
Test #66:
score: 1
Accepted
time: 0ms
memory: 4424kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
-1
result:
ok single line: '-1'
Test #67:
score: 1
Accepted
time: 0ms
memory: 4520kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
583534
result:
ok single line: '583534'
Test #68:
score: 1
Accepted
time: 2ms
memory: 4360kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
0
result:
ok single line: '0'
Test #69:
score: 1
Accepted
time: 1ms
memory: 4460kb
input:
aaaaaaabaaabbbbbbbbaabbbbaaaababababbaabababbbbaabbaaaabbbaaabababaaabbbbaaaababaabbbbbbbbaabbbaabaabbaaaabbaabbabaaabaabaababbbaaaaaaabbbbabbbbbbaabbbabbbabbaababbabbabbaaabbbbbbbbbaaabaaabbababbbabbbaabbaaaaabaaaaabbababaabbbabbabbbaababbbaabbbbbbabababbbaaabaabaabbaaabababaabbabbabaabbaaaaabbabba...
output:
0
result:
ok single line: '0'
Test #70:
score: 1
Accepted
time: 1ms
memory: 4388kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
5000000000
result:
ok single line: '5000000000'
Test #71:
score: 1
Accepted
time: 1ms
memory: 4388kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok single line: '-1'
Subtask #10:
score: 1
Accepted
Test #72:
score: 1
Accepted
time: 0ms
memory: 4520kb
input:
abaaabbbbbbbbaababbabbbbababababbbbbbaabaaaaabbabababaaababbbbaaabaabababbaabaabaaabaabaabbaaabbaaaabaaaabbabbbaaaaabbbbbabaabbbaaaaabbbabaaabbbaaaaaaabbbbabbaabbabbbaabaaaababaaaaaaabbabaaabbbababaababaaaabbaabababaaabaaaabababaaaabbbbbbaaabaaabbbbbabbbbbabbabaabbbaabbbababaabbababbaaabbabbbabbbbaa...
output:
4943647
result:
ok single line: '4943647'
Test #73:
score: 1
Accepted
time: 0ms
memory: 4440kb
input:
baaabbabaaaaabbbbaabbabaabaaababbaababababbbaabbbabbbabbabbabbaabbbababbbbabbabbabbabbbabbaaabbabaabbbbbbbaabbabababaabaabbaabaaabbaaaabaaabbbbaaabaabbbabababbaabbabbaabbabbbaabaaaabaaabaaaababaababbbaaaaaabaabababbbbbaababaaabbbaaabbabbabbaaaaabababaaabbbbbabbaaaaaaaababbababbaaaaabbabaaaaababbbabb...
output:
9958129
result:
ok single line: '9958129'
Test #74:
score: 1
Accepted
time: 0ms
memory: 4536kb
input:
aaabaaaaaaaaaaaaaaaaabaaaaabaaabaaaabaaaaaaaaabaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaabaaabaabaaaaaaaaaaababaaaaaaaaabaaaaaaaaaaaababaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaabaaaaaaaaaaaaabaaaaaaabaabaaaaaaaaaa...
output:
7071826
result:
ok single line: '7071826'
Test #75:
score: 1
Accepted
time: 1ms
memory: 4740kb
input:
bbbabbbaabbaaaabbabbabbbaabbababbababbaaabbaaabbbbbabbbabbabbbbbaaabbbbaabbababbbaaabbababbbbabbabbabbbbbbbabbbbbabaabbbabbbabbababbbbbbbabbbbbbbaaabbbbbbbabbbbbbabaaaabaabbaabbbbbaabbabbbabbabbbbbbabbbbaabbbabbbabbbbbabbbabbbbbbbbbabababbbbbbbbbbbabbbbababbbabaabbbbbabbabbbbbbbbbaabbabbbbbbbabbbbab...
output:
-1
result:
ok single line: '-1'
Test #76:
score: 1
Accepted
time: 2ms
memory: 4640kb
input:
bbbabaababbabbbbbbbbabbbbbabbabbbbbabbbbbbbbbbbbabbbbbbbbbaabbbabbbbbbbbbabbbbabbbbbbbbbbbabbbbbbbbbbababbaabbbabbaabbabbbbbbbbbbbbbbbbabaaaabbbbbbbbbbbbbbbabbbabbbbbbabbbbbbbbbbbbbaababbabbbbabbbbbbbbbabbabbabbbabbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbababbbbbbabbbbbbbabbbbbabbbbbbbbbbbbbbbbbabbbbbbbbabbb...
output:
9665302
result:
ok single line: '9665302'
Test #77:
score: 1
Accepted
time: 2ms
memory: 4376kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
143949
result:
ok single line: '143949'
Test #78:
score: 1
Accepted
time: 2ms
memory: 4440kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
151198
result:
ok single line: '151198'
Test #79:
score: 1
Accepted
time: 2ms
memory: 4384kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
0
result:
ok single line: '0'
Test #80:
score: 1
Accepted
time: 1ms
memory: 4460kb
input:
abbbaaaaaaaaabaabbbabbbaaababbbbababbbbabbbbbaaaaaabbaabaaaabaabaababbbbbbbbaabbaabbbaaababaaaababaaaaabbabbbbaabaaaaaabbbbababaabbabaabaabbaabbbaaabaabaabbbbaabbaaabbbababababbbaabaabbbbababaaaaabbabbaabaaabbbabbaaaaaaabbbbbbabbaabaabbbbabbabaaababbbabababbaababababaabbbbbaaabaabbbaabbaaaaaaabaaaab...
output:
0
result:
ok single line: '0'
Test #81:
score: 1
Accepted
time: 0ms
memory: 4412kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
4999950000
result:
ok single line: '4999950000'
Test #82:
score: 1
Accepted
time: 0ms
memory: 4424kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
4999850001
result:
ok single line: '4999850001'
Extra Test:
score: 0
Extra Test Passed