wangchunyuIO @ 2025-01-01 14:56:53
#include<bits/stdc++.h>
using namespace std;
int h,t,k=0;
int a[10];
int main(){
cin>>h;
t=h+30;
for(int i=0;i<10;i++){
cin>>a[i];
if(t>a[i]){
k++;
}
}
cout<<k<<endl;
return 0;
}
by dqh_0616 @ 2025-01-01 15:09:01
#include<bits/stdc++.h>
using namespace std;
int h,t,k=0;
int a[10];
int main(){
for(int i=0;i<10;i++){
cin>>a[i];
}
cin>>h;
t=h+30;
for(int i=0;i<10;i++){
if(t>=a[i]){
k++;
}
}
cout<<k<<endl;
return 0;
}
by dqh_0616 @ 2025-01-01 15:09:47
@wangchunyuIO 不用谢,可以关注我吗qwq
by wangchunyuIO @ 2025-01-01 16:24:24
@dqh_0616 已关