POJ 2070

时间:2024-08-28 08:33:08
#include<iostream>
#include<stdio.h>
using namespace std; int main()
{
//freopen("acm.acm","r",stdin);
double speed;
double weight;
double strength;
int time;
while(cin>>speed>>weight>>strength)
{
time = ;
if(!speed && !weight && !strength)
break;
if(speed <= 4.5 && weight >= && strength >= )
{
cout<<"Wide Receiver ";
time = ;
}
if(speed <= 6.0 && weight >= && strength >= )
{
cout<<"Lineman ";
time = ;
}
if(speed <= 5.0 && weight >= && strength >= )
{
cout<<"Quarterback ";
time = ;
}
if(time == )
cout<<"No positions";
cout<<endl;
}
}

关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。

POJ 2070

技术网站地址: vmfor.com