摘要:
此题求人把箱子全部推进洞里需要的最少步数。使用广搜,hash8维数组标记View Code #include<iostream>#include<cstring>#include<cstdio>#include<queue>using namespace std;int n,m,lmax;char map[10][10];int x[4]={1,-1,0,0};int y[4]={0,0,1,-1};bool hash[8][8][8][8][8][8][8][8];typedef struct{ int x,y;}point;struct st 阅读全文
posted @ 2013-03-29 14:22
To be or not to be
阅读(224)
评论(0)
推荐(0)
浙公网安备 33010602011771号