#include #include #include using namespace std; struct Node{ int num; double times; }; Node T[1000]; int cmp1( const void *a , const void *b ) { struct Node *c = (Node *)a; struct Node *d = (Node *)b; if(c->times != d->times) return d->times - c->times; } int cmp2( const void *a , const void *b ) { struct Node *c = (Node *)a; struct Node *d = (Node *)b; return c->num > d->num ? -1 : 1 ; } int main() { int i,j,k,n,m; double temp; while(EOF != scanf("%d %d %d",&n,&m,&k)) { for(i=0;i