Description: 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.
To Search:
File list (Check if you may need any files):
求解关灯.exe
LightsOffApp\LightsOffApp\LightsOff.cpp
............\............\LightsOff.h
............\............\LightsOffApp.aps
............\............\LightsOffApp.cpp
............\............\LightsOffApp.h
............\............\LightsOffApp.rc
............\............\LightsOffApp.vcproj
............\............\LightsOffAppDlg.cpp
............\............\LightsOffAppDlg.h
............\............\ReadMe.txt
............\............\res\LightsOffApp.ico
............\............\...\LightsOffApp.manifest
............\............\...\LightsOffApp.rc2
............\............\res
............\............\resource.h
............\............\stdafx.cpp
............\............\stdafx.h
............\LightsOffApp
............\LightsOffApp.ncb
............\LightsOffApp.sln
............\LightsOffApp.suo
LightsOffApp