the hardest interview puzzle question ever

Barzellette a sfondo matematico e non, aneddoti e amenità varie.
Rispondi
fph
Site Admin
Messaggi: 3957
Iscritto il: 01 gen 1970, 01:00
Località: in giro
Contatta:

the hardest interview puzzle question ever

Messaggio da fph »

A hundred prisoners are each locked in a room with three pirates, one of whom will walk the plank in the morning. Each prisoner has 10 bottles of wine, one of which has been poisoned; and each pirate has 12 coins, one of which is counterfeit and weighs either more or less than a genuine coin. In the room is a single switch, which the prisoner may either leave as it is, or flip. Before being led into the rooms, the prisoners are all made to wear either a red hat or a blue hat; they can see all the other prisoners' hats, but not their own. Meanwhile, a six-digit prime number of monkeys multiply until their digits reverse, then all have to get across a river using a canoe that can hold at most two monkeys at a time. But half the monkeys always lie and the other half always tell the truth. Given that the Nth prisoner knows that one of the monkeys doesn't know that a pirate doesn't know the product of two numbers between 1 and 100 without knowing that the N+1th prisoner has flipped the switch in his room or not after having determined which bottle of wine was poisoned and what color his hat is, what is the solution to this puzzle?
--federico
[tex]\frac1{\sqrt2}\bigl(\left|\text{loves me}\right\rangle+\left|\text{loves me not}\right\rangle\bigr)[/tex]
Avatar utente
Sesshoumaru
Messaggi: 87
Iscritto il: 13 dic 2007, 19:13
Località: Roma

Messaggio da Sesshoumaru »

42 ovviamente :lol:
[img]http://img65.imageshack.us/img65/2554/userbar459811cf0.gif[/img]

[i]"You have a problem with your brain: the left part has nothing right in it, and the right part has nothing left in it."[/i]
Avatar utente
SkZ
Messaggi: 3333
Iscritto il: 03 ago 2006, 21:02
Località: Concepcion, Chile
Contatta:

Messaggio da SkZ »

concordo
impara il [tex]~\LaTeX[/tex] e mettilo da par[tex]\TeX~[/tex]

Software is like sex: it's better when it's free (Linus T.)
membro: Club Nostalgici
Non essere egoista, dona anche tu! http://fpv.hacknight.org/a8.php
Rispondi