Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <iostream>#include <cstdio>#include <cstring>#include <cmath>#include <algorithm>#include <vector>#include <queue>#include <map>#include <set>#include <cmath>#define eps 1e-8#define zero(x) (((x)>0?(x):-(x))<eps)#define pause cout << " press ansy key to continue...", cin >> chh#define file_r(x) freopen(x, "r", stdin)#define file_w(x) freopen(x, "w", stdout)#define lowbit(x) ((x) & (-x))#define repit(i, c) for (__typeof__((c).begin()) i = (c).begin(); i != (c).end(); i++)#define rep(i, n) for (int i = 0; i < (n); i++)#define repe(i, u) for (int i = head[u]; i != -1; i = edge[i].next)#define repd(i, n) for (int i = (n - 1); i >= 0; i--)#define FOR(i, n, m) for (int i = (n); i <= (m); i++)#define FORD(i, n, m) for (int i = (n); i >= (m); i--)#define pb push_back#define X first#define Y second#define ins insert#define rb rbegin#define be begin#define er erase#define mp make_pair