← Back to List

11269번: Cryptographer’s Conundrum ↗

Solutions

Python 3
94 B | 94 chars
s="PER"
a=input()
ans=0
for i,j in enumerate(a):
    if j != s[i%3]:
        ans+=1
print(ans)