摘要: 1.并查集操作: 1 int father[10086]; 2 int find(int x){ 3 return father[x]=(father[x]==x?x:find(father[x]));//一般都是写这个模板,因为他快,不会超时!!! 4 } 5 void Union(int a,i 阅读全文