摘要: 二分图的判定(染色法) int col[Z]; bool dfs(int rt, int color) { col[rt] = color; for (int i = head[rt]; i; i = e[i].ne) { int son = e[i].v; if (!col[son] && !df 阅读全文
posted @ 2022-04-25 15:13 sandom 阅读(29) 评论(0) 推荐(2) 编辑