Area and volume of the pyramid
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Party established the right square pyramid d, lateral rib p. Determine total surface area and volume of the pyramid.
Input
In a single line through the space base and side edge. The input data does not exceed 100.
Output
Through the gap the required area and volume, the result output to three decimal places.
Examples
Input #1
Answer #1
Submissions 4K
Acceptance rate 44%