There are 2 circles with the radius and and they are sharing a common center .
The space between the two circles is cut into sections (the given image has 8 sections). You need to determine the maximum radius of the circle that can be drawn in each section with these rules,
The circle needs to be inside the section, will not intersect with another section or the smaller circle.
is the center of the circle you are going to draw
is the center of the arc
The line should be a straight line
Input starts with an integer () denoting the number of test cases.
Each case starts with a line containing 3 integer , (), ().
For each case print the maximum radius of the circle that can be drawn in each section on each line.
Errors less than will be ignored.
Input | Output |
---|---|
1 10 5 5 | 2.5 |