open_in_new
content_copy
bool cmp(pair<int,int> a,pair<int,int> b) {return a>b;} sort(p.begin(),p.end(),cmp);