☺☺☺☺☺☺☺☺☺☺☺☺☺☺☺☺  •  1年前


include <bits/stdc++.h>

using namespace std;

int main() {

int n, x, k, a[10000], b[10000];
cin >> n >> x >> k;
for (int i = 1; i <= n; i++) {
	cin >> a[i];
}
for (int i = 1; i <= x; i++) {
	a[i] = -1341;
}
for (int i = 1; i <= k; i++) {
	cin >> b[i];
}
for (int i = 1; i <= n; i++) {
	if (a[i] != -1341) {
		cout << a[i] << " ";
	}
}
for (int i = 1; i <= k; i++) {
	cout << b[i] << " ";
}
return 0;

}


评论:

请先登录,才能进行评论