AMC12 2024 A
AMC12 2024 A · Q22
AMC12 2024 A · Q22. It mainly tests Basic counting (rules of product/sum), Geometry misc.
The figure below shows a dotted grid $8$ cells wide and $3$ cells tall consisting of $1''\times1''$ squares. Carl places $1$-inch toothpicks along some of the sides of the squares to create a closed loop that does not intersect itself. The numbers in the cells indicate the number of sides of that square that are to be covered by toothpicks, and any number of toothpicks are allowed if no number is written. In how many ways can Carl place the toothpicks?
下图显示了一个宽 $8$ 格、高 $3$ 格的虚线网格,由 $1''\times1''$ 正方形组成。Carl 沿一些正方形的边放置 $1$ 英寸牙签,创建一条不自交的闭合回路。单元格中的数字表示该正方形应被牙签覆盖的边的数量,如果未写数字则允许任意数量牙签。Carl 放置牙签的方法有多少种?
(A)
130
130
(B)
144
144
(C)
146
146
(D)
162
162
(E)
196
196
Answer
Correct choice: (C)
正确答案:(C)
Solution
Observations:
1. You can not have a vertical line in any place other than the first two columns and the last two columns. If we did, we would have at least one of the middle cells with toothpicks along more than one side, which would violate the conditions of the problem.
2. There are two cases that look completely different. We can have a long horizontal box that spans all eight cells either on top of or below the middle cells, or we have to have a shape that looks like a rectangle, except with a few places "pushed" in.
Thus, using casework, we can split the task of finding those rectangles with squiggly edges into 3 cases.
For case 1, we assume that the green lines shown below are given (always have toothpicks on them). In effect, we will use all eight columns.
The only toothpicks we can place that will connect to the red lines are to go horizontally inward:
Now, concentrate on the first row of squares. A toothpick can be placed on either the bottom or top and connected to a continuous squiggle by adding vertical toothpicks:
How many squiggles are possible?
We can summarize this by giving a high squiggle position a 1 and a low position a 0, thus we have a 6-digit binary sequence. Thus, we can have $2^6=64$ ways to make this squiggle. (The binary is not absolutely necessary, but it works.)
Case 2: We can also pull in one of the sides, thus we can have a squiggle with 5 binary digits, which only uses the first or last 7 columns:
Here, we only have 5 binary digits to work with, so there are $2^5=32$ ways to make this squiggle for each individual subcase. There are two subcases, one with the first 7 columns, and the other with the last 7, so we have a total of $32\cdot 2 = 64$ arrangements in this case.
Case 3: We can use an even smaller section. Using only the middle 6 columns gives us a 4-wide squiggle:
Thus, there are $2^4=16$ ways to make this squiggle.
These three cases together cover all loops of this form. If we try to bring the square bracket like shapes on each side any closer, there will be some middle cells that do not touch any toothpicks. Adding up all our cases for these types of shapes: $64+32+32+16=144$.
However, there are two more ways to draw a qualifying shape:
We can draw a rectangle like that in the first row or third row. Thus, we have a total of
$144+2=\boxed{\textbf{(C) }146}$ ways.
A note to (potential) editors:
This answer was not made to be concise or especially professional. It was made to explicitly explain this problem in a way so that it is easy to understand and follow.
观察:
1. 除了前两列和后两列外,任何地方都不能有垂直线。否则中间单元格至少有一条边有牙签,会违反问题条件。
2. 有两种完全不同的情况。我们可以在中间单元格上方或下方有一个跨越所有八个单元格的长水平盒子,或者形状像矩形,但有一些地方“凹入”。
因此,使用分类讨论,将寻找这些带波浪边的矩形任务分为 $3$ 种情况。
情况 $1$:假设下面显示的绿色线给定(始终有牙签)。实际上,我们使用所有八列。
唯一能连接到红线的牙签是水平向内:
现在,集中于第一行正方形。牙签可以放在底部或顶部,并通过添加垂直牙签连接到连续波浪:
波浪有多少种可能?
我们可以用 $1$ 表示高波浪位置,$0$ 表示低位置,从而得到 $6$ 位二进制序列。因此,有 $2^6=64$ 种方式制作此波浪。(二进制不是绝对必要的,但有效。)
情况 $2$:也可以拉入一侧,从而有 $5$ 位二进制数的波浪,仅使用前 $7$ 列或后 $7$ 列:
这里,只有 $5$ 位二进制数,所以每个子情况有 $2^5=32$ 种方式。有两个子情况,前 $7$ 列和后 $7$ 列,总共 $32\cdot 2 = 64$ 种排列。
情况 $3$:可以使用更小的部分。只用中间 $6$ 列给出 $4$ 宽波浪:
因此,有 $2^4=16$ 种方式制作此波浪。
这三种情况覆盖了所有此类形式的回路。如果试图将两侧的方括号状形状拉得更近,有些中间单元格将不接触任何牙签。将所有情况相加:$64+32+32+16=144$。
然而,还有两种更多方式绘制合格形状:
可以在第一行或第三行绘制矩形。因此,总共 $144+2=\boxed{\textbf{(C) }146}$ 种方式。
给(潜在)编辑的注:
此解答并非简洁或特别专业。它旨在明确解释此问题,便于理解和跟随。
Topics
Related Questions
Practice full AMC exams on amcdrill.
Try full-length practice and diagnostics at www.amcdrill.com.