样例过了,但全错
查看原帖
样例过了,但全错
766234
thelqz楼主2022/12/1 10:46
#include<bits/stdc++.h>
using namespace std;
int main(){
	long long n,k,ans; 
	scanf("%lld%lld",&n,&k);
	long long a;
	for(int i=0;i<=n;++i){
		scanf("%lld",&a);
		if(a==k)++ans;
	}
	printf("%lld",ans); 
	return 0;
} 

求改

2022/12/1 10:46
加载中...