提交时间:2024-08-21 16:29:28
运行 ID: 180606
#include <bits/stdc++.h> using namespace std; int n, a[110000000]; int main(){ 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; }