标签:
3 80 60 90 60 2 85 66 0 5 60 75 90 55 75 75 0
1 0 2Huge input, scanf is recommended.HintHint#include<stdio.h> int main() { int n; while(scanf("%d",&n),n) { int s=0;int a; int x[10000]; for(int i=0;i<n;i++) scanf("%d",&x[i]); scanf("%d",&a); for(int i=0;i<n;i++) if(a==x[i]) s++; printf("%d\n",s); } return 0; }
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/l15738519366/article/details/48030795