BOJ - 4378 - 트ㅏㅊ;
Updated:
KeyBoard = {
"1" : "`", "2" : "1", "3" : "2", "4" : "3", "5" : "4", "6" : "5", "7" : "6", "8" : "7", "9" : "8", "0" : "9", "-" : "0", "=" : "-",
"W" : "Q", "E" : "W", "R" : "E", "T" : "R", "Y" : "T", "U" : "Y", "I" : "U", "O" : "I", "P" : "O", "[" : "P", "]" : "[", "\\" : "]",
"S" : "A", "D" : "S", "F" : "D", "G" : "F", "H" : "G", "J" : "H", "K" : "J", "L" : "K", ";" : "L", "'" : ";" ,
"X" : "Z", "C": "X", "V" : "C", "B" : "V", "N" : "B", "M" : "N", "," : "M", "." : ",", "/" : ".", " " : " "
}
def solution():
while True:
try:
for word in input():
print(KeyBoard[word], end='')
print()
except:
break
solution()
https://www.acmicpc.net/problem/4378
Leave a comment