@[hanzhongtlx](/user/184500) 建树的时候不应该是这句吧
```
a[k].sum=1ll*t[l];
```
by Rui_R @ 2020-10-28 11:42:09
树剖按时间戳建树,就应该把l对应的结点的值扔到线段树上去
by Rui_R @ 2020-10-28 11:42:58
@[hanzhongtlx](/user/184500)
长代码,写错了,怎么办? 重新写一遍就好啦!
by 青鸟_Blue_Bird @ 2020-10-28 11:43:02
@[Rui_R](/user/101984)
虽然不是此处,但还是要谢谢您
以 AC 此贴终结
by hanzhongtlx @ 2020-10-28 11:43:35
@[Rui_R](/user/101984) 我写的就是戳吧
正解:
```
void mod_son(int l,int y){modify(1,id[l],id[l]+tot[l]-1,x);}
```
```
y->x
```
by hanzhongtlx @ 2020-10-28 11:44:49
抱歉 瞎了
by Rui_R @ 2020-10-28 11:46:09