标签:style blog io color os sp for 数据 div
1
100 200 150 140 129 134 167 198 200 111
110
5
1 #include <stdio.h> 2 3 int main(){ 4 int T; 5 int height[10]; 6 int stature; 7 int i; 8 int amount; 9 10 scanf("%d",&T); 11 12 while(T--){ 13 for(i=0;i<10;i++) 14 scanf("%d",&height[i]); 15 16 scanf("%d",&stature); 17 18 amount=0; 19 for(i=0;i<10;i++){ 20 if(stature+30>=height[i]) 21 amount++; 22 } 23 24 printf("%d\n",amount); 25 26 } 27 28 return 0; 29 }
标签:style blog io color os sp for 数据 div
原文地址:http://www.cnblogs.com/zqxLonely/p/4101390.html