BOJ - 17219 - 비밀번호 찾기

Updated:

import sys

def solution():
    N, M = map(int, sys.stdin.readline().split())
    hash = {}
    for _ in range(N):
        site, alphabet = map(str, sys.stdin.readline().split())
        hash[site] = alphabet

    for _ in range(M):
        find = sys.stdin.readline().strip()
        print(hash[find])
solution()

https://www.acmicpc.net/problem/17219

Categories:

Updated:

Leave a comment