Codeforces Round #586 (Div. 1 + Div. 2)E(拓扑排序,思维)

NoSuchKey