finished 1010

dfs深度优先搜索+剪枝