|
#19
CLOSED AREAS
A 2x2 digital display consists of 12 segments. You will create a shape by turning some of the segments on. Rules:
? At least one of the segments will be on.
? Turned on segments will create one or more closed area.
? Each turned on segment will be on the perimeter of a closed area.
How many different shapes can be created?
For example: for a 1x2 digital display with 7 segments the answer would be 4.
2 shapes with 1 square, 1 shape with 2 squares and 1 shape with a rectangle.
一个2x2的数字显示屏由12段组成(形状如汉字的"田",由12段发光二极管构成)。 你可以通过点亮一些段来创建形状。规则:
至少有一段被点亮。
点亮的段将构成一个或多个封闭区域。
每个点亮的段都落在一个封闭区域的边上。
总共可以创建多少种不同的形状?
例如,对于具有7个段的1X2数字显示屏,答案为4。
一个方块的形状有两种,两个方块有一种,一个长方形为一种。
![]()
![]()
------------------
这个用脚趾头都能数出来,但是我们的SQL要对付NxN。
|
|