QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#29901#2915. Reversibly Cyclic StringsGeorge_Plover#AC ✓30ms8420kbPython3135b2022-04-23 13:13:502022-04-28 15:59:19

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-04-28 15:59:19]
  • 评测
  • 测评结果:AC
  • 用时:30ms
  • 内存:8420kb
  • [2022-04-23 13:13:50]
  • 提交

answer

s = input()
n = len(s)
r = s[::-1]
if (s + s).find(r[:-2]) != -1 and (s + s).find(r[1:]) != -1:
    print(1)
else:
    print(0)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 14ms
memory: 8368kb

input:

cvakiibcevpyphrbrzimwykmtkwrpimazmjknexwmbbzdflqzqkcvduypowelrlnykoqfxeypxkhrrqlhtkuaykxzyyqhvffjdugoahsxqqbecvrsgtrhjbxaxujjlramthxjvhzbbzhvjxhtmarljjuxaxbjhrtgsrvcebqqxshaogudjffvhqyyzxkyaukthlqrrhkxpyexfqokynlrlewopyudvckqzqlfdzbbmwxenkjmzamiprwktmkywmizrbrhpypvecbiikavcnpxyoazsxgbsarnkyfqykgozgp...

output:

0

result:

ok single line: '0'

Test #2:

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

input:

bwxovdkurrgykbkveftuluxhtssthxulutfevkbkygrrukdvoxwbflmhnqmlyuygojvrmzuzszztxiiqoqhkatkjmnrkmdaloqggsmvqvpvnaobxzciinlobamhhjulzmtsostugqktgwxjnwfrnuuvoxjaoyucalzawzsxhftdvygntmhetvunieacrcmnejliewhtmxrjlfflutenzmrdrveyzqobzhsslcbvxafrawedvtkxurnijfqiialqimvghpecleiwsllkmlermcivedaxdrnqhmbcujuomatpd...

output:

1

result:

ok single line: '1'

Test #3:

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

input:

hgyielrkiwpqdoxvaadvacrbotbvxzeoemwfwsdlrsbniivmsgujaappuotkuailszbeashpiuskaeblkvwxmnntouuesbenrmkxkuhvqzqjxnkdqfapnihzduwtnqttqntwudzhinpafqdknxjqzqvhukxkmrnebseuuotnnmxwvklbeaksuiphsaebzsliauktouppaajugsmviinbsrldswfwmeoezxvbtobrcavdaavxodqpwikrleiyghrbmyjufywykoioypjuywdszyvaxrofwmaeqggfqxtmuchl...

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 0ms
memory: 8224kb

input:

pujlzbyaxxycurudibcoqqyezsanslgumbxvavnbvlixiftymblwhwyisfcsexicdfbuqdwtfxtoxjyobmavmfjzmvmyjrxumjapmbjmenoqdlqvjodcvaxwehjeildehlzhcjucryshusbbuntfhhkpasqdfektwaxiiwvhbzvncdklagjnjhupuhjnjgalkdcnvzbhvwiixawtkefdqsapkhhftnubbsuhsyrcujchzlhedliejhewxavcdojvqldqonemjbmpajmuxrjymvmzjfmvamboyjxotxftwdqu...

output:

0

result:

ok single line: '0'

Test #5:

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

input:

babbabaaabaabaabbbaabbbbaaaaaabaaaaabbbbabbbabbbabaaabaabbabbbbabbabbbbaaabaaaaabaaaaaabbbbaaababaabaaaaaaaaabaabbaabbbaabbaabaaaaaaaaabaababaaabbbbaaaaaabaaaaabaaabbbbabbabbbbabbaabaaababbbabbbabbbbaaaaabaaaaaabbbbaabbbaabaabaaababbabbbaababbbbaaabaaaabbbbabbabbbbbbbaaabaabbbababbbabaabbaababaaabbb...

output:

0

result:

ok single line: '0'

Test #6:

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

input:

aaaaabbbbabaabbaabbbaaaabbbbbabbbbabbbbbbaabaabaaabbbaabaaabbbbbbbabbabbababbbabaaabbabababbbbbaaaaaaabababbabbbbbaababaabbbabbbabaaababbabbbbbbabbbbbaaaabbbbabaaabaababaaaabbabbbaaaabbbbbabaababbaaaaaababbaaaabaabbabaaabbbabaabbaaabbababbbababbabbabaababbbabaaabbbbababbbbaaababbbabaababbabbababbbab...

output:

0

result:

ok single line: '0'

Test #7:

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

input:

