QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#69065#5212. Palindromlarryzhong2 66ms15408kbPython3298b2022-12-23 13:17:402022-12-23 15:10:39

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 1
Accepted
time: 19ms
memory: 8304kb

input:

b

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 6ms
memory: 8280kb

input:

bb

output:

0

result:

ok single line: '0'

Test #3:

score: 0
Accepted
time: 14ms
memory: 8276kb

input:

aaaabbaaba

output:

-1

result:

ok single line: '-1'

Test #4:

score: 0
Accepted
time: 11ms
memory: 8284kb

input:

abbbbaaaabbb

output:

-1

result:

ok single line: '-1'

Test #5:

score: 0
Accepted
time: 10ms
memory: 8364kb

input:

aaaabbababbabb

output:

-1

result:

ok single line: '-1'

Test #6:

score: 0
Accepted
time: 8ms
memory: 8356kb

input:

bbbbbbbbbbbbbbb

output:

0

result:

ok single line: '0'

Test #7:

score: -1
Wrong Answer
time: 12ms
memory: 8240kb

input:

bbbbbbbbaaaaaaa

output:

27.5

result:

wrong answer 1st lines differ - expected: '28', found: '27.5'

Subtask #2:

score: 0
Wrong Answer

Test #9:

score: 0
Wrong Answer
time: 13ms
memory: 8428kb

input:

a

output:

0.5

result:

wrong answer 1st lines differ - expected: '0', found: '0.5'

Subtask #3:

score: 1
Accepted

Test #17:

score: 1
Accepted
time: 18ms
memory: 8276kb

input:

bbbbaaaaabbbbabbaaabaababbabaaaabbbabbbaabbbabaaaabbbbaaababbaaabbabbbaabbaabaabbbababbabaabbbabbba

output:

70

result:

ok single line: '70'

Test #18:

score: 0
Accepted
time: 14ms
memory: 8424kb

input:

baabbaabaaabbabbaababbababbaabbabaabaaabbbbbaabbababbbabababbabbbaaaababbbbbbbbbaabbbabbbaaaabbbbbaa

output:

-1

result:

ok single line: '-1'

Test #19:

score: 0
Accepted
time: 9ms
memory: 8284kb

input:

babaaababbbbbaabbbbabbbbabbbbbbabbbbaabbbbbbabbbbbbbabbababaabbbbabbbbabaababbabbabaab

output:

-1

result:

ok single line: '-1'

Test #20:

score: 0
Accepted
time: 11ms
memory: 8276kb

input:

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

output:

1250

result:

ok single line: '1250'

Test #21:

score: 0
Accepted
time: 8ms
memory: 8284kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

output:

-1

result:

ok single line: '-1'

Subtask #4:

score: 0
Wrong Answer

Test #22:

score: 0
Wrong Answer
time: 22ms
memory: 8288kb

input:

bbabaabaaabaababaabbaabababaaabaaabbbaaaababababbaababaabbbbbbbbaaabbabbaabbabaaabbbabbbaaaabaaab

output:

110.5

result:

wrong answer 1st lines differ - expected: '110', found: '110.5'

Subtask #5:

score: 1
Accepted

Test #27:

score: 1
Accepted
time: 14ms
memory: 8284kb

input:

ababbaabbbababaabbbbbbbaabbbbabbbbaabbababbbbababbbabbaababaabbababaabbbaaaaaaaaabbaabbabbabbaabaabaabbabbaababbababaaabababaaabbababaaaaabbbbababaabbbbbaabaabbaaabbbbbaaaabbaababababbbaabaabaabbbbbbbababbbbbaabaaababbbaabbabaaabbbababaaabbabbabbababababbbbbabaaaabbbbaaaabbbaaabaabaaabbbaaaabaaabbab...

output:

-1

result:

ok single line: '-1'

Test #28:

score: 0
Accepted
time: 20ms
memory: 8408kb

input:

