输入样例:
3
169 136
150 81
178 155
输出样例:
You are wan mei!
You are tai shou le!
You are tai pang le!
#include<bits/stdc++.h>
using namespace std;
int main()
{
int N = 0;
cin >> N;
while (N--) {
double H, W;
cin >> H >> W;
double x = (H - 100) * 0.9 * 2;
if (fabs(W - x) < x * 0.1) {
cout << "You are wan mei!" << endl;
}
else if(x < W){
cout << "You are tai pang le!" << endl;
}else{
cout << "You are tai shou le!" << endl;
}
}
return 0;
}