持续水题解
写了和没写一样

#include<stdio.h>
int n;
int a[55];
int del;
int main(){
    scanf("%d",&n);
    for(int i = 1;i <= n;i ++) scanf("%d",&a[i]);
    scanf("%d",&del);//输入

    for(int i = 1;i <= n;i ++)
        if(a[i] != del) printf("%d ",a[i]);//输出
}