- 【例50.1】陶陶摘苹果
题解
- 2024-3-10 14:54:42 @
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int a[10],h,s=0;
for (int i=0;i<10;i++){
cin>>a[i];
}
cin>>h;
h+=30;
for (int i=0;i<10;i++){
if(a[i]<=h){
s++;
}
}
cout<<s;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 218
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- # Submissions
- 185
- Accepted
- 91
- Uploaded By