首页 > 其他 > 详细

POJ 2070

时间:2015-06-10 18:36:34      阅读:247      评论:0      收藏:0      [点我收藏+]
#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;
    }
}

 

POJ 2070

原文:http://www.cnblogs.com/gavinsp/p/4566637.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!