Hi everybody!
I am solving problem that need addition on a segment and getting sum and minimum on a segment. I have some problem with lazy propagation.
Can you share your code with Segment tree. Preferably recursively)
# | User | Rating |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | Um_nik | 160 |
5 | atcoder_official | 159 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 151 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
Addition on a segment(Segment tree)
Hi everybody!
I am solving problem that need addition on a segment and getting sum and minimum on a segment. I have some problem with lazy propagation.
Can you share your code with Segment tree. Preferably recursively)
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en1 | jaguar1996 | 2017-04-23 18:05:51 | 259 | Initial revision for English translation | ||
ru1 | jaguar1996 | 2017-04-23 17:45:41 | 272 | Первая редакция (опубликовано) |
Name |
---|