The surface area of the cone
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Calculate the total surface area of a truncated cone, if we know the base radius R, r and height h.
Input
In a single line of succession through a gap defined, respectively, the base radius R, r and height h. All input data are integers, not exceeding 100.
Output
In a single line to bring the total surface area of a truncated cone. Result output to two decimal places.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 50%