![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Adolphrocs
这个作者很懒,什么都没留下…
展开
-
Snowy Smile 线段树+扫描线 HDU多校 HDU-6638
Snowy Smile Snowy Smile Time Limit: 4000/4000 MS (Java/Others)Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 2012Accepted Submission(s): 640 Problem Descri...原创 2019-08-09 15:17:27 · 251 阅读 · 0 评论 -
[BZOJ - 2243] 染色 (动态树LCT)
题意:给定一棵有n个节点的无根树和m个操作,操作有2类:1、将节点a到节点b路径上所有点都染成颜色c;2、询问节点a到节点b路径上的颜色段数量(连续相同颜色被认为是同一段),如“112221”由3段组成:“11”、“222”和“1”。请你写一个程序依次完成这m个操作。“C a b c”表示这是一个染色操作,把节点a到节点b路径上所有点(包括a和b)都染成颜色c;“Q a...原创 2019-09-20 10:45:04 · 230 阅读 · 0 评论 -
牛客国庆day3 Grid [线段树]
Bobo has points arranged into a matrix with n rows and m columns. The points in the intersection of the i-th row and the j-th column is labeled with (i, j).He is going to perform q operations of the...原创 2019-10-04 16:20:19 · 216 阅读 · 0 评论