Codeforces Round #656 (Div. 3)E. Directing Edges(拓扑排序+构造dag图)

NoSuchKey