-
扫雷(图遍历)
背景
你玩儿过扫雷游戏吧?有个操作系统中带了这个小游戏,那个系统叫什么来着?;-)在游戏中要想过关,就必须要在一个 NxM 的区域上找出所有的地雷。游戏过程中,计算机会在地图上显示一些数字从而帮助你确定哪里有地雷。例如,在下面这个有两颗地雷的 4x4 的地图(*表示地雷):
*...
....
.*..
....
根据上面的地图,可以计算出应该提供给游戏者的数字如下所示:
*100
2210
1*10
1110
每个数字表示了该方格周围到底有几个地雷,当然,一个方格周围最多的时候只会有八个。
输入
输入中将包括一系列的地图,每个地图的第一行有两个整数 n 和 m(0
- 2022-01-25 19:22:18下载
- 积分:1
-
快速DCT算法32位的C语言实现,乘法次数最少,可嵌入编码器及解码器使用
快速DCT算法32位的C语言实现,乘法次数最少,可嵌入编码器及解码器使用- Fast DCT the algorithm 32 C language realization, the
multiplication number of times are least, may insert the encoder and
the decoding use
- 2022-08-19 10:04:59下载
- 积分:1
-
顺序表的实现
资源描述大家好,这是我大学写的数据结构顺序表的实现,非常有参考价值
- 2023-08-20 13:45:03下载
- 积分:1
-
delauney二维非结构网格生成过程中使用的语言
delauney二维非结构化网格生成程序 采用fortran语言-Delauney 2D unstructured mesh generation process using FORTRAN language
- 2022-07-12 00:48:11下载
- 积分:1
-
ResizeImageMatrix
This program implements various interpolation techniques to resize 2D matrices or Image Matrices.
Methods of interpolation used are
1) Nearest Neighbour
2) Bilinear
3) Bicubic 2x2
4) Bicubic 4x4
5) Bicubic 6x6
6) Bicubic 8x8
- 2022-01-25 16:59:14下载
- 积分:1
-
用C语言来实现的,求解线性方程组,还可以实现解向量的一个程序。...
用C语言来实现的,求解线性方程组,还可以实现解向量的一个程序。-The decomposition realizes with the C language, solution system of linear equations, but also may realize the solution vector one procedure
- 2022-02-02 11:07:43下载
- 积分:1
-
98年全国大学生数学建模竞赛B题"水灾巡视问题"模拟退火算法。...
98年全国大学生数学建模竞赛B题"水灾巡视问题"模拟退火算法。-98 National Mathematical Contest in Modeling B and that the "flood inspections" simulated annealing.
- 2022-07-05 03:34:32下载
- 积分:1
-
工程中微分方程数值积分经常需要使用的Newmark法
工程中微分方程数值积分经常需要使用的Newmark法-Differential equations numerical integration project often requires the use of the Newmark method
- 2022-11-07 14:00:03下载
- 积分:1
-
Tower of Hanoi game, according to the user to enter the location of the mobile p...
汉诺塔游戏,根据用户输入盘子移动的位置来移动盘子,并显示状况-Tower of Hanoi game, according to the user to enter the location of the mobile plate to move the plates, and display status
- 2022-07-07 06:01:11下载
- 积分:1
-
计算器
计算器- Calculator
- 2023-09-06 08:35:03下载
- 积分:1