This problem is in Contest(s) below:
Contest 1006:练习一(dfs)
Contest 1421:dfs
Contest 1527:dfs深度优先搜索
Contest 1428:YC-递归深搜复习
Contest 1248:DFS阶段测试2卷