蒟蒻求助

P3372 【模板】线段树 1

你认为错误的写法实际上只需要数组多开2倍就好
by LuckyCloud @ 2018-08-20 06:42:37


~~访问非法内存可能会有玄学操作~~QnQ
by LuckyCloud @ 2018-08-20 06:56:51


不应该是需要往下搜的时候才$pushdown$下去吗?不需要往下搜的时候不用下传啊
by 曹老师 @ 2018-08-20 08:22:48


@[LuckyCloud](/space/show?uid=23977) 那我多开一倍试一下,感谢
by dingxingdi @ 2018-08-20 08:42:49


@[曹老师](/space/show?uid=37427) 我记得是搜到立马下传啊。。。应该也没错吧
by dingxingdi @ 2018-08-20 08:43:25


@[LuckyCloud](/space/show?uid=23977) 感谢A了,但是我还不知为什么写在下面不用开2倍数组就可以A呢?
by dingxingdi @ 2018-08-20 08:47:18


@[LuckyCloud](/space/show?uid=23977) 哦,我想明白了,感谢。。
by dingxingdi @ 2018-08-20 08:49:10


|