Question 271
Two fair $4$-sided dice numbered $1$ to $4$ are rolled. How many outcomes give two DIFFERENT numbers?
Xem đáp án và lời giải
Đáp án: $12$
Tổng số kết quả là $4 \times 4 = 16$. Trừ đi $4$ kết quả hai mặt giống nhau, còn $16 - 4 = 12$.
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.
Two fair $4$-sided dice numbered $1$ to $4$ are rolled. How many outcomes give two DIFFERENT numbers?
Đáp án: $12$
Tổng số kết quả là $4 \times 4 = 16$. Trừ đi $4$ kết quả hai mặt giống nhau, còn $16 - 4 = 12$.
[Part A · Easy] A complete binary tree has height $h = 4$ (Level $0$ has $1$ root node, Level $1$ has $2$ nodes, Level $2$ has $4$ nodes, Level $3$ has $8$ nodes, and Level $4$ has $16$ leaf nodes). How many nodes in total are in this tree?
Một cây nhị phân đầy đủ có chiều cao $h = 4$ (Tầng $0$ có $1$ nút gốc, Tầng $1$ có $2$ nút, Tầng $2$ có $4$ nút, Tầng $3$ có $8$ nút và Tầng $4$ có $16$ nút lá). Cây có tổng cộng bao nhiêu nút? (Chỉ điền số)
Đáp án: $31$
Answer / Đáp án: 31
Step-by-step (EN): Sum of geometric series: $1 + 2 + 4 + 8 + 16 = 2^5 - 1 = 31$ nodes.
Giải chi tiết (VI): Tổng số nút trên cả $5$ tầng là $1 + 2 + 4 + 8 + 16 = 2^5 - 1 = 31$ nút.
Computational Thinking / Tư duy Máy tính: Properties of Complete Binary Trees (Cấu trúc cây nhị phân đầy đủ).
An image row is compressed with Run-Length Encoding as 4W 3B 5W (meaning 4 White, 3 Black, 5 White). How many pixels are in this row?
Đáp án: $12$
Tổng số ô ảnh bằng $4 + 3 + 5 = 12$.
In a database, $10$ files have only Tag A, $10$ have only Tag B, and $5$ have both. How many files match the search query Tag A OR Tag B?
Đáp án: $25$
Phép OR lấy hợp của hai tập: $10 + 5 + 10 = 25$.
In a club, $12$ students take only Math, $11$ take only CS, $5$ take both, and $3$ take neither. How many students are in the club?
Đáp án: $31$
In road map #3-1, each edge shows the travel time in minutes between towns. What is the shortest time to travel from $A$ to $D$?
Đáp án: $9$
In tree #3-1, a full binary tree has $1$ root at level $0$, $2$ nodes at level $1$, and doubles at every next level. How many nodes are there in total from level $0$ to level $3$?
Đáp án: $15$
In experiment #3-1, two fair $6$-sided dice numbered $1$ to $6$ are rolled. How many outcomes give two DIFFERENT numbers?
Đáp án: $30$
In a club, $10$ students take only Math, $6$ take only CS, $4$ take both, and $2$ take neither. How many students are in the club?
Đáp án: $22$
In road map #3-2, each edge shows the travel time in minutes between towns. What is the shortest time to travel from $A$ to $D$?
Đáp án: $7$
In tree #3-2, a full binary tree has $1$ root at level $0$, $2$ nodes at level $1$, and doubles at every next level. How many nodes are there in total from level $0$ to level $4$?
Đáp án: $31$
In experiment #3-2, two fair $4$-sided dice numbered $1$ to $4$ are rolled. How many outcomes give two DIFFERENT numbers?
Đáp án: $12$
Maya writes the word MATHEMATICS 21 times in a row. How many times does she write the letter A?
Đáp án: $42$
Each copy of MATHEMATICS contains $2$ occurrence(s) of A, so 21 copies contain $2 \times 21 = 42$.
In a chess tournament with $12$ players, every player plays exactly one game against each of the other players. How many games are played in total?
Đáp án: $66$
There are $\binom{12}{2} = \dfrac{12 \times 11}{2} = 66$ games.
Maya writes the word GEOMETRY 14 times in a row. How many times does she write the letter E?
Đáp án: $28$
Each copy of GEOMETRY contains $2$ occurrence(s) of E, so 14 copies contain $2 \times 14 = 28$.