markdown 在线制作ppt json校验和格式化工具

POJ 2070

#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

posted @ 2015-06-10 16:59  GavinHacker  阅读(192)  评论(0编辑  收藏  举报
markdown 在线制作ppt json校验和格式化工具