19637번

· 백준
코드 1 import sys input = sys.stdin.readline n,m = map(int, input().split()) chingho = {} for _ in range(n): x, y = input().split() y = int(y) if y not in chingho.keys(): chingho[y] = x jeontwo = sorted(chingho.keys()) for _ in range(m): character = int(input()) start, end = 0, len(jeontwo)-1 mychingho = 0 while start jeontwo[mid]: start = mid + 1 else: end = mid - 1 mychingho = mid print(chingho[..