标签:水题
【题目简述】:给出了球场上WideReceiver,Lineman,Quarterback三个位置所需人员的最低属性(speed,weight// 240K 0Ms
#include<iostream>
using namespace std;
int main()
{
float speed;
int weight,strenth;
while(cin>>speed>>weight>>strenth,speed,weight,strenth)
{
bool flag = false;
if(speed<= 4.5&&weight>=150&&strenth>=200)
{
cout<<"Wide Receiver ";
flag = true;
}
if(speed<= 6.0&&weight>=300&&strenth>=500)
{
cout<<"Lineman ";
flag = true;
}
if(speed<=5.0&&weight>=200&&strenth>=300)
{
cout<<"Quarterback ";
flag = true;
}
if(!flag)
cout<<"No positions ";
cout<<endl;
}
return 0;
}POJ 2070 Filling Out the Team(水题)
标签:水题
原文地址:http://blog.csdn.net/u013749862/article/details/39024461