代码来自 https://blog.youkuaiyun.com/wuhuagu_wuhuaguo/article/details/72674675
#include<vector> //vector
#include<algorithm> //sort
#include<iostream> //bool cin cout size()
using namespace std;
struct stu{ // 通过结构体创建自己的数据类型
int id,d,c;
};
//return a>b 表示降序,return a<b表示升序
bool cmp(stu a,stu b){
if(a.d+a.c!=b.d+b.c) return a.d+a.c>b.d+b.c;
else if(a.d!=b.d) return a.d>b.d;
else return a.id<b.id;
}
int main(){
int N,L,H,i,cou