Skip to content

Commit

Permalink
Merge pull request #4940 from cpinitiative/minor-fixes
Browse files Browse the repository at this point in the history
Update RURQ.mdx
  • Loading branch information
SansPapyrus683 authored Nov 22, 2024
2 parents c89f84c + 0a0a70e commit bd599c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/5_Plat/RURQ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,13 @@ template <class Info, class Tag> class LazySegtree {
LazySegtree() {}

LazySegtree(int n) : n(n) {
t.assign(4 << __lg(n), Info());
lz.assign(4 << __lg(n), Tag());
tree.assign(4 << __lg(n), Info());
lazy.assign(4 << __lg(n), Tag());
}

LazySegtree(const vector<Info> &a) : n(a.size()) {
t.assign(4 << __lg(n), Info());
lz.assign(4 << __lg(n), Tag());
tree.assign(4 << __lg(n), Info());
lazy.assign(4 << __lg(n), Tag());
build(1, 0, n - 1, a);
}

Expand Down

0 comments on commit bd599c8

Please sign in to comment.