摘要: 借鉴:http://blog.csdn.net/chenzhenyu123456/article/details/47114535 阅读全文
posted @ 2016-08-21 13:33 HITLJR 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 【转载】:http://www.cnblogs.com/OUSUO/p/3805715.html?utm_source=tuicool&utm_medium=referral 1. DFS预处理出所有节点的深度和父节点 inline void dfs(int u) { int i; for(i=he 阅读全文
posted @ 2016-08-21 13:12 HITLJR 阅读(295) 评论(0) 推荐(0) 编辑