您的位置:首页 > 其它

NYOJ 50 爱摘苹果的小明

2014-02-11 14:54 232 查看
原题链接

简单题。

附ac代码:

#include <stdio.h>

int main(){
int t, a[10], i, height, count;
scanf("%d", &t);
while(t--){
for(i = count = 0; i != 10; ++i)
scanf("%d", &a[i]);
scanf("%d", &height);
height += 30;
for(i = 0; i != 10; ++i)
if(height >= a[i]) ++count;
printf("%d\n", count);
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: