Bộ bài tập tự sinh (10 câu · Suy luận logic, Thứ tự & Tập hợp)
Mã đề: 78814369 · Khớp 29 mẫu bài trong thư viện.
Question 1
Trung bình · +2 điểm
$1$ melon weighs as much as $3$ apples, and $1$ apple weighs as much as $2$ strawberries. If $1$ strawberry weighs $3\text{ g}$, how many grams does $1$ melon weigh?
Xem đáp án và lời giải
Đáp án: $18$
$1$ quả dưa nặng bằng $3 \times 2 = 6$ quả dâu, tức là $6 \times 3 = 18\text{ g}$.
Question 2
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$.
Question 3
Trung bình · +2 điểm
Two piles have $7$ and $9$ 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: $2$
Cần làm hai đống bằng nhau ($7$ và $7$) để luôn đối xứng lại nước đi của đối thủ, nên lấy đi $9 - 7 = 2$ viên.
In a game of Nim, there are three piles with $7$, $6$, and $6$ 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 $6$ to reach a winning Nim-sum ($0$) position?
Xem đáp án và lời giải
Đáp án: $5$
Tính tổng XOR hai đống đầu: $7 \oplus 6 = 1$. Cần giảm đống $6$ xuống còn $1$, tức là bốc đi $6 - 1 = 5$ viên.
The integers $1, 2, 3, \dots, 15$ are written on a board. In each step, you erase any two numbers $a$ and $b$ and write $a + b - 1$. After $14$ steps, only $1$ number remains. What is that final number?
Xem đáp án và lời giải
Đáp án: $106$
Mỗi bước tổng các số giảm đi $1$. Sau $14$ bước, số cuối cùng bằng $(1 + 2 + \cdots + 15) - (15 - 1) = 120 - 14 = 106$.
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.
Four dominoes are placed in a chain so touching halves have equal dots: $[4|\,1]$–$[1|\,x]$–$[x|\,5]$–$[5|\,5]$. If the total number of dots on all four dominoes is $31$, what is $x$?
Xem đáp án và lời giải
Đáp án: $5$
Tổng các chấm đã biết là $4 + 2(1) + 2(5) + 5 = 21$, nên $2x = 10 \Rightarrow x = 5$.
To detect transmission errors, a computer appends $1$ parity bit to the $6$-bit code 110100 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ó $3$ bit $1$. Sau khi thêm bit kiểm tra $1$, tổng số bit $1$ chẵn là $4$.
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 $2, 4$ 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ó $2, 4$ và cột $4$ đã có $3$, nên ô giao nhau chỉ có thể là chữ số còn lại là $1$.
Question 10
Trung bình · +2 điểm
Letters $A$–$Z$ are numbered $1$–$26$ ($A=1, \dots, Z=26$). A Caesar cipher shifts every letter forward by $10$ positions, wrapping around after $26$ back to $1$. What position number does letter #22 shift to?
Xem đáp án và lời giải
Đáp án: $6$
Ta có $22 + 10 = 32$. Vì vượt quá $26$, quay vòng trừ đi $26$ được $6$.