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

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

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

  • 麦轮小车万向资料
    说明:  麦克纳姆轮 蓝牙连接 万向移动 蓝牙通信协议 波特率 9600 校验位 无 停止位 1位 一共发送8个字节:AA AA 00 00 00 00 55 55 AA AA (HEX格式,2字节,是帧头) 00 (HEX格式,1字节,转向,范围-127到127,0代表不转向;正值代表向右转向;负值代表向左转向) 00 (HEX格式,1字节,空) 00 (HEX格式,1字节,左右平移,范围-127到127,0代表停止左右平移;正值代表向右平移;负值代表向左平移) 00 (HEX格式,1字节,前后平移,范围-127到127,0代表停止前后平移;正值代表向前平移;负值代表向后平移) 55 55 (HEX格式,2字节,是帧尾)(McNamuren Wanxiang)
    2019-03-01 12:07:25下载
    积分:1
  • RS232
    基于ATMEGA16单片机的RS232通讯程序,其中还包括了红外遥控32位解码程序。只有一个源文件,无自定义头文件。可直接使用。(Based on ATMEGA16 microcontroller RS232 communication program, which also includes an infrared remote control 32-bit decoder. Only one source file, no custom headers. Can be used directly.)
    2011-10-17 09:39:42下载
    积分:1
  • ti-adc
    说明:  介绍很细致的中文版ti教程,详细介绍了ADC的应用(Introduced the Chinese version of a very detailed tutorial ti, detailing the application of ADC)
    2011-03-31 11:38:17下载
    积分:1
  • CART
    matlab中cart决策树源代码,用于数据的分类和预测。(source code in matlab cart decision tree for data classification and prediction.)
    2013-10-28 15:08:58下载
    积分:1
  • Qt-application-image-display-method
    Qt应用程序图片显示方法,介绍最简单的用pixmap显示一张图片的方法,包括绝对路径和相对路径两种方法。(Qt application image display method introduced easiest pixmap display a picture, the two methods including absolute and relative paths.)
    2013-01-20 14:30:32下载
    积分:1
  • IAP在线升级 STM32F767
    基于STM32F767的IAP,串口在线升级的程序
    2022-03-12 12:35:15下载
    积分:1
  • winldap
    告诉你怎么通过WINLDAP进行LDAP的编程,可以实际运行.(tell you how through WINLDAP for LDAP programming, the actual operation.)
    2006-11-01 21:44:38下载
    积分:1
  • 屏幕录像
    说明:  屏幕录像模块。本程序中可以录像、抓图。设置录像存储路径及光标是否显示。(Screen recording module. This program can record and capture pictures. Set whether the recording storage path and cursor are displayed.)
    2020-03-13 23:25:20下载
    积分:1
  • WebCrawlers
    搜索是网络技术的热门课题,网络爬虫是搜索技术的基础,用VC++编写的网络爬虫可以很好的学习这门课题,适合初学者(Search is a hot topic of network technology, network reptiles is based on search technology, using VC++ Prepared reptiles can be a very good network of learning in this subject, suitable for beginners)
    2008-06-29 23:48:22下载
    积分:1
  • IAR-STM8
    STM8的IAR工程,使用官方库文件,ST-Link仿真器(STM8,Demo Template in IAR)
    2011-11-15 15:44:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载