#include<iostream>
#include<vector>
using namespace std;
struct person {long long zhunkao, shiji, kaoshi;
};
int main()
{
long long n, find;
person a;
cin >> n;
vector<person>v;
for (int i = 0; i < n; i++) {
cin >> a.zhunkao >> a.shiji >> a.kaoshi;
v.push_back(a);
}
cin >> find;
for (int i = 0; i < find; i++) {
int tmp;
cin >> tmp;
for (int j = 0; j < v.size(); j++) { if (v[j].shiji == tmp) cout << v[j].zhunkao << " " << v[j].kaoshi << endl; }
}
return 0;
}
PTA 1041 考试座位号 (15 分)
最新推荐文章于 2024-02-03 21:21:13 发布