L1-005 考试座位号 python
python 实现
num1=int(input()) lst_id=[] lst_shiji=[] lst_kaoshi=[] for i in range(num1): s=input() lst_id.append(int(s.split(" ")[0])) lst_shiji.append(int(s.split(" ")[1])) lst_kaoshi.append(int(s.split(" ")[2])) num2=int(input()) s=input() for i in range(num2): search=int(s.split(" ")[i]) loc=lst_shiji.index(search) print("{id} {kaoshi}".format(id=lst_id[loc],kaoshi=lst_kaoshi[loc]))