2012 AMC 12B 第 12 题

先试着解答 2012 AMC 12B 第 12 题,然后核对你的答案与精心整理的解答,解答来自 LIVE by Po-Shen Loh。你也可以参加完整限时模拟考试、查看全部 2012 AMC 12B 解答,或核对答案。

所有题目均经美国数学协会(MAA)官方合法授权使用。

12.

有多少个长度为 2020 的由零和/或一组成的序列满足:所有零连续,或者所有一连续,或者两者都满足?
How many sequences of zeros and/or ones of length 2020 have all the zeros consecutive, or all the ones consecutive, or both?
190190
192192
211211
380380
382382
答案:E
知识点:容斥原理组合
小提示:
设 AA 为所有零连在一起的序列,BB 为所有一连在一起的序列,然后用 ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A\cup B|=|A|+|B|-|A\cap B|。
Let AA be the sequences with all zeros together and BB those with all ones together, then use ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A\cup B|=|A|+|B|-|A\cap B|
大提示:
所有零连在一起的序列由第一个和最后一个零的位置确定,共有 1+20+(202)1+20+\binom{20}{2} 个。
A sequence with the zeros together is fixed by choosing the first and last zero positions, giving 1+20+(202)1+20+\binom{20}{2} of them
解答:
设 AA 为所有零连续的序列,BB 为所有一连续的序列。
对于 AA,有一个全是一的序列,2020 个恰有一个零的序列,以及 (202)=190\binom{20}{2}=190 个含有至少两个零的序列(选择第一个和最后一个零的位置)。所以 ∣A∣=1+20+190=211|A|=1+20+190=211,由对称性 ∣B∣=211|B|=211。
A∩BA\cap B 中的序列是一个零的块后接一个一的块,或顺序相反;这样的序列有 ∣A∩B∣=40|A\cap B|=40 个。
因此 ∣A∪B∣=211+211−40|A\cup B|=211+211-40 =382=382。
因此正确答案是 E。
Let AA be the sequences in which all zeros are consecutive and BB those in which all ones are consecutive.
For A,A, there is one all-ones sequence, 2020 sequences with exactly one zero, and (202)=190\binom{20}{2}=190 sequences with two or more zeros (choose the first and last zero position). So ∣A∣=1+20+190=211,|A|=1+20+190=211, and by symmetry ∣B∣=211.|B|=211.
A sequence in A∩BA\cap B is a block of zeros followed by a block of ones, or the reverse; there are ∣A∩B∣=40|A\cap B|=40 of these.
Therefore ∣A∪B∣=211+211−40|A\cup B|=211+211-40 =382.=382.
Thus, the correct answer is E.
LIVE by Po-Shen Loh
LIVE项目

LIVE直播课程

Self-Paced录播课程

启明星Star计划

奖学金项目

关于我们

罗博深是谁?

邮件联系

订阅英文简报

加入我们

申请明星导师

For a more Thought Full world.

© 2026 Expii, Inc.