2006年第4题
题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=9
C语言源码:
#include<stdio.h>int main(){int n,i,hash[101],x;scanf("%d",&n);while(n){for(i=0;i<101;i++)hash[i]=0;for(i=0;i<n;i++){scanf("%d",&x);hash[x]++;}scanf("%d",&x);printf("%d\n",hash[x]);scanf("%d",&n);}}