Question 256
In a database, $13$ files have only Tag A, $8$ 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: $27$
Phép OR lấy hợp của hai tập: $13 + 6 + 8 = 27$.
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, $13$ files have only Tag A, $8$ have only Tag B, and $6$ have both. How many files match the search query Tag A OR Tag B?
Đáp án: $27$
Phép OR lấy hợp của hai tập: $13 + 6 + 8 = 27$.
A box contains socks of $3$ 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: $7$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $3 \times (3 - 1) + 1 = 7$.
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$.
$10$ distinct points are marked on a straight line. How many line segments have both endpoints among these $10$ points? (Enter number only)
Trên một đường thẳng lấy $10$ điểm phân biệt. Hỏi có tất cả bao nhiêu đoạn thẳng có hai đầu mút là hai điểm trong $10$ điểm đã cho? (Chỉ nhập số)
Đáp án: $45$
Từ mỗi điểm nối với $9$ điểm còn lại tạo thành $9$ đoạn thẳng. Do mỗi đoạn bị đếm lặp $2$ lần nên tổng số đoạn thẳng là $\dfrac{10 \times 9}{2} = 45$.
$13$ distinct points are marked on a straight line. How many line segments have both endpoints among these $13$ points? (Enter number only)
Trên một đường thẳng lấy $13$ điểm phân biệt. Hỏi có tất cả bao nhiêu đoạn thẳng có hai đầu mút là hai điểm trong $13$ điểm đã cho? (Chỉ nhập số)
Đáp án: $78$
Từ mỗi điểm nối với $12$ điểm còn lại tạo thành $12$ đoạn thẳng. Do mỗi đoạn bị đếm lặp $2$ lần nên tổng số đoạn thẳng là $\dfrac{13 \times 12}{2} = 78$.
$15$ distinct points are marked on a straight line. How many line segments have both endpoints among these $15$ points? (Enter number only)
Trên một đường thẳng lấy $15$ điểm phân biệt. Hỏi có tất cả bao nhiêu đoạn thẳng có hai đầu mút là hai điểm trong $15$ điểm đã cho? (Chỉ nhập số)
Đáp án: $105$
Từ mỗi điểm nối với $14$ điểm còn lại tạo thành $14$ đoạn thẳng. Do mỗi đoạn bị đếm lặp $2$ lần nên tổng số đoạn thẳng là $\dfrac{15 \times 14}{2} = 105$.
Twelve cards numbered $1$ to $12$ lie face-up on a table. First, Leo flips over every card whose number is a multiple of $2$. Next, he flips over every card whose number is a multiple of $3$ (if a card was already face-down, flipping it turns it face-up again!). How many cards end up face-UP?
Đáp án: $6$
6 và 12) được lật $2$ lần nên quay trở lại mặt ngửa!2, 4, 6, 8, 10, 12.3, 6, 9, 12.2, 4, 8, 10 và 3, 9 ($6$ thẻ).1, 5, 6, 7, 11, 12).A bag holds $10$ red, $10$ blue, and $10$ yellow marbles. Blindfolded, what is the minimum number of marbles Mia must draw to be certain she has at least $3$ marbles of the SAME color?
Đáp án: $7$
$29$ chess players enter a single-elimination tournament (no draws: in every match, the loser is eliminated and the winner advances, with random byes when needed). How many matches in total must be played to crown a single champion?
Đáp án: $28$
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 $3$ socks of the same color?
Đáp án: $11$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $5 \times (3 - 1) + 1 = 11$.
A box contains socks of $3$ 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: $4$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $3 \times (2 - 1) + 1 = 4$.
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 $3$ socks of the same color?
Đáp án: $11$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $5 \times (3 - 1) + 1 = 11$.
A box contains socks of $3$ 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: $7$
Theo nguyên lý Dirichlet, số tất ít nhất phải lấy là $3 \times (3 - 1) + 1 = 7$.
A café offers $5$ sandwiches, $4$ drinks, and $4$ desserts. How many different meal combos of 1 sandwich, 1 drink, and 1 dessert are possible?
Đáp án: $80$
By the multiplication principle: $5 \times 4 \times 4 = 80$.
A café offers $3$ sandwiches, $3$ drinks, and $2$ desserts. How many different meal combos of 1 sandwich, 1 drink, and 1 dessert are possible?
Đáp án: $18$
By the multiplication principle: $3 \times 3 \times 2 = 18$.