首页 > 其他 > 详细

luogu 1046

时间:2018-01-22 18:58:04      阅读:331      评论:0      收藏:0      [点我收藏+]

简单模拟。

#include"cstdio"
int main()
{
    int a[10],h,ans=0;
    for(int i=0; i<10; i++) scanf("%d",&a[i]);
    scanf("%d",&h);
    for(int i=0; i<10; i++) if(a[i]-30<=h) ans++;
    printf("%d",ans);
    return 0;
}

 

luogu 1046

原文:https://www.cnblogs.com/TrassBlose/p/8329983.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!