题目传送门:
题解:
#include#include using namespace std;struct Infor{ string str; int num1; int num2;};void InitInfor(Infor infor[],int n){ for(int i=0;i >n; Infor infor[n]; InitInfor(infor,n); for(int i=0;i >infor[i].str>>infor[i].num1>>infor[i].num2; } cin>>M; while(M--){ cin>>temp; for(int i=0;i