n = int(input()) list_dict = [] for i in range(n): dict1 = {} list1 = input().split(" ") dict1["a"] = list1[0] dict1["b"] = list1[1] dict1["c"] = list1[2] list_dict.append(dict1) m = int(input()) list2 = input().split(" ") for i in list2: for j in list_dict: if j["b"] == i: print(j["a"],j["c"]) break
python 考试座位号 (15 分)
猜你喜欢
转载自blog.csdn.net/weixin_41775301/article/details/87450730
今日推荐
周排行