#PCBBAY0000060. Thể tích hình trụ (Cylinder Volume)
Thể tích hình trụ (Cylinder Volume)
Cylinder Volume
Version: Phuoc Hung OJ Extended
Problem Statement
A right circular cylinder has base radius and height . Its volume is . Use Python 3 math.pi and print exactly 4 decimal places.
Input
The only line contains real base radius and height of the cylinder.
Output
Print cylinder volume with exactly 4 decimal places.
Subtasks
- Subtask 1 (100 points): .
Examples
Example 1
Input
1 2
Output
6.2832
Explanation. Substituting 1, 2 into π × r² × h gives approximately 6.28318530718. The required output formatting produces 6.2832.
Example 2
Input
2.5 4
Output
78.5398
Explanation. Substituting 2.5, 4 into π × r² × h gives approximately 78.5398163397. The required output formatting produces 78.5398.
Example 3
Input
0 10
Output
0.0000
Explanation. Substituting 0, 10 into π × r² × h gives approximately 0. The required output formatting produces 0.0000.