tag:blogger.com,1999:blog-6314876008291942531.post8281253448043460306..comments2024-01-14T00:36:43.430-08:00Comments on Antonio Gulli's coding playground: HatsUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6314876008291942531.post-23946589199083198602010-07-31T15:45:49.225-07:002010-07-31T15:45:49.225-07:00They agree on the following strategy:
After all p...They agree on the following strategy:<br /><br />After all people have entered the room, each <br />person will place the other N-1 people by <br />following these rules:<br /><br />1. Each person will place the other N-1 people<br /> by reversed entry order (i.e. the last <br /> person who enter the room will be the first<br /> to place the other N-1 people).<br />2. The person wearing a hat with a number <br /> smaller than the number of another person's <br /> hat, will be positioned on the left.<br />3. The person wearing a hat with a number <br /> greater than the number of another person's <br /> hat, will be positioned on the right.<br />4. The person wearing a hat with a number <br /> equal to the number of another person's <br /> hat, will be positioned in front of him.Leohttps://www.blogger.com/profile/17742002772935000604noreply@blogger.com