// Rankings problem // 2004 ECNA ACM Regional // t feil #include using namespace std; const bool Debug=false; char Median[5], P[5], ballot[5]; int votes[1000][5]; int n,minimum; void FindMedian(int k){ int thiscount; if(Debug){ for(int i=0;ivotes[i][k]) || (P[j]>P[k] && votes[i][j]>n; while(n>0){ for(int i=0;i>ballot[j]; //convert for(int j=0;j<5;j++) votes[i][(int) (ballot[j]-'A')] = j; } if(Debug){ for(int i=0;i>n; } return 0; }