Files
luogu/P1177.cpp
T
hanyixuanten 4f2e9e42b1
Check cpp / md pair / Check md headers (push) Failing after 0s
new file: P1177.cpp
2026-10-26 11:52:18 +00:00

15 lines
296 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
scanf("%d", &n);
vector<int> a(n, 0);
for(int i = 0; i < n; ++i) {
scanf("%d", &a[i]);
}
sort(a.begin(), a.end());
for(int i = 0; i < n; ++i) {
printf("%d ", a[i]);
}
return 0;
}