#include #include #include #include #include #include #include #include using namespace std; #include #include #include #include #include #include #include ; #define cler(arr, val) memset(arr, val, sizeof(arr)) typedef long long LL; const int MAXN = 200010; const int MAXM = 200006; const int INF = 0x3f3f3f3f; const int mod = 10000007; LL point[MAXN],num[MAXN]; vectoredge[MAXN]; bool vis[MAXN]; LL abs1(LL a) { if(a>0) return a; else return -a; } void dfs(int u) { vis[u]=true; for(int i=0;i