#include<iostream> using namespace std; typedef struct Student { string name; string sex; int age; }; //利用数组顺序存储随机存取的特性 int main(void) { int m; cin >> m; Student arr[21]; while(m--) { int n; cin >> n; while(n--) { string name,sex; int num,age; cin >> num >> name >> sex >> age; arr[num].name = name; arr[num].sex = sex; arr[num].age = age; } int num_find; cin >> num_find; cout << num_find << ' ' << arr[num_find].name << ' ' << arr[num_find].sex << ' '; cout << arr[num_find].age << endl; } return 0; }