摘要: 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" 阅读全文
posted @ 2013-05-20 21:16 闭关修炼的小孩纸 阅读(157) 评论(0) 推荐(0) 编辑