Q1531458832 @ 2017-04-25 17:37:49
#include<stdio.h>
main()
{
int a,b[10],c=0,i;
scanf("%d %d %d %d %d %d %d %d %d %d\n",&b[0,1,2,3,4,5,6,7,8,9]);
scanf("%d",&a);
for(i=0;i<10;i++)
{
if(a+30>=b[i])
{
c++;
}
}
printf("%d",c);
return 0;
}
by Lolierl @ 2017-04-25 17:40:17
@Q1531458832
&b[0,1,2,3,4,5,6,7,8,9]?这你是哪学来的?
用for循环两行字搞定啊
by 1124828077ccj @ 2017-04-29 20:25:34
@KingLolierl 初学者都有一些奇妙的写法。。。