文件名称:light
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:171.06kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
求解关灯游戏。 手机上的游戏:有n×m个格子代表n×m个房间,每个房间有一盏灯和一个奇怪的开关,这个开关可以同时控制本房间和上下左右四个房间的灯,但是每次只能同时变换状态,把开的关掉,关的开启。现在有若干个房间的灯开着,问如何使用这些开关关掉所有灯。
注意到灯的状态跟开关数量有关,但是跟开关使用的次序没有关系,而且某个开关使用两次跟没有使用的效果相同,也就是说n×m个房间最多需要使用n×m次开关就能够把所有灯关掉,每个开关最多使用一次。 -Solving the lights game. Mobile phone game: an n × m grid on behalf of an n × m rooms, each room has a light and a strange switch, this switch can also control the lights of the room and four rooms up and down, but each time only can change state, turn off the open, related to open. There are a number of room lights on, and asked how to use these to switch off all lights.
Noting that the light of the state with the number of switches, but with the switch to use the order does not matter, and a switch is used twice with the same effect as not using, that is the n × m, a room need to use up to n × m switch all the lights to turn off each switch up to be used once.
注意到灯的状态跟开关数量有关,但是跟开关使用的次序没有关系,而且某个开关使用两次跟没有使用的效果相同,也就是说n×m个房间最多需要使用n×m次开关就能够把所有灯关掉,每个开关最多使用一次。 -Solving the lights game. Mobile phone game: an n × m grid on behalf of an n × m rooms, each room has a light and a strange switch, this switch can also control the lights of the room and four rooms up and down, but each time only can change state, turn off the open, related to open. There are a number of room lights on, and asked how to use these to switch off all lights.
Noting that the light of the state with the number of switches, but with the switch to use the order does not matter, and a switch is used twice with the same effect as not using, that is the n × m, a room need to use up to n × m switch all the lights to turn off each switch up to be used once.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
求解关灯.exe
LightsOffApp/LightsOffApp/LightsOff.cpp
LightsOffApp/LightsOffApp/LightsOff.h
LightsOffApp/LightsOffApp/LightsOffApp.aps
LightsOffApp/LightsOffApp/LightsOffApp.cpp
LightsOffApp/LightsOffApp/LightsOffApp.h
LightsOffApp/LightsOffApp/LightsOffApp.rc
LightsOffApp/LightsOffApp/LightsOffApp.vcproj
LightsOffApp/LightsOffApp/LightsOffAppDlg.cpp
LightsOffApp/LightsOffApp/LightsOffAppDlg.h
LightsOffApp/LightsOffApp/ReadMe.txt
LightsOffApp/LightsOffApp/res/LightsOffApp.ico
LightsOffApp/LightsOffApp/res/LightsOffApp.manifest
LightsOffApp/LightsOffApp/res/LightsOffApp.rc2
LightsOffApp/LightsOffApp/res
LightsOffApp/LightsOffApp/resource.h
LightsOffApp/LightsOffApp/stdafx.cpp
LightsOffApp/LightsOffApp/stdafx.h
LightsOffApp/LightsOffApp
LightsOffApp/LightsOffApp.ncb
LightsOffApp/LightsOffApp.sln
LightsOffApp/LightsOffApp.suo
LightsOffApp
LightsOffApp/LightsOffApp/LightsOff.cpp
LightsOffApp/LightsOffApp/LightsOff.h
LightsOffApp/LightsOffApp/LightsOffApp.aps
LightsOffApp/LightsOffApp/LightsOffApp.cpp
LightsOffApp/LightsOffApp/LightsOffApp.h
LightsOffApp/LightsOffApp/LightsOffApp.rc
LightsOffApp/LightsOffApp/LightsOffApp.vcproj
LightsOffApp/LightsOffApp/LightsOffAppDlg.cpp
LightsOffApp/LightsOffApp/LightsOffAppDlg.h
LightsOffApp/LightsOffApp/ReadMe.txt
LightsOffApp/LightsOffApp/res/LightsOffApp.ico
LightsOffApp/LightsOffApp/res/LightsOffApp.manifest
LightsOffApp/LightsOffApp/res/LightsOffApp.rc2
LightsOffApp/LightsOffApp/res
LightsOffApp/LightsOffApp/resource.h
LightsOffApp/LightsOffApp/stdafx.cpp
LightsOffApp/LightsOffApp/stdafx.h
LightsOffApp/LightsOffApp
LightsOffApp/LightsOffApp.ncb
LightsOffApp/LightsOffApp.sln
LightsOffApp/LightsOffApp.suo
LightsOffApp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.