Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include<cstdio>#include<cstring>#include<algorithm>#include<vector>#include<cmath>#define eps 1e-8#define N 110using namespace std;int dlcmp(double x) {return x<-eps?-1:x>eps;}double sqr(double x) {return x*x;}struct Point{double x,y;Point(){}Point(double a, double b):x(a),y(b){}Point operator - (const Point& p) const {return Point (x-p.x, y-p.y);}void input() {scanf("%lf%lf",&x,&y);}};double cross(Point a, Point b){return a.x*b.y-b.x*a.y;}double dis(Point a,Point b){return sqrt(sqr(a.x-b.x)+sqr(a.y-b.y));}Point pt[N],pln[N];Point tower[N],city[N];int cmp(const Point& a, const Point& b){if (dlcmp(cross(a-pt[0],b-pt[0]))==1||dlcmp(cross(a-pt[0],b-pt[0]))==0&&