摘要: 食物链 || 带权并查集 0:同类 1:吃 2:被吃 w[x]表示x和它爸爸的关系 #include <cstdio> using namespace std; const int maxn=5e4+3; int f[maxn], w[maxn]; void init(int n) { for(in 阅读全文
posted @ 2020-10-07 12:50 .Ivorelectra 阅读(94) 评论(0) 推荐(0) 编辑