bbabbbbaabbbbbbbbaabbabbaabbbbbbbbbabbbbbabaaaaaaabbbbaabbabaabaabaaabbbaaabaabaaaabbabbabbbbaaabababaababaaabaabbbbaabbbbbabbbbaaaaaaaabaabaababbabbbababbbaabbaaabbabaaabbbaaaaabbabbbabaaaabababbbbabbaabababaabbbaaaaaababaaaaaababbbbbaaabbbaaabbbbaabbaababbbaabbbbbbbababbababaaaaababaaababbbababbbb...

output:

12146

result:

ok single line: '12146'

Test #29:

score: 0
Accepted
time: 9ms
memory: 8284kb

input:

abbabbbbabbabaabbbbabbabababbbbbabbbbbbabababaabbbbbbbbbbbbbbbbbababaababbabbbbbbabbabbbbbbbbbbbbabbbbbbbbbbbbbbbabaaabbabbbbabbbbbbbbbbbbbaabbbbbababbaababbababaabbbababbabbbabbbbbbbbbbbbbbbbbabbbbbbbbbbbbbabbbbbabbbbbbbbbaabbabbbaabbbbbbbbbbbbbbbbbababbbbbbbbbabbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbabbb...

output:

-1

result:

ok single line: '-1'

Test #30:

score: 0
Accepted
time: 9ms
memory: 8408kb

input:

ababbaabaabbbaaaaaaabaaaaaaaaaaaaaababaaaabaaaabaaaaabaaababbaaaaaaaaabababbaabaaaaaaaaaaaaaaaaaaaaaabaaaabaaaaaaaaabababaaabaaaaaaaaabbaaaabaaaaaaabaaaaaaaaaaaaaaabaabbbbaaabbaabaaaaaaabaaabaaaaaaaaaaabababaaaabaabaaabaaaaaaaaaabaaaaaaabbaababbbbaaaaaaaaaaabbaaaaaaaaabbbabaaaaaaabbaaaabaaabbaaabbba...

output:

34493

result:

ok single line: '34493'

Test #31:

score: 0
Accepted
time: 10ms
memory: 8372kb

input:

abbaaaaaaaababaaabbaaabbabaaaaaaaaaaaaaaabaaaabaaaaaabaaaaaabaaaaabaaaaaaababaaaabaaabbbaaabbaaabbaaaaaaaaaaabaaaababaaaaabaabaaaaabbaaaaaaabaaaaaaaaaaabbaaaaaaabaabbabbaaaaaaaaaaaaaaaababaaabaaaaaabbaaababaaabaaabbaaaaaaaababaaabaaaaaaaaaaabaaaaaaaaabaabaaaababbaabbaabaaaaaaaabbaaabaaaaaaaaaaaaaaba...

output:

7781

result:

ok single line: '7781'

Test #32:

score: 0
Accepted
time: 8ms
memory: 8348kb

input:

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

1125000

result:

ok single line: '1125000'

Test #33:

score: 0
Accepted
time: 15ms
memory: 8376kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

-1

result:

ok single line: '-1'

Subtask #6:

score: 0
Wrong Answer

Test #34:

score: 1
Accepted
time: 14ms
memory: 8280kb

input:

ababbabbbabaaaabaababbaabbabbbbbbabbbaaabaaabbaaababbbbabbaabbbaaaabababbbbbbbbaaabbabbabbbaaabbbbbbbaaaaaaaaaaabbbaabbbbaaaabaababbabaabbbaaaaaaababbbbbbbbaabaabbbbaabaaababbbbbababbbaabaababaabaabababbbabbaaaaaaaabaabaaaaabbbaaabbaabababaabababbaabaaaabbabaabbababaababaaaaabbaaaabaaabaabaabaabbabb...

output:

-1

result:

ok single line: '-1'

Test #35:

score: -1
Wrong Answer
time: 12ms
memory: 8352kb

input:

