AC

robin88  •  7个月前


include

using namespace std; int main() {

int total=0,height=0,tree=0;
cin>>total;
int num[total]={0};
for(int i=0;i<total;i++){
	cin>>num[i];
}
cin>>height;
for(int j=0;j<total;j++){
	if(num[j]==height){
		tree++;
	}
}
cout<<tree;
return 0;

}


评论:

请先登录,才能进行评论