c******s 发帖数: 270 | 1 【 以下文字转载自 Quant 讨论区 】
发信人: JetMax (JetMax), 信区: Quant
标 题: A brain teaser question
发信站: BBS 未名空间站 (Sun Dec 16 14:03:40 2007)
Given a grid, each square in the grid has a light bulb and a button.
Everytime you press the button in a square, the light in this square and all
those in the immediately directly adjacent squares (i.e., the up, down,
left, and right squares; note that diagnally adjacent squares do not count)
are turned off. All lights are on initially.
Then question is: what is the minim | N*****N 发帖数: 1605 | 2 这是brainteaser还是算法题?
all
)
turn
【在 c******s 的大作中提到】 : 【 以下文字转载自 Quant 讨论区 】 : 发信人: JetMax (JetMax), 信区: Quant : 标 题: A brain teaser question : 发信站: BBS 未名空间站 (Sun Dec 16 14:03:40 2007) : Given a grid, each square in the grid has a light bulb and a button. : Everytime you press the button in a square, the light in this square and all : those in the immediately directly adjacent squares (i.e., the up, down, : left, and right squares; note that diagnally adjacent squares do not count) : are turned off. All lights are on initially. : Then question is: what is the minim
| c******s 发帖数: 270 | 3 PS: a light is always off once it's been turned off. | c******s 发帖数: 270 | 4 我也这么觉得, 一点都不teaser
【在 N*****N 的大作中提到】 : 这是brainteaser还是算法题? : : all : ) : turn
|
|