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;
}
简单题。
附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;
}
相关文章推荐
- NYOJ 50 爱摘苹果的小明
- nyoj题目50:爱摘苹果的小明
- NYOJ 50 爱摘苹果的小明
- NYOJ 50 爱摘苹果的小明
- NYOJ 50 爱摘苹果的小明
- nyoj50爱摘苹果的小明
- nyoj50爱摘苹果的小明
- NYOJ50-爱摘苹果的小明
- NYOJ:50-爱摘苹果的小明
- nyoj 爱摘苹果的小明
- NYOJ-爱摘苹果的小明
- 【刷题小记50】爱摘苹果的小明
- 南阳理工ACM 50爱摘苹果的小明
- 南阳理工_50爱摘苹果的小明
- 南阳理工OJ_题目50 爱摘苹果的小明
- nyoj-50 爱吃苹果的小明
- 50 爱摘苹果的小明
- NYOJ-ACM-爱摘苹果的小明
- nyoj 19 擅长排列的小明
- NYOJ 55 懒省事的小明 优先队列