Limits 1s, 512 MB

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.

Input

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)

Output

You have to print the length of CD. The error less than 1e-6 is accepted.

Sample

InputOutput
1
30 1
1.4142135624

The figure is not drawn accurately to the description. Please follow the description.

Submit

Login to submit.

Statistics

90% Solution Ratio
rifattangirEarliest, May '20
rifattangirFastest, 0.0s
rifattangirLightest, 0 B
protik_07Shortest, 269B
Toph uses cookies. By continuing you agree to our Cookie Policy.