题目描述
Problem Description
The BMI (Body Mass Index) is an internationally used standard to measure the degree of obesity. The algorithm is $\dfrac{m}{h^2}$, where $m$ is the weight in kilograms and $h$ is the height in meters. The different body size ranges and their corresponding judgments are as follows:
- Less than $18.5$: Underweight, output
Underweight; - Greater than or equal to $18.5$ and less than $24$: Normal weight, output
Normal; - Greater than or equal to $24$: Obese, not only output the BMI value (using the default precision of
cout), followed by a newline, but also outputOverweight;
Given the weight and height data, you need to determine the body type status based on the BMI index and output the corresponding judgment.
For languages other than C++, when outputting, please round to six significant digits. If there are trailing zeros in the decimal part, do not output the trailing zeros.
Note that retaining six significant digits is not the same as retaining six decimal places. For example, $123.4567$ should be output as $123.457$, and $5432.10$ should be output as $5432.1$.
Input Format
A single line.
The first line contains two floating-point numbers, $m, h$, representing the weight in kilograms and the height in meters, respectively.
Output Format
Output a single line containing a string, representing the corresponding judgment based on the BMI. Specifically, for the Overweight case, please refer to the description in the problem.
Sample Input and Output
Sample Input #1
70 1.72
Sample Output #1
Normal
Sample Input #2
100 1.68
Sample Output #2
35.4308
Overweight
Notes
For all data, $40 \le m \le 120$, $1.4 \le h \le 2.0$. The decimal places of $m$ and $h$ do not exceed three.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分