DMOPC '14 Contest 5 P1 - Core Drill
View as PDFSimon got a new drill recently. Everyone knows that a drill is shaped like a right circular cone. Simon knows his drill has radius and height
. But now he wants to calculate the volume. Write a program to help Simon!
Input Specification
The first line of input will have an integer
.
The second line of input will have an integer
.
Output Specification
The first line of output should have the volume of Simon's drill. The output will be accepted if it's within an absolute or relative error of .
Sample Input
3
5
Sample Output
47.12
Hint
is the volume of the right circular cone with radius
and height
.
Comments
This evaluates to wrong if you use text to prompt the User. The input() function has to be blank. (on python 3)
The identical checker is being used. Follow the standard convention of having all lines terminate in a \n character, with no trailing whitespace.
I have not even learned about volume of cone!!!!!!!!
This comment is hidden due to too much negative feedback. Show it anyway.
why?