摘要: 1021: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 #define N 10005 8 vector v[N]; 9 queue q;10 int tree[N],h[N],dis[N],vis[N];11 int n,maxh;12 13 int findroot(int x){14 if(tree[x]==-1)15 return x;16 else{17 int tmp=findroot(tree[x]);18 tree[... 阅读全文
posted @ 2014-02-27 00:41 塞北鸿雁飞 阅读(225) 评论(0) 推荐(0) 编辑