#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
using namespace std;
1.
bool cmp(char a,char b){
参数类型看情况写
return a>b;
}
using namespace std;
int main(){
char c[] = {
'T', 'W', 'A', 'K'};
sort(c, c + 4,cmp);
for(int i = 0; i < 4; i++){
printf("%c",c[i]);
}
system("pause");
return 0;
}
*/
struct Student{
char id[15];
int score;
int location_number;
int local_rank;
}stu[30010];
bool cmp(Student a, Student b){
if(a.score != b.score) return a.score > b.score;
else return a.id < b.id;
}
int main(){
int n,k,num=0;
scanf("%d",&n);
for