Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
31587 | 惠子铭 | 陶陶摘苹果 | C++ | Accepted | 0 MS | 240 KB | 200 | 2023-11-19 18:36:51 |
#include<iostream> using namespace std; int a[10]; int main() { int h,cnt=0; for(int i=0;i<10;i++) cin>>a[i]; cin>>h; h+=30; for(int i=0;i<10;i++) if(h>=a[i])cnt++; cout<<cnt; return 0; }