0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-10 07:58:52 +00:00

P2369 EXCEEDED WARNING A

R41037866
This commit is contained in:
Baoshuo Ren 2020-11-01 20:36:16 +08:00 committed by Baoshuo Ren
parent 68f6405516
commit a08205e90c
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

16
problem/P2369/P2369.cpp Normal file
View File

@ -0,0 +1,16 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
short a[1000005];
int n, m;
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;
}
}