#9WA求助
查看原帖
#9WA求助
1063104
ANS900UVUAHA楼主2024/8/23 20:33
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int n,m,a[10086],k=0;
int main()
{
	ios::sync_with_stdio(0),cin.tie(0);
	cout.tie(0);
    cin>>n>>m;
    for(int i=1;i<=n;i++)
    {
    	cin>>a[i];
    	if(a[i]>=m)
    	{
    		k++;
		}
	}
	cout<<k<<endl;
	return 0;
}
2024/8/23 20:33
加载中...