bbaabbaabbaabbaaaabbababbabaabababbbbbbbaaaabbbbbbbababaababbababbaaaabbaabbaabbaabbaababaaabbbbabbbaabbabaabbaabbabaaaaaaabbaabaaaabbbbaaaabbabbbabababbaaabababbabaababbbaaabbbaabaabaaaaababbabbbaabbabbbaabbbaaaaabbaaaababababaabbaabbbbbbababaaaabaaabbababbbbaaaaaaabaaaabbaabbabababaabbabbbbbbbaaab...

output:

0

result:

ok single line: '0'

Test #8:

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

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

1

result:

ok single line: '1'

Test #9:

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

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

1

result:

ok single line: '1'

Test #10:

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

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

1

result:

ok single line: '1'

Test #11:

score: 0
Accepted
time: 19ms
memory: 8264kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

1

result:

ok single line: '1'

Test #12:

score: 0
Accepted
time: 28ms
memory: 8248kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

output:

1

result:

ok single line: '1'

Test #13:

score: 0
Accepted
time: 29ms
memory: 8368kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaa

output:

1

result:

ok single line: '1'

Test #14:

score: 0
Accepted
time: 5ms
memory: 8320kb

input:

ddfebcfcbef

output:

1

result:

ok single line: '1'

Test #15:

score: 0
Accepted
time: 17ms
memory: 8232kb

input:

ddfeubcfcbef

output:

0

result:

ok single line: '0'

Test #16:

score: 0
Accepted
time: 7ms
memory: 8260kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

output:

1

result:

ok single line: '1'

Test #17:

score: 0
Accepted
time: 12ms
memory: 8420kb

input:

aaaaaaaaawaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

output:

1

result:

ok single line: '1'

Test #18:

score: 0
Accepted
time: 5ms
memory: 8264kb

input:

abbbbabab

output:

1

result:

ok single line: '1'

Test #19:

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

input:

abbbabab

output:

1

result:

ok single line: '1'

Test #20:

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

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

output:

1

result:

ok single line: '1'

Test #21:

score: 0
Accepted
time: 16ms
memory: 8252kb

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaayaaaaaaaaaaaaaaaaaa

output:

1

result:

ok single line: '1'

Test #22:

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

input:

babbabaaaaa

output:

1

result:

ok single line: '1'

Test #23:

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

input:

bablabaaaaa

output:

0

result:

ok single line: '0'

Test #24:

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

input:

baaabbababab

output:

1

result:

ok single line: '1'

Test #25:

score: 0
Accepted
time: 12ms
memory: 8224kb

input:

baabbababab

output:

1

result:

ok single line: '1'

Test #26:

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

input:

baabcac

output:

1

result:

ok single line: '1'

Test #27:

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

input:

baabucac

output:

0

result:

ok single line: '0'

Test #28:

score: 0
Accepted
time: 25ms
memory: 8252kb

input:

bbababbaabbbabbbbabbbaa

output:

1

result:

ok single line: '1'

Test #29:

score: 0
Accepted
time: 13ms
memory: 8272kb

input:

bbababbaabbbabbbbabbbfa

output:

0

result:

ok single line: '0'

Test #30:

score: 0
Accepted
time: 16ms
memory: 8420kb

input:

acdcdcaaaa

output:

1

result:

ok single line: '1'

Test #31:

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

input:

acdcdcaawaa

output:

0

result:

ok single line: '0'

Test #32:

score: 0
Accepted
time: 17ms
memory: 8268kb

input:

decedcbc

output:

1

result:

ok single line: '1'

Test #33:

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

input:

decedcb

output:

0

result:

ok single line: '0'

Test #34:

score: 0
Accepted
time: 7ms
memory: 8324kb

input:

cabcbccbccbcba

output:

1

result:

ok single line: '1'

Test #35:

score: 0
Accepted
time: 17ms
memory: 8340kb

input:

cabcbccbccbcbr

output:

0

result:

ok single line: '0'

Test #36:

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

input:

bcdabadcb

output:

1

result:

ok single line: '1'

Test #37:

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

input:

bcdaadcb

output:

1

result:

ok single line: '1'

Test #38:

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

input:

aeaafdddfa

output:

1

result:

ok single line: '1'

Test #39:

score: 0
Accepted
time: 7ms
memory: 8316kb

input:

aeaafdddf

output:

0

result:

ok single line: '0'

Test #40:

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

input:

cbbbaabbaabbbcbcacb

output:

1

result:

ok single line: '1'

Test #41:

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

input:

cbbbaabbaabbbcbcaccb

output:

0

result:

ok single line: '0'

Test #42:

score: 0
Accepted
time: 3ms
memory: 8248kb

input:

caaacdbdaadbd

output:

1

result:

ok single line: '1'

Test #43:

score: 0
Accepted
time: 3ms
memory: 8248kb

input:

caacdbdaadbd

output:

1

result:

ok single line: '1'

Test #44:

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

input:

ababbbbbbbbbbbbbababbbaabbb

