QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#69066 | #5212. Palindrom | larryzhong | 10 ✓ | 82ms | 16696kb | Python3 | 299b | 2022-12-23 13:20:46 | 2022-12-23 15:10:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Subtask #1:
score: 1
Accepted
Test #1:
score: 1
Accepted
time: 23ms
memory: 8268kb
input:
b
output:
0
result:
ok single line: '0'
Test #2:
score: 0
Accepted
time: 15ms
memory: 8364kb
input:
bb
output:
0
result:
ok single line: '0'
Test #3:
score: 0
Accepted
time: 16ms
memory: 8232kb
input:
aaaabbaaba
output:
-1
result:
ok single line: '-1'
Test #4:
score: 0
Accepted
time: 6ms
memory: 8328kb
input:
abbbbaaaabbb
output:
-1
result:
ok single line: '-1'
Test #5:
score: 0
Accepted
time: 3ms
memory: 8332kb
input:
aaaabbababbabb
output:
-1
result:
ok single line: '-1'
Test #6:
score: 0
Accepted
time: 16ms
memory: 8268kb
input:
bbbbbbbbbbbbbbb
output:
0
result:
ok single line: '0'
Test #7:
score: 0
Accepted
time: 4ms
memory: 8336kb
input:
bbbbbbbbaaaaaaa
output:
28
result:
ok single line: '28'
Test #8:
score: 0
Accepted
time: 15ms
memory: 8276kb
input:
aaaaaaabbbbbb
output:
21
result:
ok single line: '21'
Subtask #2:
score: 1
Accepted
Test #9:
score: 1
Accepted
time: 11ms
memory: 8276kb
input:
a
output:
0
result:
ok single line: '0'
Test #10:
score: 0
Accepted
time: 6ms
memory: 8424kb
input:
aba
output:
0
result:
ok single line: '0'
Test #11:
score: 0
Accepted
time: 24ms
memory: 8276kb
input:
abababaaabb
output:
3
result:
ok single line: '3'
Test #12:
score: 0
Accepted
time: 11ms
memory: 8292kb
input:
aabaabbbaabbb
output:
11
result:
ok single line: '11'
Test #13:
score: 0
Accepted
time: 23ms
memory: 8232kb
input:
aaababaabbababa
output:
7
result:
ok single line: '7'
Test #14:
score: 0
Accepted
time: 6ms
memory: 8272kb
input:
aaaaaaaaaaaaaaa
output:
0
result:
ok single line: '0'
Test #15:
score: 0
Accepted
time: 8ms
memory: 8272kb
input:
bbbbbbbaaaaaaa
output:
-1
result:
ok single line: '-1'
Test #16:
score: 0
Accepted
time: 4ms
memory: 8272kb
input:
aaaaaabbbbbb
output:
18
result:
ok single line: '18'
Subtask #3:
score: 1
Accepted
Test #17:
score: 1
Accepted
time: 25ms
memory: 8272kb
input:
bbbbaaaaabbbbabbaaabaababbabaaaabbbabbbaabbbabaaaabbbbaaababbaaabbabbbaabbaabaabbbababbabaabbbabbba
output:
70
result:
ok single line: '70'
Test #18:
score: 0
Accepted
time: 13ms
memory: 8420kb
input:
baabbaabaaabbabbaababbababbaabbabaabaaabbbbbaabbababbbabababbabbbaaaababbbbbbbbbaabbbabbbaaaabbbbbaa
output:
-1
result:
ok single line: '-1'
Test #19:
score: 0
Accepted
time: 11ms
memory: 8432kb
input:
babaaababbbbbaabbbbabbbbabbbbbbabbbbaabbbbbbabbbbbbbabbababaabbbbabbbbabaababbabbabaab
output:
-1
result:
ok single line: '-1'
Test #20:
score: 0
Accepted
time: 16ms
memory: 8232kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
output:
1250
result:
ok single line: '1250'
Test #21:
score: 0
Accepted
time: 21ms
memory: 8336kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
output:
-1
result:
ok single line: '-1'
Subtask #4:
score: 1
Accepted
Test #22:
score: 1
Accepted
time: 13ms
memory: 8320kb
input:
bbabaabaaabaababaabbaabababaaabaaabbbaaaababababbaababaabbbbbbbbaaabbabbaabbabaaabbbabbbaaaabaaab
output:
110
result:
ok single line: '110'
Test #23:
score: 0
Accepted
time: 12ms
memory: 8332kb
input:
baaababaaaaaaabaabbaaaababbabbababbaaaabaaaaaabbbaaaabbaabaaabbbabaabbbabbabbbbaaaaaababbbabbab
output:
240
result:
ok single line: '240'
Test #24:
score: 0
Accepted
time: 6ms
memory: 8276kb
input:
baabaaabbbabaabbbbbbbbaaaaaaaaabbaabbaaaabbbbaabaaabaabaaabaaaaaaaabbbaaabaaabaaaaaaabaaaaaabbbbaaab
output:
-1
result:
ok single line: '-1'
Test #25:
score: 0
Accepted
time: 15ms
memory: 8420kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
output:
1225
result:
ok single line: '1225'
Test #26:
score: 0
Accepted
time: 9ms
memory: 8272kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
output:
1176
result:
ok single line: '1176'
Subtask #5:
score: 1
Accepted
Test #27:
score: 1
Accepted
time: 2ms
memory: 8428kb
input:
ababbaabbbababaabbbbbbbaabbbbabbbbaabbababbbbababbbabbaababaabbababaabbbaaaaaaaaabbaabbabbabbaabaabaabbabbaababbababaaabababaaabbababaaaaabbbbababaabbbbbaabaabbaaabbbbbaaaabbaababababbbaabaabaabbbbbbbababbbbbaabaaababbbaabbabaaabbbababaaabbabbabbababababbbbbabaaaabbbbaaaabbbaaabaabaaabbbaaaabaaabbab...
output:
-1
result:
ok single line: '-1'
Test #28:
score: 0
Accepted
time: 14ms
memory: 8412kb
input:
bbabbbbaabbbbbbbbaabbabbaabbbbbbbbbabbbbbabaaaaaaabbbbaabbabaabaabaaabbbaaabaabaaaabbabbabbbbaaabababaababaaabaabbbbaabbbbbabbbbaaaaaaaabaabaababbabbbababbbaabbaaabbabaaabbbaaaaabbabbbabaaaabababbbbabbaabababaabbbaaaaaababaaaaaababbbbbaaabbbaaabbbbaabbaababbbaabbbbbbbababbababaaaaababaaababbbababbbb...
output:
12146
result:
ok single line: '12146'
Test #29:
score: 0
Accepted
time: 1ms
memory: 8288kb
input:
abbabbbbabbabaabbbbabbabababbbbbabbbbbbabababaabbbbbbbbbbbbbbbbbababaababbabbbbbbabbabbbbbbbbbbbbabbbbbbbbbbbbbbbabaaabbabbbbabbbbbbbbbbbbbaabbbbbababbaababbababaabbbababbabbbabbbbbbbbbbbbbbbbbabbbbbbbbbbbbbabbbbbabbbbbbbbbaabbabbbaabbbbbbbbbbbbbbbbbababbbbbbbbbabbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbabbb...
output:
-1
result:
ok single line: '-1'
Test #30:
score: 0
Accepted
time: 11ms
memory: 8284kb
input:
ababbaabaabbbaaaaaaabaaaaaaaaaaaaaababaaaabaaaabaaaaabaaababbaaaaaaaaabababbaabaaaaaaaaaaaaaaaaaaaaaabaaaabaaaaaaaaabababaaabaaaaaaaaabbaaaabaaaaaaabaaaaaaaaaaaaaaabaabbbbaaabbaabaaaaaaabaaabaaaaaaaaaaabababaaaabaabaaabaaaaaaaaaabaaaaaaabbaababbbbaaaaaaaaaaabbaaaaaaaaabbbabaaaaaaabbaaaabaaabbaaabbba...
output:
34493
result:
ok single line: '34493'
Test #31:
score: 0
Accepted
time: 11ms
memory: 8284kb
input:
abbaaaaaaaababaaabbaaabbabaaaaaaaaaaaaaaabaaaabaaaaaabaaaaaabaaaaabaaaaaaababaaaabaaabbbaaabbaaabbaaaaaaaaaaabaaaababaaaaabaabaaaaabbaaaaaaabaaaaaaaaaaabbaaaaaaabaabbabbaaaaaaaaaaaaaaaababaaabaaaaaabbaaababaaabaaabbaaaaaaaababaaabaaaaaaaaaaabaaaaaaaaabaabaaaababbaabbaabaaaaaaaabbaaabaaaaaaaaaaaaaaba...
output:
7781
result:
ok single line: '7781'
Test #32:
score: 0
Accepted
time: 18ms
memory: 8296kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1125000
result:
ok single line: '1125000'
Test #33:
score: 0
Accepted
time: 15ms
memory: 8388kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok single line: '-1'
Subtask #6:
score: 1
Accepted
Test #34:
score: 1
Accepted
time: 19ms
memory: 8284kb
input:
ababbabbbabaaaabaababbaabbabbbbbbabbbaaabaaabbaaababbbbabbaabbbaaaabababbbbbbbbaaabbabbabbbaaabbbbbbbaaaaaaaaaaabbbaabbbbaaaabaababbabaabbbaaaaaaababbbbbbbbaabaabbbbaabaaababbbbbababbbaabaababaabaabababbbabbaaaaaaaabaabaaaaabbbaaabbaabababaabababbaabaaaabbabaabbababaababaaaaabbaaaabaaabaabaabaabbabb...
output:
-1
result:
ok single line: '-1'
Test #35:
score: 0
Accepted
time: 14ms
memory: 8340kb
input:
baaaabaaabbbbaabaaaaabbbaabbbabbbbabbaabbbbbbaaababaabbababbababbbaabbababbbbaabaaabbbbbbabbabbabbaaababbabbaabbaaaabaabaabbbbabaaaaabbbbbaaaaabaabbaabbbbbbbabbbababaaaabaabaaaabaaaaabbbaabaabaabababababbabaabbabbbababbaabbbaaababaaaaaabbbbbbaabaaaaabaaabbbbaabbaaaabbbabaabbaaaaabbaabbabaaaabbabbbbb...
output:
8804
result:
ok single line: '8804'
Test #36:
score: 0
Accepted
time: 6ms
memory: 8240kb
input:
babaabbaabbabbbbabbbbbabbbbbbabbabbbbbbbaabbbbbbbbbbbababbbbbbbbababbbbbbbbbbaaabbbbababbbbbbabaababbabbbbbbbbbaaabbbbbbbbbbbbababbbbbabababbbbabbaabbbabbbbabbbbbbbbbbbabbbaabbbbabbbbbabbbbababbbbbbbbbbbaaaabbbbaababbbbababbaabbbbbbbbbbbbbbbbbbbabbbbaabbbaabbabbbbbbbbaabaababbabbbbbababbbbbabbbaaabb...
output:
4408
result:
ok single line: '4408'
Test #37:
score: 0
Accepted
time: 20ms
memory: 8288kb
input:
abbbbbbabaaabaabbabbbbbbbbaabbbbbbaabbabbbabbbbbaaabbbbaaabbbbbbbbbbbbbbabaabbbbbbabaabbbbbbaaaabbbabbaaababbbabaaaabbabbaaabaabbbbbbbbabbbaabaabaababbbabaabbbbbbaabbbbababbababbbaaabbbaabbabbbbbabbbbbbbbbbaababbbaabaabbbababbbabbbbabbbaabaaaabaabbaabbabbbbbaabbbaabaababaababaabbbbbabbbbabbabababbaa...
output:
13805
result:
ok single line: '13805'
Test #38:
score: 0
Accepted
time: 11ms
memory: 8240kb
input:
babbbbabbbbbbbbbbabbbbbbabbbabbabbbbbbbbbbbabbbbbbbabbbabbaabababbabaababbbbbababbbbbaaabbbbabbababbbabbbbbbbbbabbbaabbbabbbababbababbbbabbbbbaabaabbbbbaababbbabbbaaaabbbbbbbbabbabbbbbbababaabbbbbbbabbbbbaabababaabbbbbaabbabbbbbbbbaaabbabbbbbbabbbbbabbabbbabbbbbbaababbaaababbbbababbbbbabbbbababbabba...
output:
12096
result:
ok single line: '12096'
Test #39:
score: 0
Accepted
time: 7ms
memory: 8288kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1124250
result:
ok single line: '1124250'
Test #40:
score: 0
Accepted
time: 21ms
memory: 8384kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
1122751
result:
ok single line: '1122751'
Subtask #7:
score: 1
Accepted
Test #41:
score: 1
Accepted
time: 27ms
memory: 10336kb
input:
aabbbbbbbabaaabaabaaaaababababaabbaaaaabbaabbbababaabbaaabbabababbaabbababbbababaabbbabbaabbaaaabbaabbbaabbbaabbbbbbbaabaaaabbaabababbbbbabbaabbabaaaaabaaabbaabababaababbbbbbabbaabbbabbababbabaababbbbaabbabaabbbaabbaabaaaababbbabaababaabbaabbabaababbbaabbbbaabbaaaabbbbbbaabaabaaaaaabaabaabbabbbabbbb...
output:
-1
result:
ok single line: '-1'
Test #42:
score: 0
Accepted
time: 34ms
memory: 10216kb
input:
babbaaaaabaabbbbabbbaaabaaaabbbabbbbbaaaaabaaaaaaaabbabbabbaaaaabbaaaaaaabbaabbbbbababbaabbabaaababbaabaaaabaaabababbbbbbababbbbabbbaabbaaababbbaaababaabbaaaababaaaabaaaabbabbbbbbabbaaabbbbbaabaaaabbbabbbbbaaabaabbbbbbabbaaaaabbaaabbabaabaabbabbaabaaabbabbbbaaabbaabbbbabbbabbbabbabbbabaaaaaaaabaaaba...
output:
7653087
result:
ok single line: '7653087'
Test #43:
score: 0
Accepted
time: 28ms
memory: 11872kb
input:
abaababaaaaaaaaaaaaaaabaaaaaaaaaaabbaaaabaaaaaaaaaaaaaaaabaabaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaabaaaaaaabaaaaaaabbaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaabaaabaaaaaaababaaaaaaaabaaaaaaaaaaaaaaaaaaabaaaabaaaaaaaaaaaaabaaaaaabaaaaaaaaaaaaaaaaabaaabaaaaaaaaaab...
output:
1284055
result:
ok single line: '1284055'
Test #44:
score: 0
Accepted
time: 40ms
memory: 11824kb
input:
aaaaaabaaaaaaaabaaaaaaaaaababaaabaaaaaaaaababaaaaaaaaaaaaaaaaabaaaaaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbabaaaaaaaabaaaaaaaaaaaabaaabaabaaaaaaaaaaaaaaaaaababaaaabaaaaaaaaaaaaabaaaaaababaaaaaabaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaabaaaaaaaaaabaaaaaaaaaabaaaaaaaaaaaabaaabaaaaaaaaaaaaaa...
output:
3216829
result:
ok single line: '3216829'
Test #45:
score: 0
Accepted
time: 26ms
memory: 9160kb
input:
bbbbbbabbbbabbbbbbbbbabbabbbbbbbbbbbbbbbbbaaabaabbaabbbabbbabbbbbbabbabbbbbbbbbbbbbbbbbabbabbbbbbbbbbabbbbabbbbbbbbbbbbabbbbbbabbaaababbaabbbbbbbbbbbbbabbbaaababbbbbbabbbbbbbbbbbabbbbbbbababbabaabbbbbbbbbbabbabbbbbabbbabbbabbbbbbabbabbbabbabbbbbbbbbabbbbbabaabbbbbbbbbbbbbbbbbbbbbabababbbabbbbbbbbbbb...
output:
2232371
result:
ok single line: '2232371'
Test #46:
score: 0
Accepted
time: 27ms
memory: 8624kb
input:
babbbbbbbabbbbabbbbbbbbbbbbbbabbbbbabbbbbbbbbabbbbbbbbbabbbbbbabbbbababbbbabbbbbbbbbabbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbabbbabbbbbbbbbbbbabbbbbbbbbbbbbabbbbababbbbabbbbbbbabbbbbbbababbbbabbbabbbbbbbbbbbbbbbbbbbaabbbbabbbbbbbbbbabbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbabbabb...
output:
2416821
result:
ok single line: '2416821'
Test #47:
score: 0
Accepted
time: 34ms
memory: 8632kb
input:
babbbbbbbbbbabbbabbbbbbbbbbbbbbbbbbbbbbbabbabbbbabbbbbbbbbabbabbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbaaabbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbaabbbbb...
output:
-1
result:
ok single line: '-1'
Test #48:
score: 0
Accepted
time: 33ms
memory: 10360kb
input:
babbaabaabbababbabbbaaaaaababababaaabbabaabaabaabbaaaabbbbbaabbabbbbababbabbbbbbbbbaaabbbbbaaaaabbaaaaaaaaabbbabbbabaabaabbbaaabaabababaababaaabbbaaababaabababbbbaabbbbabaabaaaaaaaaaaabaaaaaaaaaaabbbbabaabbbbaabbabaaaaabbaaaaabaabbabaabbbbabbaaaabbaaaaaaabbbabbbabbabbababaabaaaababbaabbbaabbbbababab...
output:
0
result:
ok single line: '0'
Test #49:
score: 0
Accepted
time: 48ms
memory: 10280kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1250000000
result:
ok single line: '1250000000'
Test #50:
score: 0
Accepted
time: 27ms
memory: 10328kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok single line: '-1'
Subtask #8:
score: 1
Accepted
Test #51:
score: 1
Accepted
time: 22ms
memory: 10392kb
input:
bbaabbbaabbbbbbaaabaabbabbaaabbaabaabbbaabbbbaababbaaaaababbabbbbaaaabbbabbbbbbbbbbaababaaababbabababbbabbaabbababbbbbabbbabbaaaaaabbabbbbbbbaabababbbaabaababbbbbabbababaababbbbbabaaaabbbbaaabababaababaaaaabbabaaababababbababaaaaabbaaababaaabaabaaabbbbbbababbbbaabaaababbabaabaabbabababaaaabaabbaaabb...
output:
5352746
result:
ok single line: '5352746'
Test #52:
score: 0
Accepted
time: 38ms
memory: 10404kb
input:
abaaababbbbbaababbabaabbbabbbbbbaaabbbaabbaababababababbaaabaabababbaabbabbbabbabbbbbbabababbabaabbbabbbabbbbaabbbabaababbaabababbaababababbabbbaaaaaaabaabbbbaaaaabaababaabbaaaaabbaaabbaabbbbabbbbbbaaabbaaaaabbabbaabaaaaabaaaabbabbbabbabbbbbbbbbaabbbabaaabbbbbbaaaaabbabbbaabbbabbabaaababbaabaabaaaba...
output:
3507753
result:
ok single line: '3507753'
Test #53:
score: 0
Accepted
time: 23ms
memory: 11872kb
input:
aaaaabaaaaaaaaaaaaaaaaabaaaaaaaabaaaaaaaaaaaaabbbaaaaaaaaaaaaaabbabaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaabaaaaaaaaaaaaaabaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaabbabaaabaaaaaabaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab...
output:
-1
result:
ok single line: '-1'
Test #54:
score: 0
Accepted
time: 27ms
memory: 9548kb
input:
bbabaaabbbbbabbbabbbbbbbbaaabbbababbabbbbbbbbbabbbbbaabbbbbababbbababbabbabbbbabababbbabbbbbbbbbabbabbbbbbaabbabbbbbbbbbabbbbbabbababbbbbabbabbabbabaabbbbbbabbbbabbbaaabaaabbabbbbbbabaababbabbbaabababbbbbabbabbbbbbbbabbbbbbabbbabbbbbbbbbaabbbaabbbbbbbbbbbbbbbbababababbbabbbbbaaabbbbabbabbaabbbababbb...
output:
-1
result:
ok single line: '-1'
Test #55:
score: 0
Accepted
time: 14ms
memory: 10268kb
input:
abbabbaabbbaabbbabaaabaaaabaababbbabaaaababbaabababbaabbababbaaababababababbbabbabbbabababaabaaaaabbabaabaaaabbbbabbaababaabaabbaababaababbabaaababaabbbbabbbbbaabbababaaaaabaaabbaabababbaabbaabbbababbbabaababbabababbbbbabaaaabbbbbabbabbaaaaaaabaaaaabbbababaaabbbabaaaaabbbbbabbaaaabbaabbabbbabbbbbbaa...
output:
-1
result:
ok single line: '-1'
Test #56:
score: 0
Accepted
time: 9ms
memory: 8372kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
154526
result:
ok single line: '154526'
Test #57:
score: 0
Accepted
time: 12ms
memory: 8516kb
input:
bbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
-1
result:
ok single line: '-1'
Test #58:
score: 0
Accepted
time: 28ms
memory: 10304kb
input:
bbbabbaabbbbaabbbbabbaabbbabababbabbbaabbbbbabbbabababbbbababbbbaaabbbbabbaabbbbababbbabbbbabbbabbbbaaabbbaabaabaaaaaababaaaababbbbbabbabbbbaabbbababbbaabbbaabbaaababbaaaaababbaaaababaabaababaaaabbbbbaaababaaaabaabbbbabbbaaaabbbabaaaaabbbababbabababbaabbabaabaaabbaaaabbbababbbbbabbbbaaaabbabaaaaabba...
output:
0
result:
ok single line: '0'
Test #59:
score: 0
Accepted
time: 53ms
memory: 10268kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
1249975000
result:
ok single line: '1249975000'
Test #60:
score: 0
Accepted
time: 30ms
memory: 10256kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
1249925001
result:
ok single line: '1249925001'
Subtask #9:
score: 1
Accepted
Test #61:
score: 1
Accepted
time: 50ms
memory: 12572kb
input:
abaaaaaababbabbaaaabaaabbbbbbabaaabbaaabbbabaabbaabbaabbbaaababbaabbbabbabbbaaabbbabaabbbbbaababaaabaabaabbabbbabbaabaababaabbbabbbbaabababbbaaababbbbaabbbbabbaabababaabababbaaabbbbaaaaabbabbbababababaabababaaabaaaaaaabababbabbabaabaababbbabbaababaaaabaaaabbabbaabaabbababbbbbabbbabbaaaaabaaaabbaabab...
output:
25942642
result:
ok single line: '25942642'
Test #62:
score: 0
Accepted
time: 50ms
memory: 12564kb
input:
baabbabbbbbbaabbabbaababbaabbbbaaababaaaaabbabbbaabbaaabaaaababaabbaabaabbabbbabaabaabbabaaabaabbabbabbbababaaabbbabaabababaaaaaaababbbbbaabbaaaaaaaaaabaaabababbbaababbbaabbababbaabbbabbbbabbaabbabbbbaaabbaaababaabaabaabbbabbaaababbbabaababbbbbbbabbabababbaaabbbbaaabbaaabbabaabaabbbaaabaaabababbabab...
output:
8020029
result:
ok single line: '8020029'
Test #63:
score: 0
Accepted
time: 27ms
memory: 11108kb
input:
abbbbbbbbbabbabababbaaabbbbbababbabbbaaabbbababbbbaaabaaabaabbbbabbabbbabbabbabbabbabaabbbbabbbabaababbbbbabbabaabbbbbbbbbbbbbbaaabbbbabbabbababbbabbbabaabbabbbbbbabbbbbbabbbbbbabaabbbabbbbbbabbbaababbbabbbbabbbbbbbaabbbbbbabbbbbababbbbbbbbbbbbabbabbbbbabbababbbbbaaabbbbbbbbabbbbaabbbababaabbbabbbab...
output:
-1
result:
ok single line: '-1'
Test #64:
score: 0
Accepted
time: 62ms
memory: 14916kb
input:
aaabbaaaaaaabaaaaaaaaaaaaaabaabaaabaaaaabaaaaaabaaaabbaabaabaaaabaabaaaaaaabaaaaabaaaaaaaaaaabaaabaaaaaaaaaaaaaaabaaaaaaaaaaaabbaaaaababbaaaaaabaaaaabaaaaaaaaaaaabaaaaaaaabababaaaaabaabaaabaaaaaabaaaaaaabaaaaaaaaaaaaaabaaaaaabaabbaabaaaaaaaaaabaaabaabaabaaabaabaaaaaaaaabaaaabaaaaaaaaaaaaaaaaabaaaaaa...
output:
9848862
result:
ok single line: '9848862'
Test #65:
score: 0
Accepted
time: 32ms
memory: 11136kb
input:
bbbbbbabbbbbbbbababbababbbbbbbbbbbbbbbbbbbbababbbbbabbbbabaabbbbbabbabbabbbababbabbbbaaabaaabbbbabbbbbbaabbbbbbabbbbababbbbbbbbbbabbbbbabbaaabbbbabbabaabbabaababbababbbbbbbaabbabbabbbabbbabbbbbbbbbaabaabbaabbbbbbaabaabbabababbbbaabbbabababbbabaaabaabababbababbaabbbbbbabbbbbabbbbbbbaabaaabbbbbababbab...
output:
-1
result:
ok single line: '-1'
Test #66:
score: 0
Accepted
time: 22ms
memory: 8560kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
-1
result:
ok single line: '-1'
Test #67:
score: 0
Accepted
time: 30ms
memory: 8540kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
583534
result:
ok single line: '583534'
Test #68:
score: 0
Accepted
time: 31ms
memory: 8572kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
0
result:
ok single line: '0'
Test #69:
score: 0
Accepted
time: 48ms
memory: 12708kb
input:
aaaaaaabaaabbbbbbbbaabbbbaaaababababbaabababbbbaabbaaaabbbaaabababaaabbbbaaaababaabbbbbbbbaabbbaabaabbaaaabbaabbabaaabaabaababbbaaaaaaabbbbabbbbbbaabbbabbbabbaababbabbabbaaabbbbbbbbbaaabaaabbababbbabbbaabbaaaaabaaaaabbababaabbbabbabbbaababbbaabbbbbbabababbbaaabaabaabbaaabababaabbabbabaabbaaaaabbabba...
output:
0
result:
ok single line: '0'
Test #70:
score: 0
Accepted
time: 48ms
memory: 12568kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
5000000000
result:
ok single line: '5000000000'
Test #71:
score: 0
Accepted
time: 26ms
memory: 12724kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
-1
result:
ok single line: '-1'
Subtask #10:
score: 1
Accepted
Test #72:
score: 1
Accepted
time: 55ms
memory: 12596kb
input:
abaaabbbbbbbbaababbabbbbababababbbbbbaabaaaaabbabababaaababbbbaaabaabababbaabaabaaabaabaabbaaabbaaaabaaaabbabbbaaaaabbbbbabaabbbaaaaabbbabaaabbbaaaaaaabbbbabbaabbabbbaabaaaababaaaaaaabbabaaabbbababaababaaaabbaabababaaabaaaabababaaaabbbbbbaaabaaabbbbbabbbbbabbabaabbbaabbbababaabbababbaaabbabbbabbbbaa...
output:
4943647
result:
ok single line: '4943647'
Test #73:
score: 0
Accepted
time: 67ms
memory: 12728kb
input:
baaabbabaaaaabbbbaabbabaabaaababbaababababbbaabbbabbbabbabbabbaabbbababbbbabbabbabbabbbabbaaabbabaabbbbbbbaabbabababaabaabbaabaaabbaaaabaaabbbbaaabaabbbabababbaabbabbaabbabbbaabaaaabaaabaaaababaababbbaaaaaabaabababbbbbaababaaabbbaaabbabbabbaaaaabababaaabbbbbabbaaaaaaaababbababbaaaaabbabaaaaababbbabb...
output:
9958129
result:
ok single line: '9958129'
Test #74:
score: 0
Accepted
time: 80ms
memory: 15304kb
input:
aaabaaaaaaaaaaaaaaaaabaaaaabaaabaaaabaaaaaaaaabaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaabaaabaabaaaaaaaaaaababaaaaaaaaabaaaaaaaaaaaababaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaabaaaaaaaaaaaaabaaaaaaabaabaaaaaaaaaa...
output:
7071826
result:
ok single line: '7071826'
Test #75:
score: 0
Accepted
time: 29ms
memory: 11100kb
input:
bbbabbbaabbaaaabbabbabbbaabbababbababbaaabbaaabbbbbabbbabbabbbbbaaabbbbaabbababbbaaabbababbbbabbabbabbbbbbbabbbbbabaabbbabbbabbababbbbbbbabbbbbbbaaabbbbbbbabbbbbbabaaaabaabbaabbbbbaabbabbbabbabbbbbbabbbbaabbbabbbabbbbbabbbabbbbbbbbbabababbbbbbbbbbbabbbbababbbabaabbbbbabbabbbbbbbbbaabbabbbbbbbabbbbab...
output:
-1
result:
ok single line: '-1'
Test #76:
score: 0
Accepted
time: 36ms
memory: 9708kb
input:
bbbabaababbabbbbbbbbabbbbbabbabbbbbabbbbbbbbbbbbabbbbbbbbbaabbbabbbbbbbbbabbbbabbbbbbbbbbbabbbbbbbbbbababbaabbbabbaabbabbbbbbbbbbbbbbbbabaaaabbbbbbbbbbbbbbbabbbabbbbbbabbbbbbbbbbbbbaababbabbbbabbbbbbbbbabbabbabbbabbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbababbbbbbabbbbbbbabbbbbabbbbbbbbbbbbbbbbbabbbbbbbbabbb...
output:
9665302
result:
ok single line: '9665302'
Test #77:
score: 0
Accepted
time: 82ms
memory: 16696kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
143949
result:
ok single line: '143949'
Test #78:
score: 0
Accepted
time: 66ms
memory: 16604kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
151198
result:
ok single line: '151198'
Test #79:
score: 0
Accepted
time: 73ms
memory: 16524kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
0
result:
ok single line: '0'
Test #80:
score: 0
Accepted
time: 57ms
memory: 12712kb
input:
abbbaaaaaaaaabaabbbabbbaaababbbbababbbbabbbbbaaaaaabbaabaaaabaabaababbbbbbbbaabbaabbbaaababaaaababaaaaabbabbbbaabaaaaaabbbbababaabbabaabaabbaabbbaaabaabaabbbbaabbaaabbbababababbbaabaabbbbababaaaaabbabbaabaaabbbabbaaaaaaabbbbbbabbaabaabbbbabbabaaababbbabababbaababababaabbbbbaaabaabbbaabbaaaaaaabaaaab...
output:
0
result:
ok single line: '0'
Test #81:
score: 0
Accepted
time: 64ms
memory: 12600kb
input:
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
output:
4999950000
result:
ok single line: '4999950000'
Test #82:
score: 0
Accepted
time: 62ms
memory: 12716kb
input:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
output:
4999850001
result:
ok single line: '4999850001'
Extra Test:
score: 0
Extra Test Passed