666
2023-06-10 16:17:15
发布于:上海
30阅读
0回复
0点赞
#include <bits/stdc++.h.>
using namespace std;
int a[1000010];
int main()
{
int n;
cin >> n;
for(int i = 1; i <= n; i++) cin >> a[i];
int m;
bool temp = 0;
cin >> m;
for(int i = 1; i <= n; i++)
{
if(a[i] != m || temp == 1) cout << a[i] <<" ";
else temp = 1;
}
return 0;
}
这里空空如也
有帮助,赞一个