0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-16 20:05:26 +00:00
Baoshuo Ren 2022-05-09 19:15:00 +08:00
parent b0af2af171
commit 9e8c61ff42
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

23
AcWing/812/812.cpp Normal file
View File

@ -0,0 +1,23 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int n, k, x;
int main() {
std::ios::sync_with_stdio(false);
cin >> n >> k;
while (n--) {
cin >> x;
if (k--) cout << x << ' ';
}
cout << endl;
return 0;
}