diff --git a/AcWing/812/812.cpp b/AcWing/812/812.cpp new file mode 100644 index 00000000..c7056bd3 --- /dev/null +++ b/AcWing/812/812.cpp @@ -0,0 +1,23 @@ +#include + +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; +}