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

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

于 2022-03-21 发布 文件大小:1.64 kB
0 95
下载积分: 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 个回复

  • 天宝Dini03莱卡DNA03原始数据模拟软件(x64)
    说明:  可以判断数据的实时性,处理数据的格式,将gis、dat数据转换成xls或科傻in1数据,并且自动添加转点(It can judge the real-time of data, process the format of data, convert GIS and dat data into XLS or kesain1 data, and automatically add transfer points)
    2020-04-17 13:59:25下载
    积分:1
  • 此源码是《C#入门经典》一书第六章的源代码
    此源码是《C#入门经典》一书第六章的源代码-This source is the C# Entry classic book, Chapter VI of the source code
    2023-08-13 11:15:03下载
    积分:1
  • SimpleGraphicsClass_demo
    A simple graphics class for 2D drawing
    2016-12-28 03:44:35下载
    积分:1
  • wpf仿qq窗口2
    wpf仿qq窗口2
    2015-01-27下载
    积分:1
  • blind_cma
    数字自适应波束形成算法中的盲自适应算法的分析与仿真(Analysis and simulation of digital adaptive beamforming algorithm blind adaptive algorithm)
    2013-04-26 13:58:14下载
    积分:1
  • UCOSII实验1-1-任务调度
    本实验将实现如下功能:本章我们在UCOSII里面创建3个任务:开始任务、LED0任务和LED1任务,开始任务用于创建其他(LED0和LED1)任务,之后挂起;LED0任务用于控制DS0的亮灭,DS0每秒钟亮80ms;LED1任务用于控制DS1的亮灭,DS1亮300ms,灭300ms,依次循环。(This experiment will achieve the following functions: in UCOSII, we create three tasks: start task, LED 0 task and LED 1 task, start task for creating other tasks (LED 0 and LED 1), then hang up; LED 0 task for controlling the brightness of DS0, DS0 80 ms per second; LED 1 task for controlling the brightness of DS1, DS1 300 ms. 300 ms, cycle in turn.)
    2020-06-24 05:40:02下载
    积分:1
  • Aexpp06_adaptd
    自适应陷波器的仿真程序源码,初级入门的的matlab仿真程序源码 可直接使用。 (Adaptive notch filter simulation program source code, the primary entry of the Matlab simulation program source can be used directly.)
    2012-07-18 20:51:54下载
    积分:1
  • Camdemo
    Camshift算法,即"Continuously Adaptive Mean-Shift"算法,是一种自适应的运动跟踪算法。它主要通过视频图像中运动物体的颜色信息来达到跟踪目的。(Camshift algorithm, namely " Continuously Adaptive Mean-Shift" algorithm is an adaptive motion tracking algorithm. It is primarily the color information of the object' s movement through the video images to achieve tracking purposes.)
    2014-01-11 19:45:29下载
    积分:1
  • GLText_GDI
    OPENGL的Text显示类. win32平台.(OPENGL display the Text category. Win32 platform.)
    2016-02-18 05:12:05下载
    积分:1
  • example41_SD_FAT32
    说明:  DSP实现对内存卡写入的测试程序 能够准确的对内存卡进行写入操作 可在此基础上进一步开发内存卡(A Test Program for Memory Card Writing Based on DSP Can accurately write to memory card On this basis, memory card can be further developed.)
    2020-06-17 22:20:01下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载