the hardest puzzle ever

Mar 18, 2009 11:49

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 ( Read more... )

Leave a comment

Comments 4

binaryanimal March 18 2009, 15:57:44 UTC
Помню на четверть-финале ACM Programming Contest таких много было подобных задачек =)

Reply

yazmeya March 18 2009, 17:12:47 UTC
это кагбе пародия на загадки, которые любят давать на собеседованиях в конторах типа Microsoft, Google, Apple, и т.д.
на самом деле, умение решать головоломки не является признаком хорошего кодера.

Reply


krace March 18 2009, 19:22:05 UTC
42!, i.e. 1.40500612 × 1051  :)

Reply

yazmeya March 18 2009, 20:41:26 UTC
you can have a cookie

Reply


Leave a comment

Up