12 球找异球
how can you determine which ball is the defective one with 3 measurements?
题目详情
有 12 个看起来完全相同的球,其中 1 个比其他球重或轻(你不知道是重还是轻)。
用一架只会告诉你哪边更重(或平衡)的天平,如何在 3 次称重内找出异球并判断它是重还是轻?
英文原题
You have 12 identical balls. One of the balls is heavier OR lighter
than the rest (you don't know which). Using just a balance that can only show you which side of the tray is heavier, how can you determine which ball is the defective one with 3 measurements?
解析
给球编号 1..12。
第 1 次称重:称 (左)对 (右)。
分三种情况:
A. 第 1 次平衡:异球在 中。
- 第 2 次:称 (左)对 (右,已知正常)。
- 若平衡:异球是 12。第 3 次称 对 ,即可判断重/轻。
- 若左重:异球在 中且为“重”。第 3 次称 对 :
- 哪个更重就是异球;若平衡则 11 重。
- 若右重:异球在 中且为“轻”。第 3 次称 对 :
- 哪个更轻就是异球;若平衡则 11 轻。
B. 第 1 次左重:异球要么在 中且为重,要么在 中且为轻。
- 第 2 次:称 (左)对 (右,9 为正常球)。
- 若左重:异球为 重 或 重 或 轻。
- 第 3 次称 对 :
- 哪个更重即该球重;若平衡则 轻。
- 第 3 次称 对 :
- 若右重:异球为 重 或 轻。
- 第 3 次称 对 :若更重则 重,否则 轻。
- 若平衡:异球为 重 或 轻 或 轻。
- 第 3 次称 对 :哪边更轻则该球轻;若平衡则 重。
- 若左重:异球为 重 或 重 或 轻。
C. 第 1 次右重:与 B 情况对称(把左右互换即可)。
该流程保证 3 次称重内确定异球编号并判断其重/轻。
英文解析
Number the balls 1 through 12.
First Weighing: Weigh (Left) against (Right).
There are three cases:
A. First Weighing is Balanced: The odd ball is among .
- Second Weighing: Weigh (Left) against (Right, known good).
- If Balanced: The odd ball is 12. Third Weighing: Weigh 12 against 1 to determine if it is heavy or light.
- If Left is Heavy: The odd ball is among and is Heavy. Third Weighing: Weigh 9 against 10:
- The heavier one is the odd ball; if balanced, 11 is Heavy.
- If Right is Heavy: The odd ball is among and is Light. Third Weighing: Weigh 9 against 10:
- The lighter one is the odd ball; if balanced, 11 is Light.
B. First Weighing is Left Heavy: The odd ball is either among and is Heavy, or among and is Light.
- Second Weighing: Weigh (Left) against (Right, where 9 is a known good ball).
- If Left is Heavy: The odd ball is either 1 Heavy, 2 Heavy, or 6 Light.
- Third Weighing: Weigh 1 against 2:
- The heavier one is the odd ball; if balanced, 6 is Light.
- Third Weighing: Weigh 1 against 2:
- If Right is Heavy: The odd ball is either 3 Heavy or 5 Light.
- Third Weighing: Weigh 3 against 9: If 3 is heavier, it is 3 Heavy; otherwise, 5 is Light.
- If Balanced: The odd ball is either 4 Heavy or 7 Light or 8 Light.
- Third Weighing: Weigh 7 against 8: The lighter side indicates the odd ball is Light; if balanced, 4 is Heavy.
- If Left is Heavy: The odd ball is either 1 Heavy, 2 Heavy, or 6 Light.
C. First Weighing is Right Heavy: Symmetric to Case B (swap Left and Right).
This procedure guarantees identifying the odd ball's number and determining if it is heavy or light within three weighings.