标签:log main span code scanf count bsp -- i++
AC:
#include<stdio.h> #include<stdlib.h> int a[1000]; int main() { int N; int m; while(scanf("%d",&N)!=EOF) { if(N==0) return 0; int i,j=0,k=0,count=0; for (i=0;i<N;i++) { scanf("%d",&a[k++]); } scanf("%d",&m); for(i=0;i<k;i++) { if (a[i]==m) count++; } printf("%d\n",count); } return 0; }
题目1018:统计同成绩学生人数----------------------能做对的最好一次AC
标签:log main span code scanf count bsp -- i++
原文地址:http://www.cnblogs.com/jianrenguo/p/6541846.html