码迷,mamicode.com
首页 >  
搜索关键字:the maze makers    ( 598个结果
POJ 3984:迷宫问题【BFS】
迷宫问题 Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 11603   Accepted: 6946 Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, ...
分类:其他好文   时间:2015-08-20 19:01:58    阅读次数:131
POJ 1321 棋盘问题 (DFS)
题目链接:棋盘问题 解析:dfs暴力从上到下、从左到右搜索。 AC代码: //代码1 #include #include #include using namespace std; int n, k, ans; char maze[10][10]; bool vis[10][10]; void dfs(int x, int y, int step){...
分类:其他好文   时间:2015-08-19 16:58:25    阅读次数:99
Picking up Jewels
Picking up Jewels There is a maze that has one entrance and one exit. Jewels are placed in passages of the maze. You want to pick up the jewels after getting into the maze through the entran...
分类:其他好文   时间:2015-08-19 11:23:51    阅读次数:1384
Fzu 2150 Fire Game
Problem 2150 Fire GameAccept: 864Submit: 3207Time Limit: 1000 mSecMemory Limit : 32768 KBProblem DescriptionFat brother and Maze are playing a kind of...
分类:其他好文   时间:2015-08-19 01:51:36    阅读次数:116
hdu5402 Travelling Salesman Problem
Problem Description Teacher Mai is in a maze with n rows and m columns. There is a non-negative number in each cell. Teacher Mai wants to walk from the top left corner (1,1) to the bottom rig...
分类:其他好文   时间:2015-08-18 22:54:44    阅读次数:232
poj3083 Children of the Candy Corn BFS&&DFS
Children of the Candy CornTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 11215Accepted: 4841DescriptionThe cornfield maze is a popular Hallo...
分类:其他好文   时间:2015-08-18 10:11:17    阅读次数:113
[题解+总结]20150816.
1、前言同样是搜索题,感觉今天的鬼畜多了,还出现了一道标程都莫名其妙的题目。。。2、Maze 迷宫大概题意:在一个0-1矩阵中给出起始点和终点,求最短路径。(0为可走,1为不可走)总结:边界条件出了问题导致WA+RE了20分。我们可以把外围所有点设置为1(不可走),也可以在搜索时添加判断。还有一个很...
分类:其他好文   时间:2015-08-17 23:30:17    阅读次数:204
POJ-1475 Pushing Boxes (BFS+优先队列)
DescriptionImagine you are standing inside a two-dimensional maze composed of square cells which may or may not be filled with rock. You can move nort...
分类:其他好文   时间:2015-08-17 15:18:19    阅读次数:102
POJ-3083 Children of the Candy Corn (BFS+DFS)
DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-...
分类:其他好文   时间:2015-08-16 16:37:35    阅读次数:112
hdu 1010 dfs+剪枝
剪枝还是挺多的,不过都比较容易想,主要是复习一下奇偶性剪枝。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int N = 7; 8 char maze[N][N]; 9 int d...
分类:其他好文   时间:2015-08-14 11:35:10    阅读次数:98
598条   上一页 1 ... 33 34 35 36 37 ... 60 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!