登录
首页 » C# » “小鼠迷宫问题;问题描述:一只活老鼠B M 1。鼠标

“小鼠迷宫问题;问题描述:一只活老鼠B M 1。鼠标

于 2022-03-21 发布 文件大小:1.64 kB
0 105
下载积分: 2 下载次数: 1

代码说明:

小鼠迷宫问题« 问题描述:小鼠a 与小鼠b身处一个m×m的迷宫中,如图所示。每一个方格表示迷宫中的一个房间。这m×n个房间中有一些房间是封闭的,不允许任何人进入。在迷宫中任何位置均可沿上,下,左,右4个方向进入未封闭的房间。小鼠a位于迷宫的(p,q)方格中,它必须找出一条通向小鼠b 所在的(r,s)方格的路。请帮助小鼠a找出一条通向小鼠b的道路。« 编程任务:对于给定的小鼠的迷宫,编程计算小鼠a 通向小鼠b的道路。« 数据输入:由文件input.txt 给出输入数据。第一行有2 个正整数m,k,分别表示迷宫的行数和封闭的房间数。接下来的k行中,每行2 个正整数,表示被封闭的房间所在的行号和列号。最后的2 行,每行也有2 个正整数,分别表示小鼠a 所处的方格(p,q)和小鼠b 所处的方格(r,s)。« 结果输出:将计算出的小鼠a 通向小鼠b 的道路输出到文件output.txt。输出文件的每行2 个正整数,表示道路行号和列号,从终点向起点方向列出。如果小鼠a 无法通向小鼠b 则输出“No Solution!”-mice problem laquo maze; Problem description : mouse with a live mouse b m 1 m maze of dummies. Each expressed a box maze of a room. This m n rooms there were some rooms are closed, did not allow anyone to enter. The maze can be any location along the upper and lower, right and left four entered no closed rooms. Mice in a maze of (p, q) box, it must find a leading mice where the b (r, s) box at the road. Please help find a mouse a mouse b leading to the road. Laquo; Programming tasks : to the mice in a maze

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • zhizhen2
    学习C语言的资料 个人感觉不错 大家看看吧! 呵呵 (Learning C language data we look at it personally feel good! Ha ha)
    2010-08-07 11:15:36下载
    积分:1
  • 数据库入门经典范例(全)希望大家喜欢^_^
    数据库入门经典范例(全)希望大家喜欢^_^-Classic example of database entry (all) I hope everyone likes ^ _ ^
    2022-08-07 00:06:35下载
    积分:1
  • sound
    在89C55CPU下开发的语音芯片驱动程序,在keil C编译环境下执行通过(Developed in 89C55CPU voice chip driver, keil C compiler in the environment through the implementation of)
    2008-04-10 11:20:49下载
    积分:1
  • TCD1304 LABVIEW程序
    说明:  这个包中包含各种子vi,可以完成对线阵CCDTD1304的数据采集功能(Can complete the data reading function of the line CCD)
    2020-07-30 10:28:37下载
    积分:1
  • VQiyerenshiCoB
    一款VB开发的企业人事管理系统,采用Access数据库,本人事系统是一款典型的企业管理系统。主要实现的功能有:处理理员工档案、对企业日常进行考勤、统计员工工资、各个员工工作评价、员工部门转移、报表打印等、系统设置等。 已通过测试。 (A VB developers, corporate personnel management system that uses an Access database, the personnel system is a typical enterprise management systems. The main achievement of the function: Handling the files of the management staff, the business daily attendance statistics, wages and salaries, the evaluation of each employee, the employee' s department transfer, report printing, system settings, and so on. Has been tested.)
    2012-07-30 00:48:19下载
    积分:1
  • 韦根信号转换
    说明:  Wiegand 26/34转RS485、RS232信号转换模块(原理图+PCB+BOM),输入韦根信号,转换为串口输出(Wiegand 26/34 to RS485, RS232 signal conversion module (schematic + PCB + BOM), input Wiegand signal, converted to serial output)
    2020-06-25 04:20:01下载
    积分:1
  • 数据挑战题
    说明:  c++制作的小游戏,还有一个排队看病系统,仅供大家参考(Curriculum design of C + +)
    2020-12-23 10:41:02下载
    积分:1
  • 发动机万有特性曲线
    针对发动机万有特性曲线的绘制所写,对毕业设计和论文发表的画图有帮助。
    2022-06-26 16:01:11下载
    积分:1
  • 0012
    一个内存管理,能显示进程、线程、DLL的相关信息。(a memory management, can show that the process, thread, DLL related information.)
    2004-11-24 09:13:25下载
    积分:1
  • cubeMX设计实现stm32f407上的CAN及485的通信
    stm32f407的CAN的通信功能的实现
    2021-05-06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载