回复:SAP智力题 3-way puzzle ★★★★★★★

来源: 火球魔法 2009-09-26 14:08:51 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (513 bytes)
Assume the three ways are 1, 2 and 3.

Define statement A as: if 3 is live, then A is false.

Define question QA as: is A true?

Define statement QB as: is 1 live?

Define statement QC as: is the god's answer to QB yes?

Then the question Q to ask the god is:

If you cannot answer QA, then please answer QA; otherwise please answer QC.

* If the answer is silence, then 3 is live;
* otherwise if the answer is yes, then 1 is live;
* otherwise 2 is live.

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”