90分线段树求助!!!!!!!有没有好心人帮帮忙?

P1253 扶苏的问题

蒟蒻线段树一直调不明白,求教!
by gghack_Nythix @ 2023-01-18 14:15:01


输入优化
by Acoipp @ 2023-01-18 14:16:45


在 `cin>>n>>m;` 之前加上 `ios::sync_with_stdio(false);`。
by Acoipp @ 2023-01-18 14:17:43


插一句,`g=1145141919810` 是会爆 $\text{int}$ 的。
by Acoipp @ 2023-01-18 14:28:03


建议开一下 $\text{long long}$,有可能会爆 $\text{int}$。
by Acoipp @ 2023-01-18 14:29:22


@[dlsk_po](/user/674469) 谢谢,已过
by gghack_Nythix @ 2023-01-18 19:38:11


|