struct Z{ int a,b; }k[210]; bool cmp(Z x,Z y) { if(x.a<y.a)return 1; else return 0; if(x.a==y.a) { if(x.b>y.b)return 0; else return 1; } }