5 solutions
-
1
#include<bits/stdc++.h> #include using namespace std; int main(){ int n=10,extra_height,sum=0;//extra_height意为极限高度 const int N=n; int a[N]; for(int i=0;i<N;i++){ cin>>a[i]; } cin>>extra_height; for(int j=0;j<N;j++){ if(extra_height+30>=a[j]){ sum+=1; } else{ sum+=0; } } cout<<sum;
return 0;
}
- 1
Information
- ID
- 589
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- # Submissions
- 37
- Accepted
- 27
- Uploaded By