L1-031 到底是不是太胖了 (10 分)

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
 int n;
 int h,w;
 float bz;
 scanf("%d",&n);
 while(n--){
  scanf("%d %d",&h,&w);
  bz=(h-100)*0.9*2;  //将小精度转化为大精度 
  
   if(fabs(w-bz)<bz*0.1)      printf("You are wan mei!\n");
   else if(w>bz) printf("You are tai pang le!\n");
   else printf("You are tai shou le!\n");
   
  }
 return 0;
}

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2021-10-02
  • 2022-01-25
  • 2021-12-04
  • 2021-04-26
  • 2021-05-17
  • 2021-09-19
猜你喜欢
  • 2022-02-25
  • 2021-06-27
  • 2021-10-15
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案