1632 - Sheep’s Toy I
Time Limit : 1 Second
Memory Limit : 128 MB
Submission: 182
Solved: 43
- Description
Sheep is a very clever boy in 2D world, and he has a square-shaped toy.
One day he rotates the square on its center, and wants to know the total area that the square covers in the motion.
Remember not to count a point more than once.
See sample for more details.
- Input
- The first line of the input contains an integer T (1<=T<=10^4) indicating the number of test cases.
For each test case:
There’s only one line containing two numbers L(0<L<10^5), the side length of the square, and A(0<=A<10^5),
the angle that Sheep rotates in degree.
- Output
- For each test case, output a single line containing the required area, rounded to two decimals.
- sample input
-
2 10 0 10 90
- sample output
-
100.00 157.08
- hint
- source
- The 8th(2013) ACM Programming Contest of HUST