logo AlgoBeat OnlineJudge
登录 注册

#208759. [CCC 2008 J1] Body Mass Index

内存限制:128 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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:

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 Overweight
Between and (inclusive) Normal weight
Less than Underweight

输入格式

On the first line, enter your weight, and on the second line, enter your height (in meters).

输出格式

Output the information corresponding to the BMI value obtained.

样例

样例输入 1

69
1.73

样例输出 1

Normal weight

样例输入 2

84.5
1.8

样例输出 2

Overweight

数据范围与提示

Explanation for Output in Sample Input 1:

The BMI is , which is approximately . According to the table, this is a "Normal weight".

Explanation for Output in Sample Input 2:

The BMI is , which is approximately . According to the table, this is "Overweight".