https://www.acmicpc.net/problem/17219
import sys input = sys.stdin.readline N, M = map(int, input().split()) dic = {} for _ in range(N): site, pw = input().split() dic[site] = pw for _ in range(M): print(dic[input().strip()])
쉽다 쉬워