Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
334367 黄浙峰老师 【C5-T】交叉排序 C++ 通过 100 6 MS 312 KB 268 2025-07-18 09:56:41

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int main() { int n,s[114514],r,l,a,b; cin>>n>>l>>r>>a>>b; for(int i=1;i<=n;i++){ cin>>s[i]; } sort(s+l,s+r+1); sort(s+a,s+b+1,greater<int>()); for(int i=1;i<=n;i++){ cout<<s[i]<<" "; } return 0; }


测评信息: