Limits 1s, 512 MB

In geometry, an isosceles triangle is a triangle that has two sides of equal length. Sometimes it is specified as having exactly two sides of equal length, and sometimes as having at least two sides of equal length, the latter version thus including the equilateral triangle as a special case.

You are given an isosceles triangle of OCDOCD where OD=OCOD = OC and OA=OBOA = OB. As you are good in mathematics you have to calculate the area of ABCDABCD where you will be given the angle of COD∠COD and the value of ODOD and OAOA respectively.

Input

The Input starts with an integer TT (1T10001 \le T ≤ 1000), denoting the number of test cases.

Each case contains three floating point numbers the value of COD∠COD (in radian, 0COD10000 ≤ ∠COD ≤ 1000), OAOA (0OA10000 ≤ OA ≤ 1000) and OCOC (0OC10000000 ≤ OC ≤ 1000000).

Output

For each case, print the case number and the area of ABCDABCD rounded to eight places after the decimal point.

Sample

InputOutput
4
0.2 2 5
1 2 3
3 10 170
0.000000000000001111111 0.02222258 11111.111111111115
Case 1: 2.08336663
Case 2: 1.78661943
Case 3: 1889.18411647
Case 4: 0.00000007

The area of an isosceles triangle is 12×ab×sin(θ)\frac{1}{2} \times ab \times sin(θ)

Submit

Login to submit.

Statistics

92% Solution Ratio
NAbdullaEarliest, Apr '19
NAbdullaFastest, 0.0s
N550999.Lightest, 0 B
mdvirusShortest, 137B
Toph uses cookies. By continuing you agree to our Cookie Policy.