Bees are very hard working insects and they are also very good at geometry. In order to minimize the unusable space, they build there living cells in the shape of hexagons. When Tzaz came to know this fact, he was amazed and thought about hexagons. After drawing some figures similar to a bee hive, he found an interesting problem. Tzaz loves challenging problem solvers with many tasks. So he now challenges you with the following problem:
First, you make a regular hexagon with side-length equal to . Then, to surround that hexagon, you draw more regular hexagons with length equal to . First hexagon is numbered as layer 1 and the second step creates layer 2. This process continues for layers. But you have a maximum limit of usable spaces. You have a circular space within which you have to build your hexagonal structure. The radius of the circular space is . Now, you will be given the value of and , your job is to maximize the total space covered by the hexagons. For , the structure will look like this:
First line contains an integer (), denoting the number of test cases to be followed. Each of the next lines contain 2 integers and ().
For each case, print the area of a single hexagon for which the total utilized area in the above discussed manner will be maximized. Error less than will be ignored.
Input | Output |
---|---|
2 1 100 100 2023 | 25980.76211353 357.99138881 |