
计算几何
numberer
这个作者很懒,什么都没留下…
展开
-
hdu 4082 计算几何 相似三角形
#include using namespace std; struct Cos{ long long x,y; bool operator < (Cos A) { double x1,x2,y1,y2; x1=x; x2=A.x; y1=y; y2=A.y; return原创 2017-11-07 14:48:26 · 309 阅读 · 0 评论 -
最远点对 白书模板
#include using namespace std; #define sqr(x) ((x)*(x)) const int maxn = 50005; const double EPS = 1e-10; double add(double a, double b) { if (abs(a + b)<EPS*(abs(a) + abs(b))) return 0; retur原创 2018-04-01 23:55:36 · 195 阅读 · 0 评论