0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-14 02:38:48 +00:00
OI-codes/Luogu/P2369/P2369.cpp

16 lines
268 B
C++
Raw Normal View History

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