0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 22:56:27 +00:00
OI-codes/AcWing/812/812.cpp

24 lines
279 B
C++

#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;
}