17219번1 [baekjoon] 백준 17219번(파이썬) import sys input = sys.stdin.readline from collections import deque N, M = map(int, input().split()) dic = {} for _ in range(N): a,b = map(str, input().strip().split()) dic[a] = b for _ in range(M): result = input().strip() print(dic[result]) 딕셔너리를 이용하여 풀었다. 사이트 주소를 Key, 비밀번호를 Value 로 저장하여 찾고 싶은 Key를 입력하면 해당 Value를 출력하도록 하였다. 2022. 10. 3. 이전 1 다음