文章
55
粉丝
101
获赞
105
访问
42.2k
#include<stdio.h>
#include<iostream>
#include<vector>;
using namespace std;
int main(){
int n;
while(cin>>n && n!=0){
vector<int> vec(n);
for(int i = 0; i<n; i++){
int m;
cin>>m;
vec[i] = m;
}
int k = 0;
cin>>k;
int count = 0;
for(int i = 0; i<vec.size(); i++){
if(k == vec[i]){
count++;
}
}
cout<<count<<endl;
count = 0;
}
}
登录后发布评论
暂无评论,来抢沙发