codeforces 501 C. Misha and Forest 巧妙的拓扑排序

NoSuchKey