936b专题

Codeforces 936B Sleepy Game BFS+DFS判环

题面 题目链接:传送门 Petya and Vasya arranged a game. The game runs by the following rules. Players have a directed graph consisting of n vertices and m edges. One of the vertices contains a chip. Initially