设万维读者为首页 广告服务 联系我们 关于万维
简体 繁体 手机版
分类广告
版主:
万维读者网 > 灵机一动 > 帖子
逻辑难题,解
送交者: nanweishui 2005年08月22日15:38:20 于 [灵机一动] 发送悄悄话
There are three people in front of you. You know that: One of them is God. He knows everything, and always tells the truth. One of them is the Devil. He also knows everything, but lies. The third person knows nothing, but answers questions as if he knows the answers. His answers, however, are completely useless and could be right or wrong. You can ask a total of three questions that can clearly be answered with yes or no, each to one of the persons. You may choose whom to ask first. Determine who is who... 解:

Call these 3 persons A, B and C. Let’s ask A the first question:

Question 1: Let’s say human is worse than God and Devil is worse than human. Is person B worse than person C?

Without the loss of generality, we can assume the answer is “Yes” (otherwise we only need to switch person B and C). This gave us three possibilities: 1) A is human; 2) A is God and he answered truthfully (so B is Devil and C is human). 3) A is Devil and he lied (so B is God and C is human).

That is, we have following 4 scenarios:
(1) A = Human, B = Devil, C = God
(2) A = Human, B = God, C = Devil
(3) A = God, B = Devil, C = Human
(4) A = Devil, B = God, C = Human.

We can see that person B is definitely NOT human (and this is the purpose of Question 1). The remaining part is much easier:

Ask the following questions to B:

Question 2: Do you know who is God?
If Yes, person B is God and we are in scenario (2) or (4).
If No, person B is Devil and we are in scenario (1) or (3).

Question 3: Is person A human:
If Yes, we are in scenario (2) or (3);
If No, we are in scenario (1) or (4).

Combining the answers to Question 2 and 3, we can figure out who is who.

0%(0)
0%(0)
标 题 (必选项):
内 容 (选填项):
实用资讯
回国机票$360起 | 商务舱省$200 | 全球最佳航空公司出炉:海航获五星
海外华人福利!在线看陈建斌《三叉戟》热血归回 豪情筑梦 高清免费看 无地区限制
一周点击热帖 更多>>
一周回复热帖