Rosetta Problems

构造有向无环图

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