if __name__ == '__main__':
n = int(input())
students = []
exams = []
tests = []
for i in range(n):
inputs = input().split(" ")
students.append(int(inputs[0]))
exams.append(int(inputs[1]))
tests.append(int(inputs[2]))
int(input())
inputs = input().split(" ")
for i in range(len(inputs)):
for j in range(len(exams)):
if int(inputs[i]) == exams[j]:
print("%u %u" % (students[j], tests[j]))
break
PAT (Basic Level) Practice (中文)1041 考试座位号
于 2022-05-26 15:34:48 首次发布