Codeforces 1385E - Directing Edges(拓扑排序判环)

NoSuchKey