摘要: 题目链接:https://www.luogu.com.cn/problem/P4306 传递闭包 bitset 模板题。 需要注意的是 \(i = j\) 时需将 \(g_{i,i}\) 标记为 \(1\) 。 示例程序: #include <bits/stdc++.h> using namespa 阅读全文
posted @ 2022-03-07 13:16 quanjun 阅读(105) 评论(0) 推荐(0)