NOIP2005复赛 普及组 第1题 陶陶摘苹果
生活随笔
收集整理的这篇文章主要介绍了
NOIP2005复赛 普及组 第1题 陶陶摘苹果
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
http://ybt.ssoier.cn:8088/problem_show.php?pid=1930
http://noi.openjudge.cn/ch0106/02/
/* NOIP2005复赛 普及组 第一题 陶陶摘苹果 1930:【05NOIP普及组】陶陶摘苹果 http://ybt.ssoier.cn:8088/problem_show.php?pid=1930 http://noi.openjudge.cn/ch0106/02/ */ #include<iostream> using namespace std; int main() {int b[10];int n=0,h,i=0;for(i=0;i<=9;i++){cin>>b[i];}cin>>h;h+=30;for(i=0;i<=9;i++){if(h>=b[i])n++;}cout<<n;return 0; }
总结
以上是生活随笔为你收集整理的NOIP2005复赛 普及组 第1题 陶陶摘苹果的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 小程序滑动到底部进行分页的功能实例
- 下一篇: 1.5 编程基础之循环控制 35 求出e