摘要: 题意:给出一个树,求出每个节点的子树中出现次数最多的颜色的编号和 思路:dsu on tree 。暴力求轻边的答案,再加上重边的答案。 #include<bits/stdc++.h> #define LL long long using namespace std; const int MAXN = 阅读全文
posted @ 2020-02-09 19:58 The-Pines-of-Star 阅读(104) 评论(0) 推荐(0) 编辑