提交时间:2024-08-19 22:54:38

运行 ID: 168131

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