8 条题解

  • 0
    @ 2026-4-25 11:02:25

    bool cmp(br x,br y){ if(x.age>=60&&y.age>=60){ if(x.age!=y.age){ return x.age>y.age; }else{ return x.t<y.t; } }else if(x.age<=60&&y.age<=60){ return x.t<y.t; }else{ return x.age>y.age; } }

    int main(){ for(int i=1;i<=n;i++){ a[i].t=i; } sort(a+1,a+n+1,cmp); }

    信息

    ID
    2946
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    59
    已通过
    26
    上传者