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.

21 lines
307 B

#include <bits/stdc++.h>
using namespace std;
int a[15];
int main() {
int b, B;
for (int i = 1; i <= 10; i++) {
cin >> a[i];
}
cin >> b;
B = b + 30;
int c = 0;
for (int i = 1; i <= 10; i++) {
if (a[i] <= B)
c++;
}
cout << c;
return 0;
}