#include<iostream> using namespace std; int x[1010];//记录出现的点 int y[1010]; int ul[101]; int findv(int v) { while(v != ul[v]) { ul[v] = ul[ul[v]]; v = ul[v]; } return v; } void unionv(int v,int u) { int x = findv(u); int y = findv(v); if(x == y) return...