蒻菜_羊羊羊的专栏

编程是人造的学科,而数学是神造的学科.

BFS遍历图代码

#include #include #include #include #include using namespace std; const int maxn = 1005; vector vec[maxn]; queue que; bool vis[maxn]; int step[maxn...

2015-07-13 19:22:18

阅读数:228

评论数:0

POJ1915 (Knight Moves) BFS

Knight Moves Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 22994   Accepted: 10752 Description Backgroun...

2015-07-05 13:46:18

阅读数:276

评论数:0

POJ 1753 Flip Game(暴力+搜索递归)

Flip Game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 33357   Accepted: 14577 Description Flip game is...

2015-06-02 17:18:56

阅读数:367

评论数:0

POJ3278 Catch That Cow(广搜BFS)

Catch That Cow Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 54969   Accepted: 17198 Description Farmer ...

2015-05-30 20:27:41

阅读数:299

评论数:0

poj1014 Dividing(递归,多重背包)

Dividing Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 62888   Accepted: 16287 Description Marsha and Bill own a collection...

2015-05-30 15:43:23

阅读数:573

评论数:5

POJ2251 Dungeon Master(搜索BFS)

Dungeon Master Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 18557   Accepted: 7216 Description You are ...

2015-04-16 19:58:34

阅读数:247

评论数:0

POJ1088 滑雪(递归 + 记忆化搜索)

滑雪 Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 80871   Accepted: 30152 Description Michael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,...

2015-04-16 11:55:02

阅读数:411

评论数:0

Sticks POJ1011 hdu1455 (深度优先搜索DFS)

Sticks Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 122528   Accepted: 28390 Description George took sticks of the same len...

2014-11-15 21:33:10

阅读数:605

评论数:0

迷宫问题(八个方向寻找)DFS

迷宫问题(八方向) input: 1 6 8 0 1 1 1 0 1 1 1 1 0 1 0 1 0 1 0 0 1 0 0 1 1 1 1 0 1 1 1 0 0 1 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 0 output: YES (1,1) ...

2014-11-04 14:16:15

阅读数:1076

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