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

18 lines
371 B
C++

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