Files
python/LuoGu/RuMen/P1046.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

21 lines
327 B
C++

#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;
}