eolymp
bolt
Try our new interface for solving problems
Problems

The surface area of the pyramid 2

The surface area of the pyramid 2

Determine the lateral surface area of the right cut square pyramid from the base of \textbf{a}, \textbf{b} and height \textbf{h}. \InputFile In a single line through the gap by reason of the pyramid \textbf{a}, \textbf{b} and height \textbf{h}. All input data are integers, not exceeding \textbf{100}. \OutputFile The search area, the result output to two decimal places.
Time limit 1 second
Memory limit 64 MiB
Input example #1
20 10 10
Output example #1
670.82