xehoth / xehoth-blog-comment

0 stars 0 forks source link

「CC MANYLIST」-树状数组 + map | xehoth #338

Open xehoth opened 6 years ago

xehoth commented 6 years ago

https://blog.xehoth.cc/CC-MANYLIST/

有 $n$ 个集合,初始都为空,要求支持:向第 $[l, r]$ 个集合中加入 $x$。求第 $i$ 个集合的元素个数。