-
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...
以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,j)等于1表示障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。各个命令以及相关数据的输入格式如下:
输入迷宫:C,接下来一行是m n,其中m是迷宫矩阵行数,n是迷宫矩阵列数,接下来的m行数据是迷宫矩阵,每行n个值,表示一个m*n的迷宫矩阵
求迷宫的一条通路:Q
当输入的命令为E时,程序结束-With a Maze (m, n), said the long square maze, the maze entrance is a Maze (1,1), exports is the Maze (m, n), Maze (i, j) is equal to 0, said channel, Maze (i, j) is equal to 1, said barrier. Designing a program, for any set of the maze, find a path from the entrance to the export, or come to the conclusion there is no path. The various commands and data input format is as follows: Enter the Labyrinth: C, followed by his party mn, where m is the maze of matrix rows, n is a maze of matrix columns, the next line of data is a maze m matrix, each row n- value, indicating an m* n matrix of the labyrinth a maze of pathways: Q when the input command for the E, the end of the process
- 2023-04-15 19:50:03下载
- 积分:1
-
ACM常用代码集合,吐血推荐。
有详细的代码注释,希望对大家有帮助...
ACM常用代码集合,吐血推荐。
有详细的代码注释,希望对大家有帮助-ACM commonly used code sets, hematemesis recommendation. A detailed code comments, want to help everyone
- 2022-11-27 16:20:03下载
- 积分:1
-
动态规划的石子问题算法下载压缩包后,解压,使用vc
动态规划的石子问题算法下载压缩包后,解压,使用vc-stones dynamic programming problem packet compression algorithm download, extract, use vc
- 2022-07-18 16:07:24下载
- 积分:1
-
这是一个数据结构小程序,有关计算加减法的
这是一个数据结构小程序,有关计算加减法的-This is a small program data structure, addition and subtraction in the calculation of
- 2022-03-26 02:27:47下载
- 积分:1
-
rPm数据库的安装包 很好的希望大家喜欢有帮助的
rPm数据库的安装包 很好的希望大家喜欢有帮助的-rpm database of installed packages good hope that we like to have help
- 2022-02-18 17:06:10下载
- 积分:1
-
清华大学数据结构讲义
清华大学数据结构讲义-data structure lectures Tsinghua University
- 2022-12-08 13:40:03下载
- 积分:1
-
data structure to achieve the java
数据结构的java实现-data structure to achieve the java
- 2022-01-22 16:06:20下载
- 积分:1
-
这是我们实习时编的,实现了基本的功能,如插入,删除,查找等。初学
C++的同志们可以参考:)...
这是我们实习时编的,实现了基本的功能,如插入,删除,查找等。初学
C++的同志们可以参考:)-This is our attachments series to achieve the basic functions, such as inserting, deleting, and searching. Novice C comrades can reference :)
- 2022-05-10 20:48:29下载
- 积分:1
-
This is a materials management system, some errors, but also please correct!
这是一个物资管理系统,有些错误,还请大家更正!-This is a materials management system, some errors, but also please correct!
- 2022-02-01 20:09:58下载
- 积分:1
-
一个专业的程序连接mysql用的ODBC连接,带列排序和按纽控件,可以备份mysql数据库,修复数据库,请使用...
一个专业的程序连接mysql用的ODBC连接,带列排序和按纽控件,可以备份mysql数据库,修复数据库,请使用-a professional to connect to mysql with the ODBC connection with sorting out and button control that mysql database backup, restoration database, please use
- 2023-07-15 14:35:04下载
- 积分:1