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.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int a[10] = {0};
|
|
for (int i = 0; i < 10; i++) {
|
|
cin >> a[i];
|
|
}
|
|
int b, count = 0;
|
|
cin >> b;
|
|
for (int i = 0; i < 10; i++) {
|
|
if (b + 30 >= a[i]) count++;
|
|
}
|
|
cout << count << endl;
|
|
return 0;
|
|
}
|