Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
36154 | 王皓暄 | 陶陶摘苹果 | C++ | Accepted | 0 MS | 248 KB | 268 | 2024-01-08 20:14:55 |
#include<bits/stdc++.h> using namespace std; int main() { int taog,sum=0; int gao[10]; for(int i=0;i<10;i++) { cin>>gao[i]; } cin>>taog; taog+=30; for(int i=0;i<10;i++) { if(taog>=gao[i]) { sum+=1; } } cout<<sum; return 0; }