mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 08:10:27 +08:00
20 lines
220 B
C++
20 lines
220 B
C++
#include <iostream>
|
|
using namespace std;
|
|
int main(){
|
|
int n,m,b=0;
|
|
int a[10000];
|
|
cin >>n;
|
|
for(int i=0;i<n;i++){
|
|
cin >>a[i];
|
|
}
|
|
cin >>m;
|
|
for(int i=0;i<n;i++){
|
|
if(a[i]==m){
|
|
b++;
|
|
}
|
|
}
|
|
cout <<b;
|
|
return 0;
|
|
}
|
|
|