hdu-1235 统计同成绩学生人数

#include<stdio.h>
int main()
{
  int n,m,i,j;
  int shu[1010];
  while(~scanf("%d",&n),n!=0)
  {
 int t=0;
    for(i=0;i<n;i++)
  scanf("%d",&shu[i]);
 scanf("%d",&m);
 for(i=0;i<n;i++)
  if(shu[i]==m)
         t++;
  printf("%d\n",t);
  }
return 0;
}呵呵,真是水题啊,

posted @ 2015-12-18 14:31  wojiaohuangyu  阅读(9)  评论(0)    收藏  举报