摘要: POJ.3667 Hotel ( 线段树 )题意分析还需要好好理解一下代码总览#include #include #include #define nmax 200010using namespace std;struct Tree{ int l,r; int lenma... 阅读全文
posted @ 2017-08-14 11:49 pengwill 阅读(88) 评论(0) 推荐(0) 编辑
摘要: BZOJ.4034 [HAOI2015]树上操作 ( 点权树链剖分 线段树 )题意分析有一棵点数为 N 的树,以点 1 为根,且树点有边权。然后有 M 个 操作,分为三种: 操作 1 :把某个节点 x 的点权增加 a 。 操作 2 :把某个节点 x 为根的子树中所有点的点权都增加 a... 阅读全文
posted @ 2017-08-14 10:55 pengwill 阅读(169) 评论(0) 推荐(0) 编辑