Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stdio.h>
#include <string.h>
int
main()
{
int
sc[101];
int
n,s,i;
while
(
scanf
(
"%d"
,&n),n)
{
memset
(sc,0,
sizeof
(sc));
for
(i=0;i<n;i++)
{
scanf
(
"%d"
,&s);
sc[s]++;
}
scanf
(
"%d"
,&s);
printf
(
"%d\n"
,sc[s]);
}
return
0;
}
|
本文转自ZH奶酪博客园博客,原文链接:http://www.cnblogs.com/CheeseZH/archive/2012/05/13/2498097.html,如需转载请自行联系原作者