~/algor $ cat contests/round-7/AO
AO. Truncated cone
Problem AO
ICPC rules
1000 ms
64 MB
The base radii and of a truncated cone (frustum) and its height are given. Find its slant height , volume and total surface area (the total surface is the two bases plus the lateral surface):
Use .
Input
One line with three positive integers: , and .
Output
One line with three numbers: , and , each with exactly 2 digits after the decimal point (for example, 5.00).
Note
Examples
Input #1
6 3 4
Output #1
5.00 263.89 282.74
Input #2
3 1 3
Output #2
3.61 40.84 76.72