Rosetta Problems

三维偏序

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