#include<iostream> #include<algorithm> #include<string.h> usingnamespacestd ; typedefstructNode{ char id[10]; char name[10]; int score; }Nodes ; Nodes data[100001] ; boolcmp1(Node a , Node b) { returnstrcmp(a.id, b.id) < 0; } boolcmp2(Node a , Node b) { if(!strcmp(a.name, b.name)) returnstrcmp(a.id, b.id) < 0; returnstrcmp(a.name, b.name) < 0; }
boolcmp3(Node a , Node b) { if(a.score ==b.score) returnstrcmp(a.id, b.id) < 0; return b.score > a.score ; } intmain(){ int N , C; cin >> N >> C ; for(int i = 0 ; i< N ;i++) {