#include<stdio.h> int main(){ int i=0,N=0,m=0,a[100]={0},count=0; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&a[i]); } scanf("%d",&m); for(i=0;i<N;i++){ if(a[i]==m) count++; } printf("%d\n",count); return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account