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

为什么还是不过?

Posted by huk at 2005-04-10 01:43:15 on Problem 2070
#include<iostream.h>
void main(){
	float s;
	int a,b;

	while(cin>>s>>a>>b){
		if(s==0&&a==0&&b==0)
			break;
		if(s<4.5 && a>=150 && b>=200)
			cout<<"Wide Receiver ";
		if(s<6.0 && a>=300 && b>=500)
			cout<<"Lineman ";
		if(s<5.0 && a>=200	&& b>=300)
			cout<<"Quarterback ";
		if((!(s<4.5 && a>=150 && b>=200))&&(!(s<6.0 && a>=300 && b>=500))&&(!(s<5.0 && a>=200 && b>=300))) 
			cout<<"No Position";
		cout<<endl;		
	}
}

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