提交时间:2024-08-19 23:35:35
运行 ID: 168185
#include<bits/stdc++.h> using namespace std; int main(){ int a[100001]; int n; 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] <<" "; } }