You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
371 B

#include <bits/stdc++.h>
using namespace std;
const int N = 20;
int a[N];
int main() {
int b, B;
for (int i = 1; i <= 10; i++) cin >> a[i];
cin >> b;//陶陶把手伸直的时候能够达到的最大高度。
B = b + 30;
int cnt = 0;
for (int i = 1; i <= 10; i++)
if (a[i] <= B) cnt++;
cout << cnt;
return 0;
}