baaaabaaabbbbaabaaaaabbbaabbbabbbbabbaabbbbbbaaababaabbababbababbbaabbababbbbaabaaabbbbbbabbabbabbaaababbabbaabbaaaabaabaabbbbabaaaaabbbbbaaaaabaabbaabbbbbbbabbbababaaaabaabaaaabaaaaabbbaabaabaabababababbabaabbabbbababbaabbbaaababaaaaaabbbbbbaabaaaaabaaabbbbaabbaaaabbbabaabbaaaaabbaabbabaaaabbabbbbb...

output:

8804.5

result:

wrong answer 1st lines differ - expected: '8804', found: '8804.5'

Subtask #7:

score: 0
Wrong Answer

Test #41:

score: 1
Accepted
time: 32ms
memory: 10268kb

input:

aabbbbbbbabaaabaabaaaaababababaabbaaaaabbaabbbababaabbaaabbabababbaabbababbbababaabbbabbaabbaaaabbaabbbaabbbaabbbbbbbaabaaaabbaabababbbbbabbaabbabaaaaabaaabbaabababaababbbbbbabbaabbbabbababbabaababbbbaabbabaabbbaabbaabaaaababbbabaababaabbaabbabaababbbaabbbbaabbaaaabbbbbbaabaabaaaaaabaabaabbabbbabbbb...

output:

-1

result:

ok single line: '-1'

Test #42:

score: 0
Accepted
time: 41ms
memory: 10208kb

input:

babbaaaaabaabbbbabbbaaabaaaabbbabbbbbaaaaabaaaaaaaabbabbabbaaaaabbaaaaaaabbaabbbbbababbaabbabaaababbaabaaaabaaabababbbbbbababbbbabbbaabbaaababbbaaababaabbaaaababaaaabaaaabbabbbbbbabbaaabbbbbaabaaaabbbabbbbbaaabaabbbbbbabbaaaaabbaaabbabaabaabbabbaabaaabbabbbbaaabbaabbbbabbbabbbabbabbbabaaaaaaaabaaaba...

output:

7653087

result:

ok single line: '7653087'

Test #43:

score: -1
Wrong Answer
time: 31ms
memory: 11836kb

input:

abaababaaaaaaaaaaaaaaabaaaaaaaaaaabbaaaabaaaaaaaaaaaaaaaabaabaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaaaaabaaaaaaabaaaaaaabbaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaabaaabaaaaaaababaaaaaaaabaaaaaaaaaaaaaaaaaaabaaaabaaaaaaaaaaaaabaaaaaabaaaaaaaaaaaaaaaaabaaabaaaaaaaaaab...

output:

1284055.5

result:

wrong answer 1st lines differ - expected: '1284055', found: '1284055.5'

Subtask #8:

score: 0
Wrong Answer

Test #51:

score: 1
Accepted
time: 36ms
memory: 10420kb

input:

bbaabbbaabbbbbbaaabaabbabbaaabbaabaabbbaabbbbaababbaaaaababbabbbbaaaabbbabbbbbbbbbbaababaaababbabababbbabbaabbababbbbbabbbabbaaaaaabbabbbbbbbaabababbbaabaababbbbbabbababaababbbbbabaaaabbbbaaabababaababaaaaabbabaaababababbababaaaaabbaaababaaabaabaaabbbbbbababbbbaabaaababbabaabaabbabababaaaabaabbaaabb...

output:

5352746

result:

ok single line: '5352746'

Test #52:

score: 0
Accepted
time: 24ms
memory: 10404kb

input:

abaaababbbbbaababbabaabbbabbbbbbaaabbbaabbaababababababbaaabaabababbaabbabbbabbabbbbbbabababbabaabbbabbbabbbbaabbbabaababbaabababbaababababbabbbaaaaaaabaabbbbaaaaabaababaabbaaaaabbaaabbaabbbbabbbbbbaaabbaaaaabbabbaabaaaaabaaaabbabbbabbabbbbbbbbbaabbbabaaabbbbbbaaaaabbabbbaabbbabbabaaababbaabaabaaaba...

