eolymp
bolt
Try our new interface for solving problems
Problems

Surface area of pyramid 4

Surface area of pyramid 4

Find the total surface area of the right square pyramid if the lateral edge \textbf{b} forms an angle \textbf{α} with the plane of the base. \InputFile In the only flow through the gap two integers: the lateral edge of \textbf{b} (\textbf{0} < \textbf{b ≤ 100}) and its angle \textbf{α} with the base plane in degrees (\textbf{0} < \textbf{α ≤ 90}). \OutputFile The only number - the desired area. Result output to three decimal.
Time limit 1 second
Memory limit 64 MiB
Input example #1
4 45
Output example #1
43.713