摘要: 题面 传送门 题解 缩点边双没跑了, 主要是算答案 采用靠并查集爬树的思想 int h[N], to[M << 2], ne[M << 2], tot; void add(int u, int v) { ne[++tot] = h[u]; to[h[u] = tot] = v; } int dfn[ 阅读全文
posted @ 2020-12-09 21:40 洛绫璃 阅读(72) 评论(0) 推荐(0) 编辑