mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
255 B
C
14 lines
255 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main(int argc, char* argv[]) {
|
||
|
int a[1000], n, i, cnt = 0, std;
|
||
|
scanf("%i", &n);
|
||
|
for(i = 0; i < n; i++)
|
||
|
scanf("%i", &a[i]);
|
||
|
scanf("%i", &std);
|
||
|
for(i = 0; i < n; i++)
|
||
|
if(a[i] == std) cnt++;
|
||
|
printf("%i", cnt);
|
||
|
return 0;
|
||
|
}
|