摘要: BLO 关键字:tarjan 树上dp 原图有环,然可利用tarjan深度优先搜索树,假设去掉的点是u,考虑三个方向的转移 1 #include<cstdio> 2 #include<queue> 3 #include<cstring> 4 #include<algorithm> 5 #define 阅读全文
posted @ 2019-07-14 11:42 hzoi_yzh 阅读(131) 评论(0) 推荐(0) 编辑