Skip to content

Commit 2b1437c

Browse files
authoredFeb 8, 2021
Merge pull request #105 from loooorent/unify
Unify how to write the same operation
2 parents 03d8c97 + 802bfa0 commit 2b1437c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎atcoder/lazysegtree.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct lazy_segtree {
5656

5757
for (int i = log; i >= 1; i--) {
5858
if (((l >> i) << i) != l) push(l >> i);
59-
if (((r >> i) << i) != r) push(r >> i);
59+
if (((r >> i) << i) != r) push((r - 1) >> i);
6060
}
6161

6262
S sml = e(), smr = e();

0 commit comments

Comments
 (0)
Please sign in to comment.