Skip to content

Commit 870699c

Browse files
authored
Update wavelet_matrix.hpp
1 parent 1263c9a commit 870699c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/data_structures_[l,r)/seg_tree_uncommon/wavelet_matrix.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct wavelet_matrix {
2828
int l0 = bv[h].cnt(l), r0 = bv[h].cnt(r);
2929
if (k < r0 - l0) l = l0, r = r0;
3030
else
31-
k -= r0 - l0, res |= 1ULL << h,
31+
k -= r0 - l0, res |= 1LL << h,
3232
l += bv[h].cnt(n) - l0, r += bv[h].cnt(n) - r0;
3333
}
3434
return res;

0 commit comments

Comments
 (0)