poj2251 Dungeon Master (BFS)
来源:互联网 发布:java home linux 编辑:程序博客网 时间:2024/04/19 14:02
题 意:给定一三维迷宫的起始位置和终止位置,如果能走出,求出所用最少时间(可以理解为迷宫中的最短路径),否则输 出Trapped!
思 路:BFS,六个方向
学习点:BFS
注意点:1、输入(由于输入有空格,所以要特殊处理,一开始没考虑到,结果怎么都出不来);
2、六个方向怎么对应要搞清楚;
3、输出的时候“Trapped!”(一开始竟然因为少一个“!”,wa)。
源代码:
- poj2251 Dungeon Master (BFS)
- Dungeon Master(poj2251,bfs)
- POJ2251:Dungeon Master(BFS)
- poj2251 Dungeon Master bfs
- POJ2251:Dungeon Master(BFS)
- poj2251 Dungeon Master(BFS)
- POJ2251 Dungeon Master BFS
- [bfs]poj2251 Dungeon Master
- poj2251 dungeon master【BFS】~
- POJ2251 Dungeon Master(bfs)
- POJ2251 Dungeon Master(BFS)
- POJ2251-Dungeon Master-BFS
- 【POJ2251】Dungeon Master(bfs)
- poj2251-bfs- Dungeon Master
- POJ2251 Dungeon Master 【BFS】
- POJ2251:Dungeon Master(BFS)
- Dungeon Master(poj2251,bfs)
- POJ2251 Dungeon Master 三维BFS
- 如何生成API文件
- c++ - 如何使用抽象和多态
- 中小企业电子商务六大发展技巧
- wifi移植(转)
- 低级音频函数录音时waveinOPen()函数的窗口函数解释
- poj2251 Dungeon Master (BFS)
- xxxx
- 【转】Oracle在数据转储时的字符集问题
- C++必知必会 - 制造抽象基类
- trie树简介
- AsyncTask
- 音频压缩格式
- 浅谈Flex转JSF之痛苦
- 音频编码器有哪些?