0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 09:11:59 +00:00
OI-codes/AcWing/812/812.cpp

24 lines
279 B
C++
Raw Normal View History

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