搜查专题

poj 3009 冰壶 DFS 一个方向搜查到底

题意: 冰壶可以上下左右运动(前提上下左右的第一个位置为空)。碰到冰块则停止,冰块也将被破坏。问懂多少次能达到终点。 一个方向搜到底: 代码: #include <iostream>#include <algorithm>using namespace std;int map[30][30];int w,h;int minn=300000;void dfs(int x,in