Cryptographer's Conundrum
This commit is contained in:
4
conundrum.py
Normal file
4
conundrum.py
Normal file
@@ -0,0 +1,4 @@
|
||||
secret = input().strip()
|
||||
per = "PER" * (len(secret) // 3)
|
||||
d = sum([1 if x != y else 0 for x, y in zip(secret, per)])
|
||||
print(d)
|
||||
Reference in New Issue
Block a user