Cryptographer's Conundrum

This commit is contained in:
2023-06-26 13:45:02 +02:00
parent a78dd59e7d
commit 422eff3a2f

4
conundrum.py Normal file
View 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)