728x90
반응형
단순 문자열 문제이다.
s = input()
res = ''
for c in s:
if 'a' <= c <= 'z':
res += chr((ord(c)+13) if c <= 'm' else ord(c)-13)
elif 'A' <= c <= 'Z':
res += chr((ord(c)+13) if c <= 'M' else ord(c)-13)
else:
res += c
print(res)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 9093번 단어 뒤집기(python) (0) | 2021.02.21 |
---|---|
백준 알고리즘 11365번 !밀비 급일(python) (0) | 2021.02.21 |
백준 알고리즘 10798번 세로읽기(python) (0) | 2021.02.21 |
백준 알고리즘 2751번 수 정렬하기 2(python) (0) | 2021.02.21 |
백준 알고리즘 9437번 사라진 페이지 찾기(python) (0) | 2021.02.21 |