Algorithm/BOJ

[ BaekJoon - Python ] 23738. Ресторан (Bronze 2)

surimi🍥 2021. 12. 9. 10:47
반응형
n = input()
l = [['B', 'v'], ['E', 'ye'], ['H', 'n'], [
    'P', 'r'], ['C', 's'], ['Y', 'u'], ['X', 'h']]

for v in l:
    n = n.replace(v[0], v[1])
print(n.lower())

 

반응형