In a box, there are three red and two green hats. Four logicians—Alice, Bob, Carol, David—pick one hat each from the box without looking and put them on.
Each of them can see the hats everyone else is wearing but not their own. They have the following conversation:
What is the color of David's hat?
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.
Alice knows the color of her hat.
1.If she wears red,then there must be two other people wearing green.
2.If she wears green,the three other people must be wearing red,but Carol is wearing green,so it must be the first case.
There is two people wearing green,one is Carol,so the other one is David.