Skip to content

Commit 2b05cbd

Browse files
authored
Merge pull request #69 from Natsume-Neko/unify-lazysegtree
Unify how to write the same operation
2 parents 28f1e51 + 4083ef7 commit 2b05cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atcoder/lazysegtree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def prod(self, left: int, right: int) -> typing.Any:
6262
if ((left >> i) << i) != left:
6363
self._push(left >> i)
6464
if ((right >> i) << i) != right:
65-
self._push(right >> i)
65+
self._push((right - 1) >> i)
6666

6767
sml = self._e
6868
smr = self._e

0 commit comments

Comments
 (0)