Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <cstdio>#include <cstdlib>#include <cstring>#include <algorithm>#include <cmath>using namespace std;#define N 110#define INF 2000000000#define EPS 1e-8inline int zero(double x) {if (x < -EPS) return -1;else if (fabs(x) < EPS) return 0;else return 1;}struct point {double x, y;point() {}point(double x,double y): x(x), y(y) {}point operator - (const point &p) const {return point(x - p.x, y - p.y);}point operator * (double val) const {return point(x * val, y * val);}point operator + (const point &p) const {return point(x + p.x, y + p.y);