practivceAlgorithm/백준
[백준][Python] 17219 비밀번호 찾기
findTheValue
2021. 9. 13. 23:29
hash map
import sys
input = sys.stdin.readline
N, M = map(int, input().split())
dic = {}
for _ in range(N):
adress, pw = input().split()
dic[adress] = pw
for _ in range(M):
print(dic[input().rstrip()])