#include <iostream>
using namespace std;
int main() {
int n, m;
cin >> n;
int a[n];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
cin >> m;
for (int i = 0; i < n; i++) {
if (a[i] != m) {
cout << a[i] << " ";
}
}
return 0;
}
为什么只有20分
共 1 条回复
2 2 2 2 2 ,m = 2, 照你的程序,输出就为空了