Given binary inputs $A = 0, B = 1, C = 1, 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: $3$
Tính từng cổng: $G_1 = 0, G_2 = 1, G_3 = 1, G_4 = 1$. Tổng số cổng có đầu ra $1$ là $3$.
Question 2
Khó · +30 điểm
In a game of Nim, there are three piles with $9$, $5$, and $18$ 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 $18$ 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: $9 \oplus 5 = 12$. Cần giảm đống $18$ xuống còn $12$, tức là bốc đi $18 - 12 = 6$ viên.
Question 3
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, 3$ and column $4$ already has $1$ outside row $1$. What digit MUST go in row $1$, column $4$?
Xem đáp án và lời giải
Đáp án: $2$
Hàng $1$ đã có $4, 3$ và cột $4$ đã có $1$, nên ô giao nhau chỉ có thể là chữ số còn lại là $2$.
Question 4
Dễ · +10 điểm
Emma is standing in a line. Emma is 5th from the front and 14th from the back. How many people are in the line?
Xem đáp án và lời giải
Đáp án: $18$
Số người trong hàng là $5 + 14 - 1 = 18$ (trừ $1$ vì Emma được đếm $2$ lần).
Question 5
Trung bình · +20 điểm
In a race among Mia, Anna, Leo, and Noah (no ties):
Anna finished right behind Mia.
Noah finished last.
Leo finished ahead of Mia.
Who won $1$st place?
Xem đáp án và lời giải
Đáp án: Leo
Thứ tự từ $1$ đến $4$ là: Leo, Mia, Anna, Noah. Vậy Leo về nhất.
Question 6
Dễ · +10 điểm
To detect transmission errors, a computer appends $1$ parity bit to the $6$-bit code 100100 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: $2$
Chuỗi ban đầu có $2$ bit $1$. Sau khi thêm bit kiểm tra $0$, tổng số bit $1$ chẵn là $2$.
Question 7
Trung bình · +20 điểm
In a class of $30$ students, $14$ like Math, $17$ like English, and $3$ like neither. How many students like both Math and English?
Xem đáp án và lời giải
Đáp án: $4$
Số học sinh thích ít nhất một môn là $30 - 3 = 27$. Theo công thức bù trừ: $14 + 17 - (27) = 4$.
Question 8
Khó · +30 điểm
In a survey of students who play at least one sport: $14$ play Soccer, $17$ play Basketball, $12$ play Tennis; $7$ play Soccer & Basketball, $5$ play Basketball & Tennis, $5$ play Soccer & Tennis, and $3$ play all three. How many students are in the survey in total?
Xem đáp án và lời giải
Đáp án: $29$
Theo công thức bù trừ $3$ tập hợp: $14 + 17 + 12 - (7 + 5 + 5) + 3 = 29$.
Question 9
Trung bình · +20 điểm
Letters $A$–$Z$ are numbered $1$–$26$ ($A=1, \dots, Z=26$). A Caesar cipher shifts every letter forward by $8$ positions, wrapping around after $26$ back to $1$. What position number does letter #23 shift to?
Xem đáp án và lời giải
Đáp án: $5$
Ta có $23 + 8 = 31$. Vì vượt quá $26$, quay vòng trừ đi $26$ được $5$.
Question 10
Trung bình · +20 điểm
On an island where Knights always tell the truth and Knaves always lie, you meet Chloe and Ben:
Chloe says: “At least one of us is a Knave.”
Ben says nothing.
How many of the two are Knights?
Xem đáp án và lời giải
Đáp án: $1$
Nếu Chloe là Kẻ gian thì câu nói “ít nhất một người là Kẻ gian” lại đúng (vô lý). Vậy Chloe là Hiệp sĩ (nói thật), suy ra người còn lại là Ben phải là Kẻ gian. Vậy có đúng $1$ Hiệp sĩ.
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.