随笔分类 -  策略 --- 搜索

上一页 1 2

hdu 1907 John
摘要:JohnTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1312Accepted Submission(s): 683Problem DescriptionLittle John is playing very funny game with his younger brother. There is one big box filled with M&Ms of different colors. At first John has 阅读全文

posted @ 2012-07-26 20:33 江财小子 阅读(235) 评论(0) 推荐(0)

HDU 1242 Rescue(BFS)
摘要:RescueTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8065Accepted Submission(s): 2959Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, 阅读全文

posted @ 2012-07-08 16:53 江财小子 阅读(182) 评论(0) 推荐(0)

Hdu 1548 A strange lift(BFS)
摘要:A strange liftTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5644Accepted Submission(s): 2073Problem DescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.T 阅读全文

posted @ 2012-07-05 23:25 江财小子 阅读(229) 评论(0) 推荐(0)

HDU 1026 Ignatius and the Princess I(BFS)
摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1026在这博客学的 ttp://www.wutianqi.com/?p=2354感觉看了这个之后收获良多#include <queue>#include <stack>#include <cstdio>#include <iostream>#include <string.h>#include <algorithm>using namespace std;typedef struct node{ int x,y,dis; int 阅读全文

posted @ 2012-03-29 22:46 江财小子 阅读(147) 评论(0) 推荐(0)

HDU 1045 Fire Net(DFS)
摘要:Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall.A blockhouse is a small castle that has four openings through which to shoot. The four openings are facing North, East, South, and West 阅读全文

posted @ 2012-03-28 17:43 江财小子 阅读(172) 评论(0) 推荐(0)

HDU 1010 Tempter of the Bone(DFS)
摘要:The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized that the bone was a trap, and he tried desperately to get out of this maze.The maze was a rectangle with sizes N b 阅读全文

posted @ 2012-03-28 17:40 江财小子 阅读(223) 评论(0) 推荐(0)

上一页 1 2