huzhaoyang @ 2017-08-09 06:57:44
#include<cstdio>
int n,h,ans,a[11];
int main()
{
n=10;
for (int i=1;i<=n;i++)scanf("%d",&a[i]);
scanf("%d",&h);
for (int i=1;i<=n;i++)
if (h+30>=a[i])ans++;
printf("%d",ans);
}
by 起名真的很难 @ 2017-08-09 16:31:14
#include<cstdio>
int n,h,ans,a[11];
int main()
{
n=10;
for (int i=1;i<=n;i++)scanf("%d",&a[i]);
scanf("%d",&h);
for (int i=1;i<=n;i++)
if (h+30>=a[i])ans++;
printf("%d",ans);
return 0;//洛谷要求每个程序都不能少 return 0
}
by 起名真的很难 @ 2017-08-09 16:32:23
少了return 0 就可能会UKE,然而我并不知道,因为我是习惯性的加return 0的
by huzhaoyang @ 2017-08-10 07:53:13
饿。。又教了一遍。。尴尬的a了。。
by 起名真的很难 @ 2017-08-10 21:53:48
@huzhaoyang 你大概是新手吧
by 起名真的很难 @ 2017-08-10 21:54:21
@huzhaoyang 一般这种线上测评都要的
by huzhaoyang @ 2017-08-11 06:39:31
可事实上我从来不写
by huzhaoyang @ 2017-08-11 06:40:01
基本都可以的啊
by huzhaoyang @ 2017-08-11 06:40:17
都。。