Codeforces Round #656 (Div. 3) E. Directing Edges (拓扑排序)

NoSuchKey