真相与谎言 [英] Truthtellers and Liars

查看:92
本文介绍了真相与谎言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我肯定你们都听过这个了

I''m sure you''ve all heard this one

你来到一个T路口,一条路通往无效记忆访问的坑中,而另一条通向巧克力山(或在mmccarthy的情况下是威士忌湖)。没有招牌,但十字路口有两个人,一个穿红色T恤,另一个穿蓝色T恤。


有一个木头标志说,1个人总是说实话而另一个人总是说谎。但我们并没有告诉你谁是谁。 Meuuuuuuuuu Ha Ha Haaa。


由于你被BOFH追逐,你不能回到原来的状态。


你可以问一个可以回答是或否的问题(你不知道你是怎么知道的,当你在场景中出现时,这些知识就出现在你的脑海中。几乎就像它在那里一样)。


你应该问什么问题,找出要采取的路径?
You come to a T junction, 1 road leads to certain doom in the pit of invalid memory accesses while the other leads to a chocolate mountain (or in mmccarthy''s case a Whiskey Lake). There are no sign posts but there are 2 people at the cross roads, one is wearing a red T-shirt and the other is wearing a blue T-shirt.

There is a wooden sign saying, "1 person always tells the truth and the other always lies. But we are not telling you who is who. Meuuuuuuuuu Ha Ha Haaa".

You can not go back the way you came because you are being chased by a BOFH.

You may ask 1 question that can be answered yes or no (you don''t know how you know this, the knowledge just appeared in your mind as you took in the scene. Almost as if it was POKEd there).

What question should you ask to find out which path to take?

就像众所周知的那样,事实上它甚至出现在奇怪的电影中( Labyrinth ),如果这对你来说太容易了,试试这个

Like a said well known, in fact it has even appeared in the odd film (Labyrinth), so if that was too easy for you try this one

你来另一个T路口,1条道路在中层管理者的地牢中导致更加确定的厄运,而另一条路则导致咖啡绿洲和忘记工作。没有招牌,但十字路口有三个人,一个穿红色T恤,一个穿蓝色T恤,最后一个穿着Hawkwind T恤。


有一个木牌说,1个人总是说实话,1个人总是说谎,1个人随机回答是或否。但我们并没有告诉你谁是谁。 MEEEEUuuuuuuuu Ha Ha Haaaaaaaaaaaaaa。


你不能回到你的方式,因为一种特别恶毒的病毒正在消除这条道路。


你可能会问两个可以回答是或否的问题(你知道这是因为漂浮在场景上方是一个明亮的粉红色闪烁的霓虹灯,这样说)。


应该提出什么问题你问谁应该找出哪条路?
You come to a another T junction, 1 road leads to even more certain doom in the dungeon of middle managers while the other leads to the oasis of coffee and forgetting about work. There are no sign posts but there are 3 people at the cross roads, one is wearing a red T-shirt, one is wearing a blue T-shirt, and the last one is wearing a Hawkwind T-shirt.

There is a wooden sign saying, "1 person always tells the truth, 1 person always lies and 1 person randomly answers yes or no. But we are not telling you who is who. MEEEEUuuuuuuuu Ha Ha Haaaaaaaaaaaaaa".

You can not go back the way you came because a particularly vicious virus is in the process of erasing that road.

You may ask 2 questions that can be answered yes or no (you know this because floating above the scene is a bright pink flashing neon sign saying so).

What questions should you ask of who to find out which path to take?

推荐答案

HI banfa,


我不喜欢不知道我的理解是否正确。


这很容易


i ll问真相出纳员



这条(左)路是通过cholcolate山吗?


真相出纳员回答我是或否

所以我会继续


如果允许两个问题

i''我会问lier同样的问题。如果我得到不同的答案并完全确认我会继续!!


任何c omments
HI banfa,

I don''t know whether my understanding is correct.

it is very easy

i ll ask truth teller


Is this(left) road leads to cholcolate mountain?


Truth teller answer me yes or no
so i ll go ahead

if two question allowed
i ''ll ask lier the same question .if i get different answer with full confirmation i''ll go ahead!!

any comments



HI banfa,


我不知道我的理解是否正确。


很容易


i ll问真相出纳员



是这条(左)路通往cholcolate山吗?


真相出纳员回答我是或否

所以我会继续前进


如果允许两个问题

i''我会问lier同样的问题。如果我得到完全确认的不同答案我会继续!!


任何评论
HI banfa,

I don''t know whether my understanding is correct.

it is very easy

i ll ask truth teller


Is this(left) road leads to cholcolate mountain?


Truth teller answer me yes or no
so i ll go ahead

if two question allowed
i ''ll ask lier the same question .if i get different answer with full confirmation i''ll go ahead!!

any comments



是的我有评论,我完全写错了。你的解决方案按照我最初编写问题的方式工作,但我即将重新编写它们应该是什么,然后再试一次。

Yes I have a comment, I have completely written the questions wrong. Your solution works the way I originally wrote the questions but I am about to re-write them to actually be what they should be, then please try again.



是的我有评论,我完全写错了。你的解决方案按照我最初编写问题的方式工作,但我即将重新编写它们实际应该是什么,然后请再试一次。
Yes I have a comment, I have completely written the questions wrong. Your solution works the way I originally wrote the questions but I am about to re-write them to actually be what they should be, then please try again.



我知道你第一个问题的答案。


第二个问题的答案并不清楚。如果我问红色的那个人,如果我问Hawkwind中的那个人,那个蓝色的人会怎么说?左路是否导致某些厄运?'''''那个人不是随机的,那个人会怎么反应呢?它会问蓝色的人问Hawkwind的那个吗?或者它不会回答,因为它不能在不违反是/否的情况下这样做?


Adrian

I know the answer to your first question.

The answer to the second one is not as clear. If I were ask the one in the red "what would the one in the blue say if I asked the one in the Hawkwind, ``does the left path lead to certain doom?''''" and that person is not the random one, how will that one react? Will it ask the one in blue to ask the one in Hawkwind? Or will it not answer because it cannot do so without violating it''s yes/no ability?


Adrian


这篇关于真相与谎言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