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.

17 lines
304 B

2 years ago
#include <bits/stdc++.h>
using namespace std;
const int N = 15;
int a[N], height;
int cnt;
int main() {
for (int i = 1; i <= 10; i++) cin >> a[i];
cin >> height;
for (int i = 1; i <= 10; i++)
if (a[i] <= height + 30) cnt++;
cout << cnt << endl;
return 0;
}