ICode9

精准搜索请尝试: 精确搜索
  • [ 模板 ] 求凸包面积2022-08-13 18:30:28

    先求凸const int N=1e6; struct Point { double x,y; double operator ^(const Point &b)const { return x*b.y - y*b.x; } }; Point stackk[N]; //凸包中所有点,下标从0....top开始 Point p[N]; //存入的所有点 Point MinA; int top; d

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有