Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <cstdio>#include <cstdlib>#include <cstring>#include <ctime>#include <cmath>#include <iostream>#include <algorithm>using namespace std;int read(){char ch;for (ch = getchar(); ch < '0' || ch > '9'; ch = getchar());int cnt = 0;for (; ch >= '0' && ch <= '9'; ch = getchar()) cnt = cnt * 10 + ch - '0';return cnt;}struct node{int x, y, position;void Swap(node &A){swap(x, A.x);swap(y, A.y);swap(position, A.position);}node operator - (node &A){node res;res.x = x - A.x; res.y = y - A.y;res.position = position;return res;}