#Lutece0091. Invasion
Invasion
Migrated from Lutece 91 Invasion
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Yesterday, a rocket from the neighbor country hit your country, and caused a big hole. The Field Force measured the length of destroyed wall. As the most prestigious scientist, you are required by goverment to calculate the maximum lethal radius that could cause the disaster of the measured length to estimate the military strength of the neighbor country. The walls in your country are built in the shape of circle or convex polygon.
Input
First line of the input is a single integer (), indicating there are test cases.
The first line of each test case contains a integer () and real number (), which represents number of walls and total destroyed length.
Each of the next lines represents a wall.
means the wall is in the shape of circle with the center in and a radius of .
means the wall is in the shape of convex polygon with points and the coordinate of those points(showed in clockwise order or anti-clockwise order) is .
The last line of the test case contains the coordinate of the landing site of the rocket.
Output
For each case, you should output a single line, first output Case #t:
, where indicating the case number between and . Then a single real number follows, indicating the lethal radius of the rocket.
If it is impossible to cause a disaster with the given destroyed length, output impossible
other than the real number. Besides, if the lethal radius of the rocket can be any real number greater than a particular real number, output inestimable
instead of others.
Round the answer to the second digit after the decimal point.
Samples
3
1 1.0
C 2.0 0.0 1.0
0.0 0.0
1 4.0
P 4 0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0
4.0 4.0
1 5.0
P 4 0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0
4.0 4.0
Case #1: 1.22
Case #2: inestimable
Case #3: impossible
Note
All the numbers used to represent coordinate are real numbers which absolute value are less than .
The total points in the each test case are no more than . The total points here consist of the center of the circle and the points of polygon.
The pictures below are just for fun.
Resources
Sichuan State Programming Contest 2012