Bộ bài tập tự sinh (10 câu · Suy luận logic, Thứ tự & Tập hợp)
Mã đề: 16823621 · Khớp 29 mẫu bài trong thư viện.
$18$ islanders (each either a Knight who always tells the truth or a Knave who always lies) sit around a circular table. Every islander says: “The person sitting immediately to my left (clockwise) is a Knave.” How many Knights are at the table?
Xem đáp án và lời giải
Đáp án: $9$
Hiệp sĩ ngồi cạnh Kẻ gian (nói thật), còn Kẻ gian không thể ngồi cạnh Kẻ gian khác (nếu không lời nói sẽ thành thật). Vậy Hiệp sĩ và Kẻ gian ngồi xen kẽ nhau quanh bàn, nên có đúng $18 : 2 = 9$ Hiệp sĩ.
Question 2
Trung bình · +2 điểm
In a race among Noah, Mia, Chloe, and Emma (no ties):
- Mia finished right behind Noah.
- Emma finished last.
- Chloe finished ahead of Noah.
Who won $1$st place?
Xem đáp án và lời giải
Đáp án: Chloe
Thứ tự từ $1$ đến $4$ là: Chloe, Noah, Mia, Emma. Vậy Chloe về nhất.
Question 3
Trung bình · +2 điểm
A box contains $10$ balls of each of $3$ different colors. What is the minimum number of balls you must pull out without looking to guarantee having at least $4$ balls of the same color?
Xem đáp án và lời giải
Đáp án: $10$
Trường hợp xấu nhất rút mỗi màu $3$ viên: $3 \times 3 = 9$ viên. Viên thứ $10$ chắc chắn tạo đủ $4$ viên cùng màu.
Four dominoes are placed in a chain so touching halves have equal dots: $[4|\,3]$–$[3|\,x]$–$[x|\,5]$–$[5|\,1]$. If the total number of dots on all four dominoes is $25$, what is $x$?
Xem đáp án và lời giải
Đáp án: $2$
Tổng các chấm đã biết là $4 + 2(3) + 2(5) + 1 = 21$, nên $2x = 4 \Rightarrow x = 2$.
In a $4 \times 4$ mini-Sudoku (using digits $1, 2, 3, 4$ once per row, column, and $2 \times 2$ box), row $1$ already has $1, 4$ and column $4$ already has $2$ outside row $1$. What digit MUST go in row $1$, column $4$?
Xem đáp án và lời giải
Đáp án: $3$
Hàng $1$ đã có $1, 4$ và cột $4$ đã có $2$, nên ô giao nhau chỉ có thể là chữ số còn lại là $3$.
Question 6
Trung bình · +2 điểm
Two piles have $9$ and $12$ stones. In each turn, a player removes any positive number of stones from one pile, and the player taking the last stone wins. How many stones should the first player remove from the larger pile to guarantee a win?
Xem đáp án và lời giải
Đáp án: $3$
Cần làm hai đống bằng nhau ($9$ và $9$) để luôn đối xứng lại nước đi của đối thủ, nên lấy đi $12 - 9 = 3$ viên.
Question 7
Trung bình · +2 điểm
Given binary inputs $A = 1, B = 0, C = 0, D = 0$, evaluate the four logic gates:
- $G_1 = A \text{ AND } B$
- $G_2 = C \text{ OR } D$
- $G_3 = A \text{ XOR } C$
- $G_4 = B \text{ XOR } D$
How many of these four gates output $1$?
Xem đáp án và lời giải
Đáp án: $1$
Tính từng cổng: $G_1 = 0, G_2 = 0, G_3 = 1, G_4 = 0$. Tổng số cổng có đầu ra $1$ là $1$.
A pile has $26$ coins. Two players take turns removing $1$ to $3$ coins, and the player forced to take the last coin LOSES. How many coins should the first player take on move $1$ to leave a winning remainder ($\equiv 1 \pmod{4}$)?
Xem đáp án và lời giải
Đáp án: $1$
Muốn đối thủ bốc viên cuối, cần đưa tổng về dạng $(4)m + 1$. Ta có $26 - 1 = 25 \equiv 1 \pmod{4}$, nên bốc $1$ đồng xu.
The integers $1, 2, 3, \dots, 10$ are written on a board. In each step, you erase any two numbers $a$ and $b$ and write $a + b - 1$. After $9$ steps, only $1$ number remains. What is that final number?
Xem đáp án và lời giải
Đáp án: $46$
Mỗi bước tổng các số giảm đi $1$. Sau $9$ bước, số cuối cùng bằng $(1 + 2 + \cdots + 10) - (10 - 1) = 55 - 9 = 46$.
Question 10
Trung bình · +2 điểm
One-way roads connect towns with travel times: $A\to B$ ($5$ min), $B\to C$ ($7$ min), $A\to C$ ($15$ min), $B\to D$ ($7$ min), and $C\to D$ ($2$ min). What is the shortest time (in minutes) to go from $A$ to $D$?
Xem đáp án và lời giải
Đáp án: $12$
So sánh $3$ lộ trình từ $A$ đến $D$:
- $A\to B\to C\to D$: $14$
- $A\to B\to D$: $12$
- $A\to C\to D$: $17$
Đường ngắn nhất mất $12$ phút.