给位大佬看看我这那里错了?
2026-09-06 16:23:13
发布于:北京
7阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
struct a{
string v;
long long b,c,d;
}d[200010];
bool cmp(a x,a y){
if(x.b!=y.b){
return x.b<y.b;
}else if(x.c!=y.c){
return x.c<y.c;
}else{
return x.d<y.d;
}
}
int main(){
int e;
cin>>e;
for(int i=1;i<=e;i++){
cin>>d[i].v>>d[i].b>>d[i].c>>d[i].d;
}
sort(d+1,d+e+1,cmp);
for(int i=1;i<=e;i++){
cout<<d[i].v<<endl;
}
return 0;
}
全部评论 1
666没人
2026-09-16 来自 北京
0






有帮助,赞一个