Closed TonalidadeHidrica closed 1 year ago
The rustic way to specify a certain range of a container is to use s..t notation. I changed the signature of FenwickTree::sum, Segtree::prod, and LazySegtree::prod so that they accept any range notation like .., s..t, s..=t, ..t and so on.
s..t
FenwickTree::sum
Segtree::prod
LazySegtree::prod
..
s..=t
..t
Oh by the way, I forgot to change the signature of LazySegtree::apply_range too. I'll do it later.
LazySegtree::apply_range
The rustic way to specify a certain range of a container is to use
s..t
notation. I changed the signature ofFenwickTree::sum
,Segtree::prod
, andLazySegtree::prod
so that they accept any range notation like..
,s..t
,s..=t
,..t
and so on.