Unoriginal lastchance POG Championship entry (good one though)
A king decides to give 100 of his prisoners a test. If they pass, they can go free. Otherwise, the king will execute all of them. The test goes as follows: the prisoners stand in a line, all facing forward. The king puts either a black or a white hat on each prisoner. The prisoners can only see the colors of the hats in front of them. Then, in any order they want, each one guesses the color of the hat on their head. Other than that, the prisoners can not speak. To pass, no more than 1 of them may guess incorrectly. If they have time to make their strategy beforehand, how can they be assured that they will survive?
|