题解
2026-02-04 10:22:10
发布于:广东
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int a[1000000];
istream& in=cin;
ostream& out=cout;
int main(){
ios::sync_with_stdio(0);
int n,m;
in>>n;
for(int i=1;i<=n;i++){
in>>a[i];
}
in>>m;
sort(a+1,a+n+1);
for(int i=1;i<=n;i++){
out<<a[i]<<' ';
}
ios::sync_with_stdio(1);
return 0;
}
这里空空如也






有帮助,赞一个