Rosetta Problems

Common Interval Decomposition Tree

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