Question 106
Using the digits $1, 2, 3, 4$ without repetition, how many distinct 2-digit numbers can be formed?
Xem đáp án và lời giải
Đáp án: $12$
There are $4$ choices for the tens digit and $3$ for the units digit: $4 \times 3 = 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.
Using the digits $1, 2, 3, 4$ without repetition, how many distinct 2-digit numbers can be formed?
Đáp án: $12$
There are $4$ choices for the tens digit and $3$ for the units digit: $4 \times 3 = 12$.
A box contains socks of $4$ different colors, with at least $10$ socks of each color. What is the minimum number of socks you must draw blindly to guarantee at least $2$ socks of the same color?
Đáp án: $5$
By the Pigeonhole Principle, worst case draws $1$ of each of the $4$ colors before the next sock guarantees a match: $4(1) + 1 = 5$.
At a math camp, $9$ students each shake hands with every other student exactly once. How many handshakes take place in total?
Đáp án: $36$
Số cái bắt tay là $\dfrac{9 \times 8}{2} = 36$.
A box contains socks of $4$ different colors (at least $10$ of each). What is the minimum number of socks to draw in the dark to guarantee at least $3$ socks of the same color?
Đáp án: $9$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $4 \times (3 - 1) + 1 = 9$.
[Part C · Hard] Chef Mimi has 1 toaster that can toast at most 2 slices of bread at the same time. Each slice only needs to be toasted for 1 minute total (both sides are toasted together in the slot). What is the shortest time in minutes needed to toast 5 slices?
Đầu bếp Mimi có $1$ máy nướng bánh mì, mỗi lượt nướng được tối đa $2$ lát bánh cùng lúc. Mỗi lát bánh chỉ cần đặt vào khe máy đúng $1$ phút là chín cả hai mặt. Hỏi cần ít nhất bao nhiêu phút để nướng xong $5$ lát bánh? (Chỉ điền số)
Đáp án: $3$
Answer / Đáp án: 3
Step-by-step (EN): Each 1-minute batch can finish at most $2$ slices. In $2$ minutes we can toast at most $2 \times 2 = 4$ slices (not enough for $5$). In $3$ minutes: Minute 1 (slices 1, 2), Minute 2 (slices 3, 4), Minute 3 (slice 5).
Giải chi tiết (VI): Mỗi lượt $1$ phút nướng tối đa $2$ lát bánh. Trong $2$ phút chỉ nướng được tối đa $2 \times 2 = 4$ lát (chưa đủ $5$ lát). Vậy cần ít nhất $3$ phút ($2 + 2 + 1 = 5$ lát).
Computational Thinking / Tư duy Máy tính: Resource Scheduling & Capacity Bounds (Lập lịch tài nguyên có giới hạn công suất).
[Part C · Hard] The map shows walking times (in minutes) along paths between four park huts A, B, C, and D. What is the shortest walking time (in minutes) from hut A to hut D?
Bản đồ thể hiện thời gian đi bộ (tính bằng phút) trên các con đường nối bốn chòi nghỉ A, B, C, D trong công viên. Thời gian đi bộ ngắn nhất (tính bằng phút) từ chòi A đến chòi D là bao nhiêu? (Chỉ điền số)
Đáp án: $6$
Answer / Đáp án: 6
Step-by-step (EN): Compare all simple routes from A to D:
A -> B -> D: $4 + 3 = 7$ min.A -> C -> D: $2 + 6 = 8$ min.A -> C -> B -> D: $2 + 1 + 3 = 6$ min.The shortest time is $6$ minutes.
Giải chi tiết (VI): So sánh các lộ trình từ A sang D:
A -> B -> D: $4 + 3 = 7$ phút.A -> C -> D: $2 + 6 = 8$ phút.A -> C -> B -> D: $2 + 1 + 3 = 6$ phút.Vậy thời gian ngắn nhất là $6$ phút.
Computational Thinking / Tư duy Máy tính: Shortest Path in Weighted Graphs (Đường đi ngắn nhất trên đồ thị có trọng số).
A train controller moves a train exactly 5 stations forward. The only commands are JUMP-1 and JUMP-2. How many different command sequences work?
Đáp án: $8$
Lệnh cuối là JUMP-1 hoặc JUMP-2. Số cách đến trạm k bằng tổng số cách đến hai trạm trước đó. Từ 1 cách ở trạm 0 và 1 cách ở trạm 1, tính được 8 cách.
In a database, $14$ files have only Tag A, $9$ have only Tag B, and $5$ have both. How many files match the search query Tag A OR Tag B?
Đáp án: $28$
Phép OR lấy hợp của hai tập: $14 + 5 + 9 = 28$.
At a math camp, $6$ students each shake hands with every other student exactly once. How many handshakes take place in total?
Đáp án: $15$
Số cái bắt tay là $\dfrac{6 \times 5}{2} = 15$.
A box contains socks of $5$ different colors (at least $10$ of each). What is the minimum number of socks to draw in the dark to guarantee at least $2$ socks of the same color?
Đáp án: $6$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $5 \times (2 - 1) + 1 = 6$.
A box contains socks of $4$ different colors (at least $10$ of each). What is the minimum number of socks to draw in the dark to guarantee at least $3$ socks of the same color?
Đáp án: $9$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $4 \times (3 - 1) + 1 = 9$.
Grandma baked $11$ cookies. She decorated $6$ of them with chocolate chips and $8$ of them with almonds. At least how many cookies were decorated with both chocolate chips and almonds?
Đáp án: $3$
Grandma baked $12$ cookies. She decorated $7$ of them with chocolate chips and $9$ of them with almonds. At least how many cookies were decorated with both chocolate chips and almonds?
Đáp án: $4$
Grandma baked $10$ cookies. She decorated $6$ of them with chocolate chips and $7$ of them with almonds. At least how many cookies were decorated with both chocolate chips and almonds?
Đáp án: $3$
Grandma baked $15$ cookies. She decorated $9$ of them with chocolate chips and $10$ of them with almonds. At least how many cookies were decorated with both chocolate chips and almonds?
Đáp án: $4$