#include<cmath>
#include<cstdio>
int main(){
int n;
int h,w;//身高和体重
double bw,x;
scanf("%d",&n);
while(n--){
scanf("%d%d",&h,&w);
bw = (h - 100)*0.9 * 2;//标准体重
x = fabs(bw - w);//取浮点类型的绝对值
if(w >= bw){
if(x < bw*0.1)
printf("You are wan mei!\n");
else
printf("You are tai pang le!\n");
}
else{
if(x < bw*0.1)
printf("You are wan mei!\n");
else
printf("You are tai shou le!\n");
}
}
return 0;
}
7-40 到底是不是太胖了 (10分)
猜你喜欢
转载自blog.csdn.net/qq_38054511/article/details/104052023
今日推荐
周排行