Simon 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
Apparently you don't need to round to two digits?
this one was difficult :(
I tried that pi must be 22/7in py3
Apparently and both work as approximations of pi...
if you have problems with this value
Don't worry about decimal numbers in PI
PI = 3.141592653589793 & PI = 3.14 - Worked Fine
You need to use the iomanip library if working in C++. Using 3.14 as pi is fine, just make sure to declare the variables in the order they appear otherwise DMOJ might interpret it as incorrect.
What is the value of π? I know it is 3.14159...
but will i round it off to 3.14?
If you read the output specification, it says in what cases your output will be accepted. In this case, it is fine to use 3.14 as π. If you have more questions, it would be easier to join the DMOJ Discord to get faster responses instead of commenting on each problem.
Admin Edit: fixed to become reply :)