1 #include <stdio.h> 2 int main(){ 3 double a,b,c; 4 int s; 5 while(~scanf("%lf%lf%lf",&a,&b,&c)){ 6 if(a==0&&b==0&&c==0) break; 7 s=0; 8 if(a<=4.5&&b>=150&&c>=200){ 9 s=1; 10 printf("Wide Receiver "); 11 } 12 if(a<=6.0&&b>=300&&c>=500){ 13 s=1; 14 printf("Lineman "); 15 } 16 if(a<=5.0&&b>=200&&c>=300){ 17 s=1; 18 printf("Quarterback "); 19 } 20 if(!s) 21 printf("No positions"); 22 printf("\n"); 23 } 24 return 0; 25 }
相关文章
- 10-26poj2070