Every week, SUST CP Training Camp organizes classes on different topics for 3 different categories: Beginner, Intermediate, and Advanced. The topic for this week's intermediate class was $$$Basic-Geometry$$$ and the class was taken by our very own Geo Boss.
At the start of the class, Boss drew the following triangle on the board:
Illustration of Sample Input. The value of the angles A,B,C are 45, 90, 45 degrees respectively. Hence the maximum angle's value is 90 degrees Then, he asked the students, what is the largest angle in the triangle. Upon inspecting the picture, everyone shouted, "angle B". Further, he drew some random triangles, they have to find the value of the largest angle of the triangle. But it was a piece of cake for them. So he added some twist. Instead of giving the triangle directly, he just provided the $$$Sin$$$ values of the angles. More formally, he gave the students 3 double values representing $$$Sin(A), Sin(B), Sin(C)$$$, and they were asked to find the largest angle's value. Since students had the knowledge of trigonometry and inverse trigonometry, they said the problem is too easy. Boss gave a sly smile.
We don't know whether the students could solve the problem. Can you solve it?
Note, for this problem angles' values are guaranteed to be integers.
The first line contains an integer $$$t$$$ $$$(1 \leq t \leq 15931)$$$ – denoting the number of testcases.
Following $$$t$$$ lines each contain 3 double values $$$Sin(A), Sin(B), Sin(C)$$$ $$$(0 \lt Sin(A), Sin(B), Sin(C) \leq 1)$$$ each with 9 decimal digits.
It is guaranteed that all the values of $$$A, B, C$$$ are integers and represent a valid triangle.
For each case, output one integer – the value of the largest angle in degrees.
10.707106781 1.000000000 0.707106781
90
You can use pi($$$\pi$$$) = acos(-1.0).
You can use round() function available in C++ if needed. round() function converts a double to the nearest integer.