文件名称:1_4jinbi
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:906.22kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有 m × n(m ≤ 100 ,n ≤ 100) 个金币在桌面上排成一个 m行 n列的金币阵列。
每一枚金币或正面朝上或背面朝上。用数字表示金币状态, 0表示金币正面朝上, 1表示背面朝上。
金币阵列游戏的规则是:
(1)每次可将任一行金币翻过来放在原来的位置上;
(2)每次可任选 2列,交换这 2列金币的位置。
.编程任务:
给定金币阵列的初始状态和目标状态,编程计算按金币游戏规则,将金币阵列从初始状
态变换到目标状态所需的最少变换次数。 -A m × n (m ≤ 100, n ≤ 100) gold coins on the table arranged in a m-n array of gold coins. Each gold coin or face up or back up. Gold status with the digits, 0 gold side up, 1 back up. Gold arrays rules of the game are: (1) gold coins each time to turn over any line on the original location (2) choice of two each time, switching the location of these two gold coins. . Programming tasks: Given the array of initial state and the gold target state, programming calculation rules of the game by gold, the gold transform the array to the target from the initial state the minimum required to change the number of states.
每一枚金币或正面朝上或背面朝上。用数字表示金币状态, 0表示金币正面朝上, 1表示背面朝上。
金币阵列游戏的规则是:
(1)每次可将任一行金币翻过来放在原来的位置上;
(2)每次可任选 2列,交换这 2列金币的位置。
.编程任务:
给定金币阵列的初始状态和目标状态,编程计算按金币游戏规则,将金币阵列从初始状
态变换到目标状态所需的最少变换次数。 -A m × n (m ≤ 100, n ≤ 100) gold coins on the table arranged in a m-n array of gold coins. Each gold coin or face up or back up. Gold status with the digits, 0 gold side up, 1 back up. Gold arrays rules of the game are: (1) gold coins each time to turn over any line on the original location (2) choice of two each time, switching the location of these two gold coins. . Programming tasks: Given the array of initial state and the gold target state, programming calculation rules of the game by gold, the gold transform the array to the target from the initial state the minimum required to change the number of states.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1_4jinbi/1_4jinbi.cpp
1_4jinbi/1_4jinbi.dsp
1_4jinbi/1_4jinbi.dsw
1_4jinbi/1_4jinbi.ncb
1_4jinbi/1_4jinbi.opt
1_4jinbi/1_4jinbi.plg
1_4jinbi/Debug/1_4jinbi.exe
1_4jinbi/Debug/1_4jinbi.ilk
1_4jinbi/Debug/1_4jinbi.obj
1_4jinbi/Debug/1_4jinbi.pch
1_4jinbi/Debug/1_4jinbi.pdb
1_4jinbi/Debug/vc60.idb
1_4jinbi/Debug/vc60.pdb
1_4jinbi/input.txt
1_4jinbi/output.txt
1_4jinbi/Debug
1_4jinbi
1_4jinbi/1_4jinbi.dsp
1_4jinbi/1_4jinbi.dsw
1_4jinbi/1_4jinbi.ncb
1_4jinbi/1_4jinbi.opt
1_4jinbi/1_4jinbi.plg
1_4jinbi/Debug/1_4jinbi.exe
1_4jinbi/Debug/1_4jinbi.ilk
1_4jinbi/Debug/1_4jinbi.obj
1_4jinbi/Debug/1_4jinbi.pch
1_4jinbi/Debug/1_4jinbi.pdb
1_4jinbi/Debug/vc60.idb
1_4jinbi/Debug/vc60.pdb
1_4jinbi/input.txt
1_4jinbi/output.txt
1_4jinbi/Debug
1_4jinbi
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.