Rosetta Problems

Point Set Tree Path Composite Sum (Fixed Root)

https://judge.yosupo.jp/problem/point_set_tree_path_composite_sum_fixed_root