111

NAZI  •  6天前


include <bits/stdc++.h>

using namespace std;

int main() {

list<int>a;
int b, c, d;
cin >> b;
for (int i = 0; i < b; i++) {
	cin >> c;
	a.push_back(c);
}
cin >> d;
for (auto i = a.begin(); i != a.end(); i++) {
	if (*i != d) {
		cout << *i << " ";
	}
}
return 0;

}


评论:

请先登录,才能进行评论