建議自己電腦上實現的就不要在這上面浪費時間了,估計判定又出問題了。。。
printf能AC,而cout就WA。。。
#include<stdio.h>
int main()


{
double speed,weight,strength;
bool flag;
while(scanf("%lf%lf%lf",&speed,&weight,&strength)&&speed&&weight&&strength)

{
flag=0;
if((speed<=4.5)&&(weight>=150)&&(strength>=200))

{
printf("Wide Receiver ");
flag=1;
}
if((speed<=6.0)&&(weight>=300)&&(strength>=500))

{
printf("Lineman ");
flag=1;
}
if((speed<=5.0)&&(weight>=200)&&(strength>=300))

{
printf("Quarterback ");
flag=1;
}
if(!flag)printf("No positions");
printf("\n");
}
return 0;
}
printf能AC,而cout就WA。。。
#include<stdio.h>
int main()

{
double speed,weight,strength;
bool flag;
while(scanf("%lf%lf%lf",&speed,&weight,&strength)&&speed&&weight&&strength)
{
flag=0;
if((speed<=4.5)&&(weight>=150)&&(strength>=200))
{
printf("Wide Receiver ");
flag=1;
}
if((speed<=6.0)&&(weight>=300)&&(strength>=500))
{
printf("Lineman ");
flag=1;
}
if((speed<=5.0)&&(weight>=200)&&(strength>=300))
{
printf("Quarterback ");
flag=1;
}
if(!flag)printf("No positions");
printf("\n");
}
return 0;
}

