注意:浮点型的绝对值用fabs()函数
#include <stdio.h>
#include <math.h>
int main()
{
int n;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
int h,w;
double s;
scanf("%d%d",&h,&w);
s=(h-100)*0.9*2;
if(fabs(w-s)<s*0.1) //浮点型的绝对值用fabs()函数
printf("You are wan mei!\n");
else if(w<s)
printf("You are tai shou le!\n");
else
printf("You are tai pang le!\n");
}
return 0;
}