-Code
incoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_."
while True:
line = list(input().split())
if line[0] == "0":
break
n = int(line[0])
line = line[1]
res = ""
for w in line:
p = (incoding.index(w) + n) % len(incoding)
res += incoding[p]
print(res[::-1])
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 26751번 Najmniejsza liczba (1) | 2024.01.09 |
---|---|
[백준/파이썬] 8270번 Tulips (0) | 2024.01.08 |
[백준/파이썬] 26552번 Zero (1) | 2024.01.06 |
[백준/파이썬] 30489번 apt upgrade (0) | 2024.01.05 |
[백준/파이썬] 28214번 크림빵 (0) | 2024.01.04 |