#PCBBAY0000045. Mật độ (Density)
Mật độ (Density)
Density
Version: Phuoc Hung OJ Extended
Problem Statement
Given an object’s mass and positive volume , its density is . Compute the density and print exactly 4 decimal places. The resulting unit is mass per unit volume.
Input
The only line contains real mass and volume , in that order.
Output
Print the density with exactly 4 decimal places.
Subtasks
- Subtask 1 (100 points): ; .
Examples
Example 1
Input
10 2
Output
5.0000
Explanation. Substituting 10, 2 into m / v gives approximately 5. The required output formatting produces 5.0000.
Example 2
Input
1 3
Output
0.3333
Explanation. Substituting 1, 3 into m / v gives approximately 0.333333333333. The required output formatting produces 0.3333.
Example 3
Input
12.5 0.25
Output
50.0000
Explanation. Substituting 12.5, 0.25 into m / v gives approximately 50. The required output formatting produces 50.0000.