eolymp
bolt
Try our new interface for solving problems
Problems

Maximal Quadrilateral

Maximal Quadrilateral

A circle is inscribed in a quadrilateral and the circle touches all four sides of it. Given the perimeter and the length of two adjacent sides of the quadrilateral, you will have to find the maximum possible radius of the circle. \InputFile The first line of the input file contains an integer \textbf{n} (\textbf{n} ≤ \textbf{100}) that indicates how many sets of input are there. Each of the next \textbf{n} lines contains three integers \textbf{p}, \textbf{a}, \textbf{b}. Here \textbf{p} is the perimeter and \textbf{a}, \textbf{b} are the length of two adjacent sides of the quadrilateral. \OutputFile For each line of input except the first one, produce one line of output. This line should contain the serial of the output and then the maximum possible radius of the circle. The radius should have six digits after the decimal point. If the formation of such a quadrilateral is impossible then print the line "Eta Shombhob Na." (Sorry! It is a sentence in Bangla, which means "This is impossible."). The lengths of all sides of a valid quadrilateral should be positive.
Time limit 1 second
Memory limit 64 MiB
Input example #1
2
20 5 6
20 10 12
Output example #1
Case 1: 2.449490
Case 2: Eta Shombhob Na.