#PCBBAY0000048. Chỉ số BMI (Body Mass Index)
Chỉ số BMI (Body Mass Index)
Body Mass Index
Version: Phuoc Hung OJ Extended
Problem Statement
Given weight in kilograms and height in metres, compute the body mass index . Print the numeric index with exactly 2 decimal places; no BMI category classification is required.
Input
The only line contains real weight (kg) and height (m).
Output
Print BMI with exactly 2 decimal places.
Subtasks
- Subtask 1 (100 points): ; .
Examples
Example 1
Input
60 1.7
Output
20.76
Explanation. Substituting 60, 1.7 into w / h² gives approximately 20.7612456747. The required output formatting produces 20.76.
Example 2
Input
80 1.8
Output
24.69
Explanation. Substituting 80, 1.8 into w / h² gives approximately 24.6913580247. The required output formatting produces 24.69.
Example 3
Input
45 1.5
Output
20.00
Explanation. Substituting 45, 1.5 into w / h² gives approximately 20. The required output formatting produces 20.00.