摘要:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1438还是很经典的搜索题,有意思的是把原来的二维迷宫改为了立体迷宫,用三维数组来存储。易错的是三维容易把坐标弄错,我因为这wa了好多次。。。在纸上多画画就ok。代码如下:#include<iostream>#include<cstdio>#include<queue>#include<cstring>using namespace std;int dx[] = {-1, 1, 0, 0, 0, 0};int dy[] = {
阅读全文