luogu 1046

简单模拟。

#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;
}

 

posted @ 2018-01-22 17:04  TrassBlose  阅读(66)  评论(0编辑  收藏  举报