摘要:
三维的BFS,很裸的题,不过一定要注意这一题给的坐标x表示列,y表示行,z表示层,实际输入的时候调试一下看看给的坐标是不是跟样例在图中所指的对象一样就行了。AC code:View Code 1 #include <iostream> 2 #define MAX 10000 3 using namespace std; 4 struct node{ 5 int j, i, k, step; 6 }que[MAX]; 7 char s[10]; 8 int n; 9 int sj, si, sk;10 int ej, ei, ek;11 char map[11][11][11];12 阅读全文
posted @ 2012-03-24 21:16
背着超人飞
阅读(426)
评论(0)
推荐(0)