ACLPC B
ACLPC_B
https://gyazo.com/97d47db591e6eae43e0b0ea257456fa9
By making a tree and propagating the sum to the parent, the range sum becomes a log order.
---
This page is auto-translated from /nishio/ACLPC B. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.