#include<iostream>
#include<cstdio>
#include<algorithm>
#include<string>
#include<cstring>
#include <vector>
#include <cmath>
#include <iomanip>
#define ll long long
using namespace std;
int main()
{
int n,sg,tz;
double bz,zstz;
cin>>n;
while(n--){
cin>>sg>>tz;
zstz = tz/2.0;
bz = (sg-100)*0.9;
if(fabs(zstz-bz)<bz *0.1)
cout<<"You are wan mei!"<<endl;
else if(zstz>bz)//之前这里写成zstz>=bz*1.1,zstz<=bz*0.9,有一个测试点没过
cout<<"You are tai pang le!"<<endl;
else if(zstz<bz)
cout<<"You are tai shou le!"<<endl;
}
return 0;
}
pat-天梯赛-L1-031 到底是不是太胖了(10 )
猜你喜欢
转载自blog.csdn.net/hzyhfxt/article/details/81776866
今日推荐
周排行