Files
python/C++专题课程/NOIP算法总结/枚举/陶陶摘苹果/P1046.cpp

17 lines
235 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include<iostream>
using namespace std;
int a[15];
int main() {
int b,B,A;
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;
}