Skip to content

Commit d03391e

Browse files
committed
Unify how to write the same operation
atcoder/ac-library#105
1 parent 20778f3 commit d03391e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/AtCoderLibrary/DataStructure/LazySegtree.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public TValue Prod(int l, int r)
177177
for (int i = log; i >= 1; i--)
178178
{
179179
if (((l >> i) << i) != l) Push(l >> i);
180-
if (((r >> i) << i) != r) Push(r >> i);
180+
if (((r >> i) << i) != r) Push((r - 1) >> i);
181181
}
182182

183183
TValue sml = op.Identity, smr = op.Identity;

0 commit comments

Comments
 (0)