Beakjoon&프로그래머스/파이썬
[백준/파이썬] 9971번 The Hardest Problem Ever
현장
2024. 10. 25. 17:16
-Code
alpa = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
res = []
while True:
line1 = input()
if line1 == "ENDOFINPUT":
break
decode = ""
s = input().strip()
for w in s:
if w not in alpa:
decode += w
continue
decode += alpa[(alpa.find(w) - 5) % 26]
input()
print(decode)