Codeforces 915D - Almost Acyclic Graph(拓扑排序)

NoSuchKey