codeforces 915 D. Almost Acyclic Graph(拓扑排序)

NoSuchKey