This problem is in Contest(s) below:
Contest 9389:apple_c++_D图论基础3-图的遍历