摘要: Assign the task HDU - 3974 题意: 一棵树 两种操作 1. "C x" 查询节点x的颜色 2."T x y" 将以x为根节点的子树的颜色全部染为k 题解: dfs序+线段树 #include <iostream> #include <cstdio> #include <al 阅读全文
posted @ 2020-09-15 19:48 hulian425 阅读(170) 评论(0) 推荐(0) 编辑