Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

< speed > < weight > < strength > Each number will be a real-valued number.

Posted by seol at 2004-12-22 21:21:49 on Problem 2070
In Reply To:帮忙看看吧!为什么不对啊?真郁闷呐!!! Posted by:90401307 at 2004-12-22 09:50:55
> #include<stdio.h>
> void main(){
> 	float v;
> 	int w,h;
> 	scanf("%f%d%d",&v,&w,&h);
> 	while(v!=0||w!=0||h!=0){
> 		if(v<=4.5&&w>=150&&h>=200){
> 			printf("Wide Receiver ");
> 			if(w>=200&&h>=300)
> 				printf("Quarterback ");
> 			if(w>=300&&h>=500)
> 				printf("Lineman ");
> 			else printf("\n");	
> 		}	
> 	     else if(v<=5.0&&w>=200&&h>=300){
> 			printf("Quarterback ");
> 			if(w>=300&&h>=500)
> 				printf("Lineman ");
> 			else printf("\n");
> 		}
> 		else if(v<=6.0&&w>=300&&h>=500){
> 			printf("Lineman");
> 			printf("\n");
> 		}
> 		else printf("No positions\n");
> 		scanf("%f%d%d",&v,&w,&h);
> 	}
> }

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator