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

尝试了N多次,就是WA 受不了了!!!! 请牛人看看,指教一下!!

Posted by liuenquan at 2009-01-25 17:08:10 on Problem 2070
#include<iostream>
using namespace std;
int main()
{
	double speed , weight , strength ;
//	freopen ("2272.txt","r",stdin);
	while ( cin >> speed >> weight >> strength )
	{
		int t = 0 ;
		if( speed == 0 && weight == 0 && strength == 0 )
		{
			break ;
		}
		if( speed <= 4.5 && weight >= 150 && strength >= 200 )
		{
			t++ ;
			cout << "Wide Receiver " ;
		}
		if( speed <= 6.0 && weight >= 300 && strength >= 500 )
		{
			t++ ;
			cout << "Lineman " ;
		}
		if( speed <= 5.0 && weight >= 200 && strength >= 300 )
		{
			t++ ;
			cout << "Quarterback " ;
		}
		if( t == 0 )
		{
			cout << "NO positions" ;
		}
		cout << endl;
	}
	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