#Lutece2881. 地毯
地毯
Migrated from Lutece 2881 地毯
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
大兔子住在一个形状是凸多边形的房子内,他想在房子内铺三张地毯。三张地毯均是半径为 的圆形,整个地毯必须位于房子内,不过地毯之间可以有重叠。如果三张地毯的圆心坐标分别是 , , ,那么第一张地毯的美丽度为 ,第二张地毯的美丽度为 ,第三张地毯的美丽度为 ,三张地毯的总美丽度为 。请问大兔子能得到的最大的总美丽度是多少。
Input
第一行包含一个整数 (),表示数据组数。
对于每组数据,第一行包含两个整数 和 (, ),分别表示凸多边形的顶点数和地毯的半径。
接下来 行每行两个整数 (),表示凸多边形的顶点坐标,按顺时针顺序给出。
输入保证一定有铺地毯的方案。
Output
对于每组数据,输出最大的总美丽度。请使用科学计数法的方式输出,保留七位有效数字(即 printf("%e\n", ans)
)。
Samples
2
5 2
-2 0
-5 3
0 8
7 3
5 0
4 1
0 0
0 3
3 3
3 0
1.771543e+01
1.000000e+00
Resources
2022, 2023 UESTC ICPC Training for Geometry