当前位置:网站首页>Is l1-031 too fat (10 points)
Is l1-031 too fat (10 points)
2022-06-29 00:29:00 【Liabilities between persons^】
L1-031 Is it too fat (10 branch )
It is said that a person's standard weight should be his height ( Company : centimeter ) subtract 100、 Multiplied by 0.9 The kilogram obtained . The error between the real weight and the standard weight is 10% Inside is the perfect figure ( namely | True weight − Standard weight | < Standard weight ×10%). It is known that the market weight is twice the kilogram . Now give a group of people's height and actual weight , Please tell them if they are too fat or too thin .
Input format :
The first line of input gives a positive integer N(≤ 20). And then N That's ok , Each line gives two integers , They are the height of a person H(120 < H < 200; Company : centimeter ) And real weight W(50 < W ≤ 300; Company : Jin ), Separated by spaces .
Output format :
Output a line of conclusions for everyone : If it's the perfect body , Output You are wan mei!; If it's too fat , Output You are tai pang le!; Otherwise output You are tai shou le!.
sample input :
3
169 136
150 81
178 155
sample output :
You are wan mei!
You are tai shou le!
You are tai pang le!
AC Code
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<sstream>
using namespace std;
typedef long long ll;
const int N=100010;
int main()
{
int n;
cin >> n;
while(n -- )
{
double a, b;
cin >> a >> b;
a = (a - 100) * 0.9 * 2;
if(fabs(a - b) < a * 0.1)
cout << "You are wan mei!" << endl;
else if(b < a)
cout << "You are tai shou le!" << endl;
else
cout << "You are tai pang le!" << endl;
}
return 0;
}
边栏推荐
- 10. Yolo series
- Daily question 1: the number of numbers in the array
- 滑环的基本结构及工作原理分析
- 旋转接头安装使用注意事项
- HandlerThread使用及原理
- MNIST handwritten numeral recognition demo based on pytorch framework
- MSYQL is abnormal. Don't worry. Mr. Allen will point out the puzzle
- Typescript -- Section 2: variable declaration
- PHP function file_ get_ Contents and memory mapping of operating system
- WPF implementation calls local camera~
猜你喜欢
随机推荐
Typescript -- Section 2: variable declaration
With notes: insert sort --from WCC
Cross domain problem of canvas drawing caused by background image cache
畢業三年的25歲碼農總結
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
机器视觉系统的配件及工作过程
The company has a new Post-00 test paper king. The old oilman said that he could not do it. He has been
If you can play these four we media operation tools, the sideline income of 6000+ is very easy
HandlerThread使用及原理
LG. Hankson's interesting questions, C language
Realization of beauty system with MATLAB
Is it safe to open an account on great wisdom
MNIST handwritten numeral recognition demo based on pytorch framework
[200 opencv routines] 101 adaptive median filter
请问同花顺上开户安全吗
[buuctf.reverse] 131-135
手下两个应届生:一个踏实喜欢加班,一个技术强挑活,怎么选??
Software testing tools: complete and precise
Introduction to four MySQL engines
Excel使用过程中的参考资料

![[buuctf.reverse] 131-135](/img/c2/b8b06c8191af2c75bf4ad5c82feaea.png)






