Here ABC is a isosceles triangle(AC=BC). Angle ACB divided into 3 equal parts ACD,DCE and ECB. Yo will be given the length AD and angle ECB. You have to find the length of CD.
The first will be contains an integer t(1<=t<=100). Which denotes the number of test cases.
The next t lines will contain two integer numbers x and y. Where x denotes the angle of ECB and y denotes length of AD.(1<=x<=50 degree, 1<=y<=1e9)
You have to print the length of CD. The error less than 1e-6 is accepted.
Input | Output |
---|---|
1 30 1 | 1.4142135624 |
The figure is not drawn accurately to the description. Please follow the description.