The value of a node is the product of all the node in its subtree. So how do you update all the parent node when you update the child node ? The original problem is http://codeforces.me/gym/101466/problem/K.
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en2 |
|
coding_weeb | 2017-09-14 10:44:06 | 10 | ||
| en1 |
|
coding_weeb | 2017-09-14 08:42:21 | 291 | Initial revision (published) |