题解 | #[NOIP2005]陶陶摘苹果#

[NOIP2005]陶陶摘苹果

https://ac.nowcoder.com/acm/problem/16648

 #include<bits/stdc++.h>
  using namespace std;
  int main ()
   {
   int a[11];
    int h,ans=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])ans++;}
   cout<<ans;
}
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务