output:

3507753

result:

ok single line: '3507753'

Test #53:

score: 0
Accepted
time: 34ms
memory: 11860kb

input:

aaaaabaaaaaaaaaaaaaaaaabaaaaaaaabaaaaaaaaaaaaabbbaaaaaaaaaaaaaabbabaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaabaaaaaaaaaaaaaabaaaaabaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaabbabaaabaaaaaabaaaaaaaaaaaaaaaaaaaabaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab...

output:

-1

result:

ok single line: '-1'

Test #54:

score: 0
Accepted
time: 30ms
memory: 9472kb

input:

bbabaaabbbbbabbbabbbbbbbbaaabbbababbabbbbbbbbbabbbbbaabbbbbababbbababbabbabbbbabababbbabbbbbbbbbabbabbbbbbaabbabbbbbbbbbabbbbbabbababbbbbabbabbabbabaabbbbbbabbbbabbbaaabaaabbabbbbbbabaababbabbbaabababbbbbabbabbbbbbbbabbbbbbabbbabbbbbbbbbaabbbaabbbbbbbbbbbbbbbbababababbbabbbbbaaabbbbabbabbaabbbababbb...

output:

-1

result:

ok single line: '-1'

Test #55:

score: 0
Accepted
time: 18ms
memory: 10428kb

input:

abbabbaabbbaabbbabaaabaaaabaababbbabaaaababbaabababbaabbababbaaababababababbbabbabbbabababaabaaaaabbabaabaaaabbbbabbaababaabaabbaababaababbabaaababaabbbbabbbbbaabbababaaaaabaaabbaabababbaabbaabbbababbbabaababbabababbbbbabaaaabbbbbabbabbaaaaaaabaaaaabbbababaaabbbabaaaaabbbbbabbaaaabbaabbabbbabbbbbbaa...

output:

-1

result:

ok single line: '-1'

Test #56:

score: 0
Accepted
time: 22ms
memory: 8332kb

input:

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

154526

result:

ok single line: '154526'

Test #57:

score: 0
Accepted
time: 21ms
memory: 8524kb

input:

bbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

output:

-1

result:

ok single line: '-1'

Test #58:

score: -1
Wrong Answer
time: 26ms
memory: 10348kb

input:

bbbabbaabbbbaabbbbabbaabbbabababbabbbaabbbbbabbbabababbbbababbbbaaabbbbabbaabbbbababbbabbbbabbbabbbbaaabbbaabaabaaaaaababaaaababbbbbabbabbbbaabbbababbbaabbbaabbaaababbaaaaababbaaaababaabaababaaaabbbbbaaababaaaabaabbbbabbbaaaabbbabaaaaabbbababbabababbaabbabaabaaabbaaaabbbababbbbbabbbbaaaabbabaaaaabba...

output:

0.5

result:

wrong answer 1st lines differ - expected: '0', found: '0.5'

Subtask #9:

score: 0
Wrong Answer

Test #61:

score: 1
Accepted
time: 51ms
memory: 12620kb

input:

abaaaaaababbabbaaaabaaabbbbbbabaaabbaaabbbabaabbaabbaabbbaaababbaabbbabbabbbaaabbbabaabbbbbaababaaabaabaabbabbbabbaabaababaabbbabbbbaabababbbaaababbbbaabbbbabbaabababaabababbaaabbbbaaaaabbabbbababababaabababaaabaaaaaaabababbabbabaabaababbbabbaababaaaabaaaabbabbaabaabbababbbbbabbbabbaaaaabaaaabbaabab...

output:

25942642

result:

ok single line: '25942642'

Test #62:

score: 0
Accepted
time: 55ms
memory: 12564kb

input:

