提交时间:2024-05-25 15:19:44
运行 ID: 148952
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int a[100010]; 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; }