讨论 / Accepted
3166550790 2018-05-17 17:00:34
点我顶贴 收藏 删除
#include<cstdio>

int a[100001],h,i,k;

int main()

{

const int n=10;

for (i=1;i<=n;++i)

scanf("%d",&a[i]);

scanf("%d",&h);

h+=30;

for (i=1;i<=n;++i)

if (h>=a[i]) k++;

printf("%d\n",k);

return 0;

}

查看更多回复
提交回复