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

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

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

  • C++作业
    大学初学计算机编程语言C++以及数据结构与算法的实际应用题代码(University beginner computer programming language C++ and practical application code of data structure and algorithm)
    2018-11-22 11:40:38下载
    积分:1
  • untitled8
    说明:  基于C++和QT的联合开发,它被用来建立其他的接口学习机制(Based on the joint development of C + + and QT, it is used to establish other interface learning mechanisms)
    2020-03-13 10:58:55下载
    积分:1
  • Multiwii_2_2
    MultiWii WinGUI 是.NET 基础配置和 GCS 界面为著名的 MultiWii multicopter 控制器软件。 它并不打算取代了原来的 MultiWiiConf 实用程序,但试图通过牺牲多平台功能提供更丰富的用户体验。 Sponsored links
    2022-10-20 09:40:03下载
    积分:1
  • E5
    计算机图形学实验,完成立方体的三视图和等轴侧投影(Computer graphics experiments, the completion of three cube view and isometric projection)
    2013-11-08 15:58:42下载
    积分:1
  • hanzi2pinyin
    有意思的小程序,用VB编程实现返回汉字拼音首字母,在某些时候我们能用得到!(Interesting applets, Programming with VB to return to the first letter of alphabet characters, at certain times we can get!)
    2016-02-18 08:54:12下载
    积分:1
  • P147_S1_WDT_Timer
    MSP430F149 例程,看门狗 C源程序代码。(MSP430F149 routine, the watchdog C source code.)
    2013-11-28 14:56:34下载
    积分:1
  • ZLG7290-C51
    周立功单片机ZLG7290源程序文件代码,有7290.c 7290.h viic-c51.c(29 common problems of Zhou Li Gong single chip microcomputer)
    2020-09-03 11:08:07下载
    积分:1
  • winio编程
    看到此文件不错,觉得很有用,特上传共享!看到此文件不错,觉得很有用,特上传共享!看到此文件不错,觉得很有用,特上传共享!看到此文件不错,觉得很有用,特上传共享!
    2023-07-18 02:05:03下载
    积分:1
  • GainSpan-GS1011M-Data-Sheet
    GS1011M Low-Power Wireless System-On-Chip WIFI Module Data Sheet(GS1011M Low-Power Wireless System-On-Chip WIFI Module Data Sheet)
    2020-06-25 21:20:01下载
    积分:1
  • ButtonST
    带特效的Button控件,可以添加图片、URL、根据事件动态改变显示(ButtonST Ctrl)
    2015-09-17 09:54:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载