#include #include #include #include using namespace std; typedef long long LL; int N,M; void GetMaxPersonList(vector> &R,int I,int J,set &PersonSet) { int i; multimap> myMap; multimap>::iterator mit; for (i=0;i<=I;i++){ myMap.insert(multimap>::value_type(R[i][J],i+1)); } mit=myMap.begin(); LL maxV=(*mit).first; for (;mit!=myMap.end();mit++){ if (maxV==(*mit).first){ PersonSet.insert((*mit).second); }else{ break; } } myMap.clear(); } int GetWinNum(vector> &R,int I) { int num=0; set PersonSet; for (int j=0;j>N>>M; vector> R(N,vector(M)); int i,j; for (i=0;i>R[i][j]; } } for (i=0;i