提交时间:2024-08-19 20:18:51

运行 ID: 167897

#include <bits/stdc++.h> using namespace std; int main () { int n; cin >> n; int a[100000]; for (int i = 0; i < n; i++) { cin >> a[i]; } sort(a, a + n); for (int i = 0; i < n; i++) { cout << a[i] << endl; } return 0; }