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

why!!!wa!!!

Posted by hh007 at 2006-03-29 13:07:49 on Problem 2070
#include<stdio.h>
int main()
{
 	float s;
 	int w, m;
 	while(1)
 	{
 	 	scanf("%f %d %d",&s,&w,&m);
 	 	if(s==0) break;
 	 	if(s<=4.5&&w>=150&&m>=200) printf("Wide Receiver ");
 	 	if(s<=6.0&&w>=300&&m>=500) printf("Lineman ");
 	 	if(s<=5.0&&w>=200&&m>=300) printf("Quarterback ");
 	 	if(!(s<=4.5&&w>=150&&m>=200)&&!(s<=6.0&&w>=300&&m>=500)&&!(s<=5.0&&w>=200&&m>=300))
 	 	printf("No Position");
 	 	printf("\n");
 	}
 	return 0;
}

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