直接枚举
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
int q[10];
for(int i = 0;i < 10;i ++)
scanf("%d",&q[i]);
int height;
scanf("%d",&height);
int res = 0;
for(int i = 0;i < 10;i ++)
if(q[i] <= height + 30)
res ++;
cout<<res<<endl;
return 0;
}