Given binary inputs $A = 0, B = 1, C = 1, D = 1$, 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: $2$
Tính từng cổng: $G_1 = 0, G_2 = 1, G_3 = 1, G_4 = 0$. Tổng số cổng có đầu ra $1$ là $2$.
Question 2
Dễ · +10 điểm
To detect transmission errors, a computer appends $1$ parity bit to the $6$-bit code 111001 so that the total number of $1$s in the $7$-bit code is even. What is the total number of $1$s in the final $7$-bit code?
Xem đáp án và lời giải
Đáp án: $4$
Chuỗi ban đầu có $4$ bit $1$. Sau khi thêm bit kiểm tra $0$, tổng số bit $1$ chẵn là $4$.
Question 3
Trung bình · +20 điểm
A row of $5$ lamps encodes a number in binary, where ● means $1$ (ON) and ○ means $0$ (OFF), from left (highest place value) to right ($1$). What number does ● ○ ○ ○ ● represent?
Xem đáp án và lời giải
Đáp án: $17$
Dãy đèn tương ứng số nhị phân $10001_2 = 17$.
Question 4
Trung bình · +20 điểm
There is a pile of $31$ stones. Two players take turns removing $1$ to $3$ stones; the player who takes the last stone wins. How many stones should the first player take on the very first turn to guarantee a win?
Xem đáp án và lời giải
Đáp án: $3$
Để đưa về bội của $(3 + 1) = 4$, người đi trước bốc phần dư của $31$ chia cho $4$: $31 \equiv 3 \pmod{4}$, nên cần bốc $3$ viên.
Question 5
Khó · +30 điểm
In a survey of students who play at least one sport: $15$ play Soccer, $16$ play Basketball, $14$ play Tennis; $5$ play Soccer & Basketball, $6$ play Basketball & Tennis, $5$ play Soccer & Tennis, and $2$ play all three. How many students are in the survey in total?
Xem đáp án và lời giải
Đáp án: $31$
Theo công thức bù trừ $3$ tập hợp: $15 + 16 + 14 - (5 + 6 + 5) + 2 = 31$.
Question 6
Dễ · +10 điểm
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 $4, 2$ and column $4$ already has $3$ outside row $1$. What digit MUST go in row $1$, column $4$?
Xem đáp án và lời giải
Đáp án: $1$
Hàng $1$ đã có $4, 2$ và cột $4$ đã có $3$, nên ô giao nhau chỉ có thể là chữ số còn lại là $1$.
Question 7
Khó · +30 điểm
In a game of Nim, there are three piles with $6$, $5$, and $9$ stones. On your turn, you may remove any positive number of stones from a single pile (the player taking the last stone wins). How many stones must you remove from the pile of $9$ to reach a winning Nim-sum ($0$) position?
Xem đáp án và lời giải
Đáp án: $6$
Tính tổng XOR hai đống đầu: $6 \oplus 5 = 3$. Cần giảm đống $9$ xuống còn $3$, tức là bốc đi $9 - 3 = 6$ viên.
Question 8
Khó · +30 điểm
A wheel map has $1$ central region surrounded by a ring of $7$ outer regions (each outer region touches the center and its $2$ neighboring outer regions). What is the minimum number of colors needed so that no two touching regions share the same color?
Xem đáp án và lời giải
Đáp án: $4$
Vùng tâm dùng $1$ màu riêng. Vòng ngoài gồm $7$ vùng cần xen kẽ $2$ màu nếu $7$ chẵn (tổng $3$ màu) và $3$ màu nếu $7$ lẻ (tổng $4$ màu). Vậy cần ít nhất $4$ màu.
Question 9
Trung bình · +20 điểm
In a class of $114$ students, $61$ like Math, $74$ like English, and $2$ like neither. How many students like both Math and English?
Xem đáp án và lời giải
Đáp án: $23$
Số học sinh thích ít nhất một môn là $114 - 2 = 112$. Theo công thức bù trừ: $61 + 74 - (112) = 23$.
Question 10
Khó · +30 điểm
The integers $1, 2, 3, \dots, 13$ are written on a board. In each step, you erase any two numbers $a$ and $b$ and write $a + b - 1$. After $12$ steps, only $1$ number remains. What is that final number?
Xem đáp án và lời giải
Đáp án: $79$
Mỗi bước tổng các số giảm đi $1$. Sau $12$ bước, số cuối cùng bằng $(1 + 2 + \cdots + 13) - (13 - 1) = 91 - 12 = 79$.
Câu đố tư duy
Rèn tư duy hình học và suy luận logic qua 5 loại câu đố tương tác trực quan.
Tuyển tập các câu đố kinh điển chọn lọc (không sinh lặp công nghiệp) kèm lời giải chi tiết bằng tiếng Việt. Mỗi đề thi ngẫu nhiên cũng được gắn 1 câu đố điểm nhấn trích từ bộ sưu tập này.