C++ 代码
#include <iostream>
using namespace std;
int main()
{
int n, ret = 0;;
int a[10];
for(int i = 0; i < 10; ++ i) cin >> a[i];
cin >> n;
for(int i = 0; i < 10; ++ i) ret += a[i] <= n + 30;
cout << ret << endl;
return 0;
}