-
扫雷(图遍历)
背景
你玩儿过扫雷游戏吧?有个操作系统中带了这个小游戏,那个系统叫什么来着?;-)在游戏中要想过关,就必须要在一个 NxM 的区域上找出所有的地雷。游戏过程中,计算机会在地图上显示一些数字从而帮助你确定哪里有地雷。例如,在下面这个有两颗地雷的 4x4 的地图(*表示地雷):
*...
....
.*..
....
根据上面的地图,可以计算出应该提供给游戏者的数字如下所示:
*100
2210
1*10
1110
每个数字表示了该方格周围到底有几个地雷,当然,一个方格周围最多的时候只会有八个。
输入
输入中将包括一系列的地图,每个地图的第一行有两个整数 n 和 m(0
- 2022-01-25 19:22:18下载
- 积分:1
-
中值滤波的 matlab 程序代码
在图像处理中,就必须得到更好的图像质量。所以在这里实现了中值滤波的代码及去噪算法。
- 2023-06-27 03:00:03下载
- 积分:1
-
哈夫曼编码和解码系统,并可对文件进行编码
哈夫曼编码和解码系统,并可对文件进行编码-Huffman coding and decoding system, the documents can be encoded
- 2022-04-10 18:08:36下载
- 积分:1
-
dobbs编缉器升级版的C语言源程序
dobbs编缉器升级版的C语言源程序-Dobbs editor for an updated version of the C language source
- 2022-10-09 14:30:03下载
- 积分:1
-
这个程序有别于已经做好exe文件的2
这个程序有别于已经做好exe文件的2-8-10-16进制转换程序而是可以被其他程序调用,或简单地用ctrl c,来复制其中一段至目标程序的源代码-have made exe files 2-8-10-16 base for the conversion process, but the other procedures can be called, or simply use the ctrl c, to replicate some of which target program"s source code
- 2022-02-01 06:25:30下载
- 积分:1
-
this program is continuation of 1laser
this program is continuation of 1laser - can fire 2 lasers rangefinders from MDL simultaneusly and then registers measured distance to file - very useful for photogrametry-this program is continuation of 1laser- can fire 2 lasers rangefinders from MDL simultaneusly and then registers measured distance to file- very useful for photogrametry
- 2022-03-25 19:09:06下载
- 积分:1
-
求解非线性方程。调用格式x=fmincon(fun,x0,A,b,Aeq,beq,VLB,VUB)
求解非线性方程。调用格式x=fmincon(fun,x0,A,b,Aeq,beq,VLB,VUB)-For solving nonlinear equations. Call the format x = fmincon (fun, x0, A, b, Aeq, beq, VLB, VUB)
- 2022-05-18 12:48:14下载
- 积分:1
-
哈希表设计:数组,结构体
哈希表设计:数组,结构体-hash wishes the form is designed: The array, structure body
- 2022-03-03 13:23:00下载
- 积分:1
-
该程序用于计算幂积,它比普通的连乘方法要快得多,主要是它含有分治的思想。...
该程序用于计算幂积,它比普通的连乘方法要快得多,主要是它含有分治的思想。-the procedures used in the calculation of power plot, it more than ordinary continually multiply much faster method, it is the partition containing the idea.
- 2022-03-04 21:58:54下载
- 积分:1
-
TC35板子上单片机短信控制继电器源程序
TC35板子将单片机与GSM短信模块级联在一起 此代码详细描述了怎样通过手机向GSM模块发短信以通过单片机控制继电器
- 2022-12-08 12:00:08下载
- 积分:1