samoth said:Take the two possible cases: Case A would be you (or me, denoted person C here) with a yellow hat. Case B would be person C with a green hat. In either case, the OP states that all three raised their hand.
Okay, I see where you're coming from. Try writing it down, it helps. You have to shift your POV. E.g., if A, B = green and C = yellow, then A from A's POV sees green and yellow. Shifting to B, from B's POV, he doesn't know he's green, but he sees yellow on C and then A can deduce that given both see that C=yellow and B raised his hand, A knows that he's green.
![]()
this would work if you see a green hat and a yellow hat, but you dont- you see two green ones, which means you can't POSSIBLY know if yours is green or yellow. both of your fellow students could be looking at eachother when they raise their hands to seeing a green hat, and NOT to yours which could just as easily be yellow.
this riddle would ONLY work if someone besides you is wearing a yellow hat.