int n,x,c,p,t;main(){scanf("%d%d",&n,&p),t=--n;while(n--)c+=(scanf("%d",&x),x==p);printf("%d",c==t?0:t);}
大家有更短的吗