
旋转卡壳
吴俊达9812
这个作者很懒,什么都没留下…
展开
-
洛谷P4166 [SCOI2007]最大土地面积
将四边形拆成两个三角形。旋转卡壳经典题。 #include <bits/stdc++.h> using namespace std; typedef long long LL; typedef int lint; const int maxn = 2001; const double eps = 1e-12; const double PI = acos(-1.0); int sg...原创 2019-07-01 23:14:11 · 187 阅读 · 0 评论 -
[HNOI2007]最小矩形覆盖
坑点:如果输出值的绝对值小于 1e-5 那么结果可能输出 -0.00000 ,需要特判一下。 #include <bits/stdc++.h> #define ne(i) p[(i+1)%n] using namespace std; typedef long long LL; typedef int lint; const int maxn = 50001; const dou...原创 2019-07-03 20:20:08 · 221 阅读 · 0 评论