0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 15:18:47 +00:00
OI-codes/Luogu/P1271/P1271.cpp

20 lines
304 B
C++
Raw Normal View History

// R38787626
2021-11-19 09:01:13 +00:00
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, m, a[2000005];
cin >> n >> m;
2021-11-19 09:01:13 +00:00
for (int i = 0; i < m; i++) {
cin >> a[i];
}
2021-11-19 09:01:13 +00:00
sort(a, a + m);
for (int i = 0; i < m; i++) {
cout << a[i] << ' ';
}
cout << endl;
return 0;
}