Rosetta Problems

Tree Decomposition (Width 2)

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