poj2070简单题

#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;

}

 

你可能感兴趣的:(poj)