#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; } }
关注我的公众号,当然,如果你对Java, Scala, Python等技术经验,以及编程日记,感兴趣的话。
技术网站地址: vmfor.com