mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
25 lines
440 B
C++
25 lines
440 B
C++
|
#include<stdio.h>
|
||
|
int main ()
|
||
|
{
|
||
|
int N;
|
||
|
int i;
|
||
|
while(scanf("%d", &N)!=EOF)
|
||
|
{
|
||
|
if(N==0)
|
||
|
break;
|
||
|
int num[1200], T, p=0;
|
||
|
for(int i=0; i<N; i++)
|
||
|
{
|
||
|
scanf("%d", &num[i]);
|
||
|
}
|
||
|
scanf("%d", &T);
|
||
|
for(i=0; i<N; i++)
|
||
|
{
|
||
|
if(num[i]==T)
|
||
|
p++;
|
||
|
}
|
||
|
printf("%d\n", p);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|