output:

1

result:

ok single line: '1'

Test #45:

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

input:

ababbbbbbbbbbbubababbbaabbb

output:

0

result:

ok single line: '0'

Test #46:

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

input:

baabbbbbbbbaaabbaaabbbbbbbbaabbb

output:

1

result:

ok single line: '1'

Test #47:

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

input:

baabbbbbbbbdaabbaaabbbbbbbbaabbb

output:

0

result:

ok single line: '0'

Test #48:

score: 0
Accepted
time: 26ms
memory: 8252kb

input:

bcadebedacbada

output:

1

result:

ok single line: '1'

Test #49:

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

input:

bcadebedycbada

output:

0

result:

ok single line: '0'

Test #50:

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

input:

bbacabbaabbacabbaaaaa

output:

1

result:

ok single line: '1'

Test #51:

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

input:

bbacabbaabbacabgbaaaaa

output:

0

result:

ok single line: '0'

Test #52:

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

input:

fgehdhhhdhegfaa

output:

1

result:

ok single line: '1'

Test #53:

score: 0
Accepted
time: 19ms
memory: 8240kb

input:

fgehjhhhdhegfaa

output:

0

result:

ok single line: '0'

Test #54:

score: 0
Accepted
time: 12ms
memory: 8316kb

input:

abbbbbabaabaabaabaababbbbbabbbbbb

output:

1

result:

ok single line: '1'

Test #55:

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

input:

abbbbbabaababaabaababbbbbabbbbbb

output:

0

result:

ok single line: '0'

Test #56:

score: 0
Accepted
time: 28ms
memory: 8248kb

input:

accdbabdccaaca

output:

1

result:

ok single line: '1'

Test #57:

score: 0
Accepted
time: 17ms
memory: 8344kb

input:

acqdbabdccaaca

output:

0

result:

ok single line: '0'

Test #58:

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

input:

caacfefcfcfcfef

output:

1

result:

ok single line: '1'

Test #59:

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

input:

cacfefcfcfcfef

output:

1

result:

ok single line: '1'

Test #60:

score: 0
Accepted
time: 16ms
memory: 8248kb

input:

baabbbaaabaabababaabbbbbbbbbbbaabababaabaaabb

output:

1

result:

ok single line: '1'

Test #61:

score: 0
Accepted
time: 16ms
memory: 8220kb

input:

baabbbaaabaabababaabbbbbbbbbbaabababaabaaabb

output:

1

result:

ok single line: '1'

Test #62:

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

input:

dccdbbadbaaabdabb

output:

1

result:

ok single line: '1'

Test #63:

score: 0
Accepted
time: 13ms
memory: 8316kb

input:

dcudbbadbaaabdabb

output:

0

result:

ok single line: '0'

Test #64:

score: 0
Accepted
time: 17ms
memory: 8324kb

input:

ccccabcaabbacabacabbaacba

output:

1

result:

ok single line: '1'

Test #65:

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

input:

ccccabcaabbacabacabaacba

output:

0

result:

ok single line: '0'

Test #66:

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

input:

ebbbeceadbbdaec

output:

1

result:

ok single line: '1'

Test #67:

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

input:

ebbxbeceadbbdaec

output:

0

result:

ok single line: '0'

Test #68:

score: 0
Accepted
time: 13ms
memory: 8316kb

input:

gcfebefcgjhj

output:

1

result:

ok single line: '1'

Test #69:

score: 0
Accepted
time: 23ms
memory: 8236kb

input:

gchebefcgjhj

output:

0

result:

ok single line: '0'

Test #70:

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

input:

bbabdddacacacadddbabbc

output:

1

result:

ok single line: '1'

Test #71:

score: 0
Accepted
time: 4ms
memory: 8316kb

input:

bbabdddacaccacadddbabbc

output:

1

result:

ok single line: '1'

Test #72:

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

input:

fcdgdcfdbfgggfbd

output:

1

result:

ok single line: '1'

Test #73:

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

input:

fcddcfdbfgggfbd

output:

1

result:

ok single line: '1'

Test #74:

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

input:

ccdedccddebcacbedd

output:

1

result:

ok single line: '1'

Test #75:

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

input:

ccdedccddebcacbehdd

output:

0

result:

ok single line: '0'

Test #76:

score: 0
Accepted
time: 7ms
memory: 8252kb

input:

babaaababbabaaababaabababbababbbabbabbbababbababaa

output:

1

result:

ok single line: '1'

Test #77:

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

input:

babaaababbabaaababaabababbababbbabbabbbababbababar

output:

0

result:

ok single line: '0'

Test #78:

score: 0
Accepted
time: 12ms
memory: 8344kb

input:

abacaaacabaccaccbcccbccacc

output:

1

result:

