建议降红
查看原帖
建议降红
1314767
RoutineZhou楼主2025/1/26 12:15

附上超短AC代码:

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n, a[1000000000];
    cin >> n;
    for(int i = 1; i <= n; i++) cin >> a[i];
    sort(a+1,a+n+1);
    for(int i = 1; i <= n; i++) cout << a[i] << " "; 
    return 0;
}
2025/1/26 12:15
加载中...