Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions document_en/lazysegtree.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ It returns `op(a[0], ..., a[n - 1])`, assuming the properties of the monoid. It
## apply

```cpp
(1) void seg.apply(int p, T x)
(2) void seg.apply(int l, int r, T x)
(1) void seg.apply(int p, F f)
(2) void seg.apply(int l, int r, F f)
```

- (1) It applies `a[p] = op_st(a[p], x)`.
- (2) It applies `a[i] = op_st(a[i], x)` for all `i = l..r-1`.
- (1) It applies `a[p] = f(a[p])`.
- (2) It applies `a[i] = f(a[i])` for all `i = l..r-1`.

**@{keyword.constraints}**

Expand Down
8 changes: 4 additions & 4 deletions document_ja/lazysegtree.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ S seg.all_prod()
## apply

```cpp
(1) void seg.apply(int p, T x)
(2) void seg.apply(int l, int r, T x)
(1) void seg.apply(int p, F f)
(2) void seg.apply(int l, int r, F f)
```

- (1) `a[p] = op_st(a[p], x)`
- (2) `i = l..r-1`について`a[i] = op_st(a[i], x)`
- (1) `a[p] = f(a[p])`
- (2) `i = l..r-1`について`a[i] = f(a[i])`

**@{keyword.constraints}**

Expand Down