Smart way to freedom.

Computer Science Level pending

Once in a country there were these two thieves who were notorious for their intelligence. After much effort the soldiers captured them and brought them before the king. Now in this country the punishment for theft was capital, but the king being impressed by their smartness wanted to give them a chance. The thieves were bound to separate pillars facing each other and two consecutive numbers between 1 and 100 were stuck to their foreheads. One of them will be asked whether he knows the number on his forehead. If he knows, he must say what number it is, otherwise he can pass and the turn goes to the other thief (this can go on indefinitely). If the answer given is wrong, both of them will be executed by hanging. If the answer is right both will be left free.

After a few turns one of them said the correct answer.

How was it possible.


Some trickery was involved. The answer can be deduced logically.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Venu Gopal
Jun 21, 2014

The logic goes like this: If thief A sees a 1 on his partner's forehead he can deduce a 2 on his own forehead. Game over. But if he sees a 2 he will have to pass. Now if B sees a 1 he can deduce a 2. But if he sees a 3 he will have to pass. Now A can deduce a 3. Applying this logic any number pairs can be deduced after sufficient number of turns.

but nobody told us that one thief could see the number on the other thief's head.

D S - 6 years, 10 months ago

Log in to reply

"The thieves were bound to separate pillars facing each other" - they can see each others number.

Richard Smith - 6 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...