登录
首页 » 算法 » 扫雷(图遍历)

扫雷(图遍历)

于 2022-01-25 发布 文件大小:443.58 kB
0 133
下载积分: 2 下载次数: 1

代码说明:

背景 你玩儿过扫雷游戏吧?有个操作系统中带了这个小游戏,那个系统叫什么来着?;-)在游戏中要想过关,就必须要在一个 NxM 的区域上找出所有的地雷。游戏过程中,计算机会在地图上显示一些数字从而帮助你确定哪里有地雷。例如,在下面这个有两颗地雷的 4x4 的地图(*表示地雷): *... .... .*.. .... 根据上面的地图,可以计算出应该提供给游戏者的数字如下所示: *100 2210 1*10 1110 每个数字表示了该方格周围到底有几个地雷,当然,一个方格周围最多的时候只会有八个。 输入 输入中将包括一系列的地图,每个地图的第一行有两个整数 n 和 m(0

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

发表评论

0 个回复

  • c语言DES
    c语言DES算法,本算法已经通过了VS2010的验证,并且可以和Matlab2012进行联合编程,可以提供64位加密,56位密钥。
    2022-06-01 17:57:35下载
    积分:1
  • 约瑟夫猴子游戏
    约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的顺序是:5,4,6,2,3,1。
    2022-07-09 10:25:35下载
    积分:1
  • Fortran科学计程序,计原子间力的大小,能级分布
    Fortran科学计算程序,计算原子间力的大小,能级分布-Fortran scientific computing procedures, calculation of inter-atomic force size, level distribution
    2022-08-24 15:49:45下载
    积分:1
  • 多机器人路径规划,RVO
    多机器人路径规划算法,可视化界面显示,默认实验数据为实现4个机器人路径规划。希望对于路径规划的学习者有一定帮助。
    2022-10-31 01:15:03下载
    积分:1
  • JPHide 和JPSeek 的源代码
    应用背景JPHide 和JPSeek 的源代码!JPHide&JPSeek是一个JPEG图像的信息隐藏软件!-JPHide and JPSeek source code! JPHide & JPSeek is a JPEG image information hidden software!关键技术JPHIDE and JPSEEK are programs which allow you to hide a file in a jpeg visual image. There are lots of versions of similar programs available on the internet but JPHIDE and JPSEEK are rather special. The design objective was not simply to hide a file but rather to do this in such a way that it is impossible to prove that the host file contains a hidden file. Given a typical visual image, a low insertion rate (under 5%) and the absence of the original file, it is not possible to conclude with any worthwhile certainty that the host file contains inserted data. As the insertion percentage increases the statistical nature of the jpeg coefficients differs from "normal" to the extent that it raises suspicion. Above 15% the e
    2022-07-21 14:22:36下载
    积分:1
  • 奇异分解,针对不能求逆的情况下,才用svd方就能够解方程...
    奇异分解,针对不能求逆的情况下,才用svd方法就能够解方程-Singular decomposition, for the case of inversion should not only be able to use SVD approach equation solution
    2022-03-02 18:40:59下载
    积分:1
  • 平衡二叉树
    数据结构中关于平衡二叉树的源码,学完数据结构后,老师要求我们写的,自己觉得还行,不足之处希望大家见谅!
    2022-03-02 12:24:01下载
    积分:1
  • rs码C语言
    这是一个rs码的编解码算法,二维码也是使用了这个算法。编程语言是用c语言编写。很是不错的。看起来还是能够接收的。文件分开写了,易于理解。
    2022-04-10 09:31:21下载
    积分:1
  • 图像捕捉
    应用背景这是利用计算机在执行程序时捕捉图像的图像。关键技术图像捕获、VFP、图像采集、自动采集、图像捕捉、屏幕截图、程序
    2022-03-20 12:22:54下载
    积分:1
  • 含有线性插值, 样条插值,Gauss矩阵列主元消去的实现
    含有线性插值, 样条插值,Gauss矩阵列主元消去法等算法的实现 -with linear interpolation, spline interpolation, Gauss matrix main-element elimination algorithm Law Implementation
    2022-09-23 08:20:03下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载