摘要:
1 #include<iostream> 2 #include<stdio.h> 3 #include<math.h> 4 #include<string.h> 5 using namespace std; 6 int a[50100]; 7 int find(int x){ 8 if (a[x]==x) return x; 9 else {10 a[x]=find(a[x]);11 return a[x];12 }13 }14 int main()15 {16 freopen("input.txt","r" 阅读全文