随笔分类 - 算法学习记录
摘要:double eps = 1e-10; struct point { double x, y; } Point[maxn], P2[maxn]; struct line { point a, b; }; double area_polygon(int n, point *p) { double s1
阅读全文
摘要:// todo 常量定义 const double esp = 1e-9; const double pi = acos(-1); const ll inf = 0x3f3f3f3f3f3f3f3f; const ll maxn = 1e5 + 7; // todo 三态函数 int dcmp(do
阅读全文