Rosetta Problems

有向树形态

https://www.acwing.com/problem/content/3694