POJ 2251 BFS
<br />http://poj.org/problem?id=2251<br />题意:给定三维的格子、起点和终点 问最小几步 能到 不能输出-1.<br />分析:简单的BFS 数据量不大。 不过代码写的很搓……。<br /> <br />#include <stdio.h>#include <string.h>const int N=35;bool map[N][N][N];int g[N][N][N];int L,R,C;struct point{ int x,y
原创
2011-04-04 23:19:00 ·
398 阅读 ·
0 评论