Rosetta Problems

Spanning Trees of Interval Graph

https://atcoder.jp/contests/agc060/tasks/agc060_f