BMI Weight Range


Submit solution

Points: 5 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Java 19, Java 8

衛生署建議國人BMI值維持於18.5~24間, 請根據輸入之身高計算理想體重範圍。

【BMI計算】 BMI = 體重(公斤) / 身高平方(平方公尺)

Input

身高h(公尺)

Output

理想體重範圍(公斤) w1 ~ w2,w1 < w2
w1, w2請四捨五入至小數後兩位。

Sample Input1

1.72

Sample Output1

Your height is 1.72, your weight should between: 54.73 ~ 71.00

Sample Input2

1.53

Sample Output2

Your height is 1.53, your weight should between: 43.31 ~ 56.18

Comments

There are no comments at the moment.