首页 > 其他 > 详细

poj2070简单题

时间:2015-05-29 13:30:35      阅读:203      评论:0      收藏:0      [点我收藏+]
#include <stdio.h>
#include <stdlib.h>

int main()
{
    float sped;
    int wei,sth;
    while(scanf("%f %d %d",&sped,&wei,&sth) != EOF)
    {
        int flag=0;
        if(sped==0)
            break;
        if(sped<=4.5 && wei>=150 && sth>=200)
        {
            printf("Wide Receiver ");
            flag=1;
        }
        if(sped<=6.0 && wei>=300 && sth>=500)
        {
            printf("Lineman ");
            flag=1;
        }
        if(sped<=5.0 && wei>=200 && sth>=300)
        {
            printf("Quarterback ");
            flag=1;
        }
        if(flag==0)
            printf("No positions");
        printf("\n");
    }
    return 0;
}

 

poj2070简单题

原文:http://www.cnblogs.com/gabygoole/p/4538014.html

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