摘要:
带权并查集食物链(模3系),三个物种,给一些关系,同类、被吃、吃。问哪些关系是错的。 同类关系是0,点吃根节点的关系是1,根节点吃点关系是2即可。 #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> # 阅读全文
posted @ 2018-09-13 23:04
LMissher
阅读(88)
评论(0)
推荐(0)
摘要:
带权并查集模2系,也就是给一些关系 ,这些关系是是否同类。问有多少关系错的。 #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> using namespace std; const int M = 2 阅读全文
posted @ 2018-09-13 23:01
LMissher
阅读(92)
评论(0)
推荐(0)

浙公网安备 33010602011771号