ok single line: '1'

Test #79:

score: 0
Accepted
time: 19ms
memory: 8256kb

input:

abacaaacaaccaccbcccbccacc

output:

0

result:

ok single line: '0'

Test #80:

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

input:

eeefgbcgdgggdgcbgf

output:

1

result:

ok single line: '1'

Test #81:

score: 0
Accepted
time: 1ms
memory: 8264kb

input:

eefgbcgdgggdgcbgf

output:

1

result:

ok single line: '1'

Test #82:

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

input:

babacbbcbcaaacbcbbcababbbbb

output:

1

result:

ok single line: '1'

Test #83:

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

input:

babacbbcbcaaacbcbbcababbbhbb

output:

1

result:

ok single line: '1'

Test #84:

score: 0
Accepted
time: 12ms
memory: 8232kb

input:

cabcbdbbdbcbacbcbdbdbcb

output:

1

result:

ok single line: '1'

Test #85:

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

input:

cacbdbbdbcbacbcbdbdbcb

output:

0

result:

ok single line: '0'

Test #86:

score: 0
Accepted
time: 12ms
memory: 8248kb

input:

rbobrekhaahke

output:

1

result:

ok single line: '1'

Test #87:

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

input:

rbobrkhaahke

output:

0

result:

ok single line: '0'

Test #88:

score: 0
Accepted
time: 29ms
memory: 8260kb

input:

accbbccaaaccbbbcbbcacbbcbbbccaa

output:

1

result:

ok single line: '1'

Test #89:

score: 0
Accepted
time: 19ms
memory: 8252kb

input:

accbbccaaaccbbbcbbcacbkcbbbccaa

output:

0

result:

ok single line: '0'

Test #90:

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

input:

mbealaebmjcgcj

output:

1

result:

ok single line: '1'

Test #91:

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

input:

mbealaebxjcgcj

output:

0

result:

ok single line: '0'

Test #92:

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

input:

aaddaaaddaaaaacbbabbcaaa

output:

1

result:

ok single line: '1'

Test #93:

score: 0
Accepted
time: 12ms
memory: 8368kb

input:

aaddaaaddaaaaacbbakbbcaaa

output:

0

result:

ok single line: '0'

Test #94:

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

input:

ddebbeddadbaccfccabda

output:

1

result:

ok single line: '1'

Test #95:

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

input:

ddebbeddadbaccfcabda

output:

0

result:

ok single line: '0'

Test #96:

score: 0
Accepted
time: 16ms
memory: 8224kb

input:

ddcgeaegcddfbbbf

output:

1

result:

ok single line: '1'

Test #97:

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

input:

ddcgeaegcddybbbf

output:

0

result:

ok single line: '0'

Test #98:

score: 0
Accepted
time: 7ms
memory: 8212kb

input:

accbbdedcdedbbccaebe

output:

1

result:

ok single line: '1'

Test #99:

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

input:

accbbdedcddbbccaebe

output:

0

result:

ok single line: '0'

Test #100:

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

input:

bbbbaccbcacaaababaaacacbccabbbbabba

output:

1

result:

ok single line: '1'

Test #101:

score: 0
Accepted
time: 12ms
memory: 8420kb

input:

bbabaccbcacaaababaaacacbccabbbbabba

output:

0

result:

ok single line: '0'

Test #102:

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

input:

cbaabacadacadacadacabaabc

output:

1

result:

ok single line: '1'

Test #103:

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

input:

cbaabacadzcadacadacabaabc

output:

0

result:

ok single line: '0'

Test #104:

score: 0
Accepted
time: 12ms
memory: 8244kb

input:

ghadefhbhfedahgc

output:

1

result:

ok single line: '1'

Test #105:

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

input:

ghadqefhbhfedahgc

output:

0

result:

ok single line: '0'

Test #106:

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

input:

eebecdddddddcebeeeddadde

output:

1

result:

ok single line: '1'

Test #107:

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

input:

eebecddddddcebeeeddadde

output:

1

result:

ok single line: '1'

Test #108:

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

input:

ccca

output:

1

result:

ok single line: '1'

Test #109:

score: 0
Accepted
time: 19ms
memory: 8368kb

input:

eeaafbddfaa

output:

0

result:

ok single line: '0'

Test #110:

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

input:

abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaab...

output:

1

result:

ok single line: '1'

Test #111:

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

input:

abbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbaabbabaabbaababbabaababbaabbabaababbabaabbaababbabaababbaabbabaabbaababbaabbabaababbabaabbaababbabaababbaabbabaababbabaabbaababbaabbabaabbaab...

output:

0

result:

ok single line: '0'

Test #112:

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

input:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

0

result:

ok single line: '0'

Test #113:

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

input:

baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

0

result:

ok single line: '0'