#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 = 0; if(!speed && !weight && !strength) break; if(speed <= 4.5 && weight >= 150 && strength >= 200) { cout<<"Wide Receiver "; time = 1; } if(speed <= 6.0 && weight >= 300 && strength >= 500) { cout<<"Lineman "; time = 1; } if(speed <= 5.0 && weight >= 200 && strength >= 300) { cout<<"Quarterback "; time = 1; } if(time == 0) cout<<"No positions"; cout<<endl; } }
时间: 2024-10-13 07:52:30