
半平面交
算球?
在校学生
展开
-
poj 3384 Feng Shui(半平面交)
思路:将边内推r后求半平面交,然后再在所得的凸多边形上寻找最远点对 不过我不会内推r,这很尴尬。。。在做poj 3525的时候也要把边内推一定距离,但是做那个题的方法放到这个题里就错了,也不知道为啥,就看了看别人题解里内推r的办法。#include <iostream> #include <algorithm> #include <cmath> #include <iomanip> using n原创 2017-04-21 20:10:10 · 323 阅读 · 0 评论 -
poj 1279 Art Gallery(半平面交)
计算的时候我是假设点输入的顺序是按顺时针输入的,ac了,然而题目并没有说点是顺时针输入。。。。。直接上模板#include <cstdio> #include <cstring> #include <cmath>const int MAXN = 1510;struct Point { double x,y; Point() {} Point(double _x,double原创 2017-04-19 14:36:32 · 315 阅读 · 0 评论 -
poj 3525 Most Distant Point from the Sea(二分+半平面交)
参考:http://blog.youkuaiyun.com/FXXKI/article/details/45674979 看完别人写的发现思路还是挺简单的#include <cstdio> #include <cmath> #include <cstring> #include <algorithm> using namespace std;const int MAXN = 110; const double原创 2017-04-20 18:12:45 · 347 阅读 · 0 评论 -
poj 1474 Video Surveillance(半平面交)
直接套模板#include <cstdio> #include <cstring> #include <cmath>const int MAXN = 110;struct Point { double x,y; Point() {} Point(double _x,double _y) { x = _x; y = _y; }原创 2017-04-19 13:47:44 · 301 阅读 · 0 评论 -
poj 3335 Rotating Scoreboard(半平面交)
刚开始学习半平面交,水个模板题,直接上模板 #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <string> #include <queue> #include <algorithm> #include <iostream>using namespace std;const doubl原创 2017-04-18 20:53:24 · 315 阅读 · 0 评论