Question 601
In a database, $15$ files have only Tag A, $9$ have only Tag B, and $6$ have both. How many files match the search query Tag A OR Tag B?
Xem đáp án và lời giải
Đáp án: $30$
Phép OR lấy hợp của hai tập: $15 + 6 + 9 = 30$.
Luyện tập / Chủ đề Combinatorics · Tổ hợp
Bài tập quy tắc đếm, hoán vị, chỉnh hợp, tổ hợp, nguyên lý Dirichlet, bất biến và xác suất thống kê.
Đăng nhập để lưu tiến độ và tích lũy điểm trên bảng xếp hạng.
In a database, $15$ files have only Tag A, $9$ have only Tag B, and $6$ have both. How many files match the search query Tag A OR Tag B?
Đáp án: $30$
Phép OR lấy hợp của hai tập: $15 + 6 + 9 = 30$.
How many shortest paths along the grid lines lead from $A$ (bottom-left) to $B$ (top-right) on this $5 \times 4$ grid without passing through the blocked intersection $\times$?
Đáp án: $66$
In how many ways can $4$ identical rooks be placed on this $4 \times 4$ board so that no two attack each other AND none of the $4$ rooks lies on the main diagonal (from top-left to bottom-right)?
Đáp án: $9$
$$ D_4 = 4!\left(1 - \dfrac{1}{1!} + \dfrac{1}{2!} - \dfrac{1}{3!} + \dfrac{1}{4!}\right) = 24 - 24 + 12 - 4 + 1 = 9 $$
cách.
In how many ways can a $2 \times 9$ rectangle be completely tiled using $1 \times 2$ dominoes (placed horizontally or vertically)?
Đáp án: $55$
$$ f_1=1, f_2=2, f_3=3, f_4=5, f_5=8, f_6=13, f_7=21, f_8=34, f_9=55 $$
.
How many shortest paths along the grid lines lead from $A$ (bottom-left) to $B$ (top-right) on this $5 \times 5$ grid without passing through the blocked intersection $\times$?
Đáp án: $152$
In how many ways can $5$ identical rooks be placed on this $5 \times 5$ board so that no two attack each other and symmetric across the main diagonal (if $(r, c)$ has a rook, then $(c, r)$ also has a rook)?
Đáp án: $26$
How many binary strings of length $8$ (made of 0s and 1s) contain NO two consecutive 1s?
Đáp án: $55$
11: kết thúc bằng 0 có $a_{n-1}$ xâu, kết thúc bằng 01 có $a_{n-2}$ xâu $\Rightarrow a_n = a_{n-1} + a_{n-2}$ với $a_1 = 2, a_2 = 3$!How many shortest paths along the grid lines lead from $A$ (bottom-left) to $B$ (top-right) on this $6 \times 3$ grid without passing through the blocked intersection $\times$?
Đáp án: $44$
In how many ways can $3$ identical rooks be placed on this $4 \times 4$ board so that no two rooks share a row or a column?
Đáp án: $96$
A frog starts at vertex $A$ of triangle $ABC$. Every second, it jumps uniformly at random to one of the other two vertices. How many different $4$-jump sequences start at $A$ and end back at $A$ after the $4$th jump?
Đáp án: $6$
$$ (a_1, b_1) = (0, 1) \to (a_2, b_2) = (2, 1) \to (a_3, b_3) = (2, 3) \to a_4 = 2 b_3 = 6 $$
.
How many shortest paths along the grid lines lead from $A$ (bottom-left) to $B$ (top-right) on this $6 \times 4$ grid without passing through the blocked intersection $\times$?
Đáp án: $110$
How many squares of all sizes ($1 \times 1$ up to $5 \times 5$) are bounded by the grid lines of this $5 \times 5$ board?
Đáp án: $55$
$$ 1^2 + 2^2 + 3^2 + 4^2 + 5^2 = 1 + 4 + 9 + 16 + 25 = 55 $$
hình vuông.
Into how many regions do $8$ straight lines in general position (no two parallel, no three concurrent) divide the Euclidean plane?
Đáp án: $37$
Cách suy luận: Số miền phẳng tối đa là: $$1 + (1 + 2 + 3 + \cdots + 8) = 1 + \dfrac{8 \times 9}{2} = 37\text{ miền}.$$
How many shortest paths along the grid lines lead from $A$ (bottom-left) to $B$ (top-right) on this $5 \times 4$ grid without passing through the blocked intersection $\times$?
Đáp án: $66$
Two squares are chosen at random from this $4 \times 4$ board. How many unordered pairs of squares share a common edge?
Đáp án: $24$