#t212. 计算球的体积
计算球的体积
Sphere Volume
Problem Description
For a sphere of radius , its volume is given by .
Given , compute .
Input Format
A single non-negative real number not exceeding , i.e. the sphere's radius, of type double.
Output Format
A single real number, the volume of the sphere, kept to 2 decimal places.
Sample Input
4
Sample Output
268.08
Hint
- Formula: . Three pitfalls to check yourself: ① what is the value of
4/3? ② is the precision of good enough (same issue as the pi problem)? ③ how do you write ? - Keep 2 decimal places.
- Verify with the sample:
4→268.08.