#include #include #include #include using namespace std; struct Person { char name[30]; char sex[10]; int round1; int round2; double res; }p[105]; bool cmp(Person a,Person b) { return a.res>b.res; } int main() { int t; cin>>t; while(t--) { int maxr1=-1,maxr2=-1; int flag=0; int n,m; cin>>n>>m; for(int i=1;i<=n;i++) { cin>>p[i].name; cin>>p[i].sex; if(p[i].sex[0]=='f') flag=1; cin>>p[i].round1; cin>>p[i].round2; if(p[i].round1>maxr1) { maxr1=p[i].round1; } if(p[i].round2>maxr2) { int re=p[i].round2; //cout<maxf) { maxf=p[i].res; strcpy(fname,p[i].name); } } sort(p+1,p+n+1,cmp); cout<<"The member list of Shandong team is as follows:"<