mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 12:38:49 +00:00
20 lines
303 B
C++
20 lines
303 B
C++
|
// R38787626
|
||
|
|
||
|
#include<bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
int n, m, a[2000005];
|
||
|
cin >> n >> m;
|
||
|
for(int i = 0 ; i < m ; i++) {
|
||
|
cin >> a[i];
|
||
|
}
|
||
|
sort(a, a+m);
|
||
|
for(int i = 0 ; i < m ; i++) {
|
||
|
cout << a[i] << ' ';
|
||
|
}
|
||
|
cout << endl;
|
||
|
return 0;
|
||
|
}
|