Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <cstdio>#include <cstring>#include <algorithm>using namespace std;struct Point{double x, y;int id;Point(double x = 0, double y = 0): x(x), y(y) {}bool operator < (const Point& rhs) const{return x < rhs.x || (x == rhs.x && y < rhs.y);}};Point tmp[100];Point tmp2[100];Point tmp3[100];int pos;int N, M, G, P;Point tower[100];Point city[100];int ans;Point operator - (Point A, Point B){return Point(A.x - B.x, A.y - B.y);}