[CCC 2008 J1] Body Mass Index

Luogu
IDLGP9854
Time1000ms
Memory128MB
DifficultyP1
2008CCC(加拿大)
The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in metres) and weight (in kilograms), then calculates the BMI using the formula: $$\text{BMI} = \dfrac{\text{weight}}{\text{height} \times \text{height}}$$ Write a program which prompts for the patient’s height and weight, calculates the BMI, and displays the corresponding message from the table below. | BMI Category | Message | | :----------: | :----------: | | More than $25$ | Overweight | | Between $18.5$ and $25.0$ (inclusive) | Normal weight | | Less than $18.5$ | Underweight | ## Input On the first line, enter your weight, and on the second line, enter your height (in meters). ## Output Output the information corresponding to the BMI value obtained. [samples] ## Note **Explanation for Output in Sample Input 1**: The BMI is $69 \div (1.73 \times 1.73)$, which is approximately $23.0545$. According to the table, this is a "Normal weight". **Explanation for Output in Sample Input 2**: The BMI is $84.5 \div (1.8 \times 1.8)$, which is approximately $26.0802$. According to the table, this is "Overweight".
Samples
Input #1
69
1.73
Output #1
Normal weight
Input #2
84.5
1.8
Output #2
Overweight
API Response (JSON)
{
  "problem": {
    "name": "[CCC 2008 J1] Body Mass Index",
    "description": {
      "content": "The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in metres) and weight (in kilograms), then calculates the BM",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGP9854"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in metres) and weight (in kilograms), then calculates the BM...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments