![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索
aGoshawk
生命不息,奋斗不止!
展开
-
poj2245lotto
刚拿到这道题原创 2014-07-20 08:32:04 · 563 阅读 · 0 评论 -
poj2251
这d原创 2014-07-21 19:37:29 · 726 阅读 · 0 评论 -
hdu1010---Tempter of the Bone
开始想着用广搜写写,结果原创 2014-11-01 21:18:58 · 483 阅读 · 0 评论 -
hdu1026---Ignatius and the Princess I
题目大意:原创 2014-11-20 20:28:52 · 459 阅读 · 0 评论 -
hdu1253——胜利大逃亡——————【BFS】
简单三维地图,直接广搜就行了。#include#include#include#includeusing namespace std;int Map[55][55][55];bool vis[55][55][55];int f[6][3] = {{ -1, 0, 0}, {0, 1, 0}, {1, 0, 0}, {0, -1, 0}, {0, 0, -1}, {0, 0, 1}原创 2015-01-09 21:00:50 · 523 阅读 · 0 评论 -
hdu1728——逃离迷宫——————【BFS】
解题思路:通过曾经一个计数数组,将所有可到达该点位置的转弯次数更新为最小值,最后通过比较目的位置的转弯次数来判断是否能够到达。#include#include#include#include#includeusing namespace std;int f[4][2] = {{ -1, 0}, {1, 0}, {0, 1}, {0, -1}};char Map[110][110]原创 2015-01-12 10:20:18 · 461 阅读 · 0 评论 -
hdu2102——A计划——————【BFS】
题目比较简单,只是一个简单搜索,只是添加了一点条件。传输机实现上下层转移,仅仅这个条件。#include#include#include#includeusing namespace std;int f[4][2] = { { -1, 0}, {0, 1}, {1, 0}, {0, -1}};char Map[15][15][2];bool vis[15][15][2];str原创 2015-01-02 16:45:04 · 523 阅读 · 0 评论