标签:hdu1235
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> #include <string.h> #define maxn 102 int arr[maxn]; int main() { int n, m; while(scanf("%d", &n), n){ memset(arr, 0, sizeof(arr)); while(n--){ scanf("%d", &m); ++arr[m]; } scanf("%d", &m); printf("%d\n", arr[m]); } return 0; }
标签:hdu1235
原文地址:http://blog.csdn.net/chang_mu/article/details/38893673