favorite We need a little bit of your help to keep things running, click on this banner to learn more

Area and volume of the pyramid

Area and volume of the pyramid

Party established the right square pyramid d, lateral rib p.Determine total surface area and volume of the pyramid.


In a single line through the space base and side edge. The input data does not exceed 100.


Through the gap the required area and volume, the result output to three decimal places.

Time limit 1 second
Memory limit 128 MiB
Input example #1
20 15
Output example #1
847.214 666.667