要求包围所有n个点并且距所有点距离大于L的多边形周长
这个多边形的周长可以通过凸包上的边做平移加上一个半径L的圆辅助转向得到
所以就是求凸包周长加上圆周长
主要是为了试试凸包的接口,实现用的是Graham,应该是单调栈吧?
//#include //#pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include #include #include
贴一个不用kb模板的轻量化板子:
//#include //#pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include #include #include