结构体 + 优先队列求法 #include<bits/stdc++.h> using namespace std; int n,m; struct User{ string username; int number; int grade; bool operator < (User c) const { if(m == 0){ // 降序 if (grade == c.grade){ return number > c.number; }else{ return grade < c.grade; } }...