
数据结构
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 · 296 阅读 · 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 · 289 阅读 · 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 · 273 阅读 · 0 评论