#include <iostream>
#include <string>
using namespace std;
int InNum = 0;
float height = 0;
float weight = 0;
void Judge_Weight(float height, float weight);
int main()
{
cin >> InNum;
while (InNum--)
{
cin >> height >> weight;
Judge_Weight(height, weight);
}
return 0;
}
void Judge_Weight(float height, float weight)
{
float Std_Weight = (height - 100) * 0.9 * 2;
if (Std_Weight >= weight)
{
if(Std_Weight - weight >= Std_Weight / 10)
{
cout << "You are tai shou le!" << endl;
}
else
{
cout << "You are wan mei!" << endl;
}
return;
}
else
{
if (weight - Std_Weight >= Std_Weight / 10)
{
cout << "You are tai pang le!" << endl;
}
else
{
cout << "You are wan mei!" << endl;
}
return;
}
return;
}
PTA - L1-031 到底是不是太胖了
最新推荐文章于 2024-08-09 10:25:03 发布