You are on page 1of 3

Windmills in Cubakaland

Time limit: 1000ms


Memory Limit: 256 mb

Figure 1

Londoni is a beautiful city of CubakaLand. It has become a developed city by now.Despite of


the poorest educational status and extint hospitality , The Local people of Londoni city is very
rich .So the Government of Cubakaland on the basis of “Tela Mathay Tel” policy trying to make
Londoni city “The First Renewable Energy City” of Chuakaland.
So for this, 100 CUCS (Cubakaland Civil Service) officers gave their very precious time to pay a
visit to China, only to thank the Chinese government who is selling some windmills but could
not finalize the deal . Because the Main Engineers who are assinged to buy the windmills,didn’t
got Visa ,and could not go with 100 CUCS officers.So the 100 CUCS after “15 days of around
China” tour returned with a very precious information. A selfi with the windmills with the flag
of Cubukaland.The deal finally finalized, after a Cubakaland’s special traditional 10 years delay
on any development project and the Windmills were placed at Londoni city. A windmill consits
of three equal pie slice sized blades as shown in figure.The Arc of the each of the blades

Md. Neyamul Islam Shibbir


2017331047
originated from the Circle whose center is on the rotationg axis of the windmill. As It is “Made
in China” .The position’s of the windmill’s blades is not perfectly symetrical with one another.So
their relative angles may not be equal. Now The CUCS officers can only remember the length L
and the angles θ1,θ 2 ,θ 3 . Each of the blades are pie sliced and as shown in the pictures.
But then the Govt. of Cubukaland faced a huge problem. Because the Local of Londoni don’t
like the name “Pie” .cause it’s related with westran culture.So they are protesting with their
life at hand to remove the pie sized blade.So the Govt decided to remove the Red Curved
portion of the blade even if it may fail the whole project. Now government wants to know the
area of that Red curved portion that need’s to be removed.Now The government is asking
Londoni city’s University “Akhali Boro School” ‘s programmers to help them to solve the
problem.
So Given the length L and θ1,θ 2 ,θ 3.
Find the area of curved portion that needs to be removed shown in figure .
(Error less than 10^-3) is acceptable.
Input:
The first line of the input contains one integer T (1≤n≤100) — the number of Test cases.

The second line of the input contains 4 integers L, θ1,θ 2 ,θ 3(in degree) where L is the length of
the blade from center to corner.And θ1,θ 2 ,θ 3 (in degree) are the relative angles.
Output:
For each test Case Print the area that need to be removed from each of the blade.
Note: Use the value of π as 3.1416
Sample Input:
1
20 30 30 30

Sample output:
114.160

Md. Neyamul Islam Shibbir


2017331047
Data Set:
1. Input: 3
10 60 60 60
2 30 35 60
25 33 34 35

Output: 9.059
0.776
157.319

2. Input: 1
55 60 35 0
Output: 819.978

3. Input: 5
4 45 45 33
22 58 74 13
33 33 33 33
25 30 12 4
66 55 78 41

Output: 3.066
72.982
283.037
268.553
433.766

Md. Neyamul Islam Shibbir


2017331047

You might also like