baabbabbbbbbaabbabbaababbaabbbbaaababaaaaabbabbbaabbaaabaaaababaabbaabaabbabbbabaabaabbabaaabaabbabbabbbababaaabbbabaabababaaaaaaababbbbbaabbaaaaaaaaaabaaabababbbaababbbaabbababbaabbbabbbbabbaabbabbbbaaabbaaababaabaabaabbbabbaaababbbabaababbbbbbbabbabababbaaabbbbaaabbaaabbabaabaabbbaaabaaabababbabab...

output:

8020029

result:

ok single line: '8020029'

Test #63:

score: 0
Accepted
time: 41ms
memory: 10984kb

input:

abbbbbbbbbabbabababbaaabbbbbababbabbbaaabbbababbbbaaabaaabaabbbbabbabbbabbabbabbabbabaabbbbabbbabaababbbbbabbabaabbbbbbbbbbbbbbaaabbbbabbabbababbbabbbabaabbabbbbbbabbbbbbabbbbbbabaabbbabbbbbbabbbaababbbabbbbabbbbbbbaabbbbbbabbbbbababbbbbbbbbbbbabbabbbbbabbababbbbbaaabbbbbbbbabbbbaabbbababaabbbabbbab...

output:

-1

result:

ok single line: '-1'

Test #64:

score: -1
Wrong Answer
time: 66ms
memory: 14856kb

input:

aaabbaaaaaaabaaaaaaaaaaaaaabaabaaabaaaaabaaaaaabaaaabbaabaabaaaabaabaaaaaaabaaaaabaaaaaaaaaaabaaabaaaaaaaaaaaaaaabaaaaaaaaaaaabbaaaaababbaaaaaabaaaaabaaaaaaaaaaaabaaaaaaaabababaaaaabaabaaabaaaaaabaaaaaaabaaaaaaaaaaaaaabaaaaaabaabbaabaaaaaaaaaabaaabaabaabaaabaabaaaaaaaaabaaaabaaaaaaaaaaaaaaaaabaaaaaa...

output:

9848861.5

result:

wrong answer 1st lines differ - expected: '9848862', found: '9848861.5'

Subtask #10:

score: 0
Wrong Answer

Test #72:

score: 1
Accepted
time: 43ms
memory: 12696kb

input:

abaaabbbbbbbbaababbabbbbababababbbbbbaabaaaaabbabababaaababbbbaaabaabababbaabaabaaabaabaabbaaabbaaaabaaaabbabbbaaaaabbbbbabaabbbaaaaabbbabaaabbbaaaaaaabbbbabbaabbabbbaabaaaababaaaaaaabbabaaabbbababaababaaaabbaabababaaabaaaabababaaaabbbbbbaaabaaabbbbbabbbbbabbabaabbbaabbbababaabbababbaaabbabbbabbbbaa...

output:

4943647

result:

ok single line: '4943647'

Test #73:

score: 0
Accepted
time: 54ms
memory: 12724kb

input:

baaabbabaaaaabbbbaabbabaabaaababbaababababbbaabbbabbbabbabbabbaabbbababbbbabbabbabbabbbabbaaabbabaabbbbbbbaabbabababaabaabbaabaaabbaaaabaaabbbbaaabaabbbabababbaabbabbaabbabbbaabaaaabaaabaaaababaababbbaaaaaabaabababbbbbaababaaabbbaaabbabbabbaaaaabababaaabbbbbabbaaaaaaaababbababbaaaaabbabaaaaababbbabb...

output:

9958129

result:

ok single line: '9958129'

Test #74:

score: -1
Wrong Answer
time: 63ms
memory: 15408kb

input:

aaabaaaaaaaaaaaaaaaaabaaaaabaaabaaaabaaaaaaaaabaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaabaaabaabaaaaaaaaaaababaaaaaaaaabaaaaaaaaaaaababaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaabbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaabaaaaaaaaaaaaabaaaaaaabaabaaaaaaaaaa...

output:

7071825.5

result:

wrong answer 1st lines differ - expected: '7071826', found: '7071825.5'