摘要: 原文:http://www.tuicool.com/articles/N7jQV321.DFS预处理出所有节点的深度和父节点inline void dfs(int u){ int i; for(i=head[u];i!=-1;i=next[i]) { if (!deep[to[i... 阅读全文
posted @ 2014-09-13 12:33 lzw4896s 阅读(268) 评论(1) 推荐(0) 编辑