-Code
w = input()
s = input()
security = ""
alpa = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
res = ""
# 암호화 키 생성
for ch in w:
if ch not in security:
security += ch
for ch in alpa:
if ch not in w:
security += ch
# 암호화
for ch in s:
res += security[ord(ch) - 65]
print(res)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 33950번 어게인 포닉스 (0) | 2025.05.27 |
---|---|
[백준/파이썬] 33963번 돈복사 (0) | 2025.05.26 |
[백준/파이썬] 33909번 알파벳 블록 (0) | 2025.05.23 |
[백준/파이썬] 33868번 스티커 나눠주기 (0) | 2025.05.21 |
[백준/파이썬] 33964번 레퓨닛의 덧셈 (0) | 2025.05.20 |