Run ID:101698
提交时间:2024-12-15 19:28:14
#include <iostream> #include <algorithm> using namespace std; struct Stu{ int no; int chinese; int math; int english; int total; }; bool cmp(Stu x,Stu y) { if(x.total<y.total) return true; else if(x.total==y.total) { if(x.chinese<y.chinese) return true; else if(x.chinese==y.chinese) return x.no>y.no; } return false; }