본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 33528번 Alphabetic Shift

by 현장 2025. 2. 20.

-Code

alpa = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
line = input()

for i in range(26):
    res = ""
    for w in line:
        res += alpa[(ord(w) - 65 - i) % 26]
    
    print(res)