能力全面提升综合题单 part1.2.1陶陶摘苹果
# include <iostream>
# define endl '\n'
using namespace std;
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int hign[11]; int touch; int ans=0;
for (int i = 1; i <= 10; i++)
{
cin >> hign[i];
}
cin >> touch;
touch += 30;
for (int i = 1; i <= 10; i++)
{
if (hign[i] <= touch) ans++;
}
cout << ans << endl;
return 0;
}