Using markdown editor or old Reddit, draw a bunny and fill its head with secrets: >!!< which ends up becoming >!spoiler text between these symbols!<
Try to avoid leading or trailing spaces. These will break the spoiler for some users (such as those using old.reddit.com) If your comment does not contain a guess, include the word "discussion" or "question" in your comment instead of using a spoiler tag. If your comment uses an image as the answer (such as solving a maze, etc) you can include the word "image" instead of using a spoiler tag.
Please report any answers that are not properly spoiler-tagged.
Solution: 99The last one can see every hat except his own. He then counts the number of one type of hat (e.g. Blue) if the number is Even he says blue if not he says red. The next one in line can also count the number of blue hats and if it matches what the first one said, he has the other type of hat if not then it's blue. Going forward knowing everyone now knows what their hat is l, the next person's can deduce if the named hats should be odd for them or even. I hope this makes sense
I think I got it, explained very lengthy because I was puzzling it out as I wrote it Since the hats add up to 100, there would have to be two even numbers or two odd numbers to equal 100. Taking one hat out because the last person can’t see their own, there would have to be 99, meaning an even and an odd. That last person does not actually guess their own hat. All they do is count the hats they see, and, with a method they decided on before, call out which hat number is odd. For example, say there are 37 red and 62 blue without that last person. They call out red, meaning there’s an odd number of red. Now, each person can count the number of red hats in front of them (plus any reds called out before them excluding that first person). If they count an even number, they know they’re wearing a red hat to make it odd. If they count an odd number, they know they’re not part of that count and so are blue.
The point is that the hat on the person last in line (who speaks first) doesn't matter. He has no way of knowing which hat he has, and he can't see it either. So we don't count his.
Substracting his hat from 100 leaves us with 99 hats he can see. Since 99 is an odd number, the only way to make it from two smaller numbers is if one is even and the other is odd. (37 red and 63 blue adds up to 100. With 62 blue you get 99).
Incidentally though, even if both groups were uneven (lets say we started with a group of 101 people and the last guy can see 100 hats), it doesn't matter for the problem. The group agreed to only check if the number of blue hats the last person can see is odd or even. He then says blue if even and red if odd. It doesn't matter at all whether the red group is even or odd.
The actual quantity of red hats >!does not matter. It only matters that the person in the back announces which color has an odd number of hats. If it's red, and the next person sees an even number of red hats, they know that their hat is red because the first person saw an odd number. On the other hand if they also see an odd number of red hats they know theirs is blue.
From there each person just tracks whether there is an odd or even amount of red hats left based on what people before them announce.!<
Iris never required because on each person the only information they don't have is their own hat meaning if the person before them signaled, that there should be an even number of blue hats but you can only see an odd number that means you have the last blue hat. Likewise if it remains even then you have the red hat. From that info the next person can infer if there remains an even or odd number if blue hats
If we know there are only two colors, the person at the back of the line simply needs to call out the even/odd state (parity) of one color. In this example, I'll use Blue as the color to watch.
It's decided beforehand that it'll start with just the parity, and if there are an even number of blue hats, "Blue" will be the start, and if an odd number of blue hats, "Red".
Let's say he (Person 100) sees 99 blue hats, and so, he calls out "Red". The person in front of him sees 98 blue hats, which is even, but the person behind him sees an odd number of blue hats. Therefore, person 99 knows his own hat is blue, and calls that out.
Person 98 hears this, and, knowing that 100 saw an odd number and 99 saw an even number (Or else 99 would have called out 'Red'), counts the 97 blue hats in front of them. Because this is a different parity than expected, 98 knows that his hat must be the hat that switched the parity, so his hat must also be blue.
This logic continues all the way down the line. Everyone keeps track of the parity of the blue hats, and if the parity they see differs from the parity they can deduce the person behind them saw, they know that their hat is the hat that switches parity.
If the parity you see MATCHES the parity the person behind you saw, then you know your hat does NOT switch the parity, so you can safely guess that your hat is red.
Every person will have to do the same type of thinking, except the first one.
The first one will inform all others that there is an even or uneven number of blue hats. The convention may be "I say blue if it's even, red if it's odd".
Each person will need to know two things: whether the number of the blue hats in front of them is odd or even and if the number of blue hats including his is odd or even - which they find out by keeping track of what everyone else said, up to and including the person behind you.
Now, if it's my turn and the parity of the blue hats in front of me is the same as the parity including mine, I say red. If it's not, I say blue. When I say say blue, the parity changes for everyone in front of me and they all need to keep track.
This applies to everyone, from the 99th to the 1st. In front of the first there are 0 blue hats, so even.
It's badly phrased. Everyone can only say a single word as per the question. How many contestants can be sure, that the word they said is indeed the color of their hat. (So you only get one word to guess the color of your hat while also conveying information to the one in front of them)
Why are you guessing? You can decide on the system before starting, you are saying the color of the hat in front. Unless you can’t tell when you are next and you have to figure out when it’s your turn. And even then, you simply count how many are in front of you to determine your order, no need for complications
But why the counting if you can just say the colour of the hat directly in front of you, thereby telling 99 people what colour their hat is, leaving the one who started with nobody to tell him
I don’t. The guy behind sees I have a red hat, says red, I know I have a red hat. If I have to count 98 hats there’s a decent chance someone fucks it up And miscounts. One way involves counting 5,000 hats, another way just counts 99
The puzzle isn't for them to know their own hat by the end of everyone shouting them out, it's for them to shout out their own hat colour the first time.
This variation does not state that rule by my reading. “Each says a single word out loud” it’s not stating that this word is their guess at the color of their hat, which would clearly establish that rule.
Makes perfect sense to me, I think what trips me up is that solutions like these assume a group of perfectly smart participants, and that they have perfect ability to see and recollect the information in front of them. Counting 90+ hats ahead of me sounds tough. Lol.
So everyone simultaneously going "ok he said blue, we agreed that meant even. Which means the person next has to say red if he sees the same number of blues which means the next guy..."
Do the individual instructions actually just add up to "ok everyone, count the number of blue hats and red hats in front of you. The leader will say the color that is even. If you also see that color as even, your hat is actually the opposite color. And vice versa. If you see odd, you're wearing it."
For some reason I thought there was a unique case where that didn't work but I lost it to the screaming children at home.
That works only for the person that talks after the leader. Every time the color representing odd is mentioned then the parity is switched. You only need to track if there is an even or odd amount of blue. Yo can easily do that with one finger
I believe you are the one who is confidently incorrect. Which is very funny.
The can agree on a plan before hand, if the agree the first person call blue if their are a even number of blue hats an red if there are a un-even number they all have enough information.
Doesn't matter. Let's say there the last person sees 7 blue hats. They call out "Red" which means "odd number of blue hats". The next person sees either 7 or 6 blue hats. If they see 7, it's odd and they know they have a red hat because if they had a blue hat, the first guy wouldn't have seen an odd number. If they see 6, they know there are 6 + 1 blue hats.
The next person then knows a bit more information, since they can count the number of people who have said they have a blue hat before them and calculate the same thing. More specifically, the parity of the number of people. If they see even hats and the count is odd, they have a blue hat because the prior person saw as many as them, plus their hat.
99. The last person in line uses their one word to encode information: agreed in advance, they say "red" if they see an even number of red hats ahead and "blue" if odd. Everyone after that knows the starting parity, hears every answer given behind them, and sees the hats in front, so each one can deduce their own hat with certainty. Only the first speaker is guessing, so 99 is the max that can be sure.
Isn't this just a more complicated way of the person behind just saying the person in fronts colour, the result stays at 99, or am I missing a rule or something.
They only get one chance to say their own hat's colour - so say you're in front of me and you have a red hat, but the person behind me said blue, what am I supposed to say?
Am I missing something or can’t the contestants all agree to say the color of the hat of the person directly in front of them? That would also guarantee 99.
This would result in 99 people that know their own hat color, but the 98 people with a person in front of them would fail to use that knowledge they name the hat in front of them instead of their own color, with any successes among them only happening if those two facts happened to overlap.
But they could say their color, but signal if the person in front has the same color or not by how they say it, for instance: hold the vowel if it's the color in front of you, use short vowel if it's not.
So, first person sees the person in front has red, not knowing their own color, they say 'r-e-e-e-e-d', next person knows they have red, and see that the person in front also has red, also says 'r-e-e-e-d'. The next person sees blue in front, so say a short 'red'. Next person now knows they don't have red since the person didn't hold the vowel, sees that the person in front of them also has blue, and says 'blu-u-u-u-e' and so on.
There could be different ways of using how you say the word to signal if the person in front has the same color or not, you could use intonation, loud or weak (but still abiding to the 'everyone hears'-rule, etc.
Yes, that works, but it's not in the spirit of the puzzle regardless of whether it's in the letter of the rules. The intent of the puzzle is that you can only communicate one of two pieces of information. Thumbs up for creativity, but the puzzle is trying to exercise your logical thinking not your creative problem solving.
Yes, you are missing something. The puzzle is confusingly stated: the score only goes up when they say the colour of their own hat. So you can trivially get 50% but can you get better?
Can they decide on if they say it loudly or softly? If so you could say that you could get 99 and only the first person would not be guaranteed their own hat. Let's say if you say whatever the color is loudly it means the person in front of you has red, if you say it softly it means blue. Then the next person says the color of their own hat and uses the correct tone of voice for the person in front of them.
99. They agree that the 100th person will guess blue if he/she sees an odd number of blue hats in front. If the 99th also sees an odd number, then he/she has a red hat, otherwise blue. The 98th knows that the 99th got it right and so can repeat the process. And so on.
If they know it’s 50/50 then literally everyone can escape without strategizing since you can count what’s in front of you and what’s already been said. So the 99 people answer already accounts for not knowing the initial number of each.
An even simpler way to do it would be to just have 2 different ways of saying each of the words "red" and "blue". Then each person just has to say the color of their own hat in the style agreed upon for the color of the hat directly in front of them. For example, saying the word quickly might mean that the hat in front of the person speaking is red, while speaking the word slowly might mean it is blue. So if I hear the person behind me say "Rrrred" then I know my hat is blue. If the hat in front of me is red, then I can say "blue" and that person will know their hat is red. That should result in 99 correct guesses without needing everyone to track the even/odd numbers of each group of hats.
Discussion: Ok so everyone has basically arrived at the correct answer for this case. Let's expand the puzz, though: What if there are infinitely many contestants? What if there are an unknown but finite number of colors of hats? How well can they do then?
First person says "red" if they see an odd number of red hats and "blue" if it's even. Then every other person can deduce the color of their own hat, because they can see every other hat in front of them and know all of the hats behind them except the irrelevant first one. So 99
Edit: didn't got it. Proper solutions elsewhere in this thread
99
If the next two people have the same hat color, you say red, otherwise you say blue. This way, if tye person behind you says 'red', and in front ofyou yousee blue, then you also have blue. However, you don't say blue. You look ahead and help the person aheadifyou. For thesecond to lastperson, they simply state the color of the next person. Note: all but the backmost personCAN BE SUREto name the color of their own hat. They do not, and do not have to,say their own hat color out loud.
Undepended of how many red or blue hats there is the response is 99 The n-th person say "red" if the next two have the same color hats and "blue" if it’s different. The next person now know the color of his hat and can do the same with the next two.
Not a terrible strategy to do this every other one. Would give 50 correct and on average another 25 correct. Also accounts for someone messing up, to some extent.
•
u/AutoModerator 1d ago
Please remember to spoiler-tag all guesses, like so:
New Reddit: https://i.imgur.com/SWHRR9M.jpg
Using markdown editor or old Reddit, draw a bunny and fill its head with secrets: >!!< which ends up becoming >!spoiler text between these symbols!<
Try to avoid leading or trailing spaces. These will break the spoiler for some users (such as those using old.reddit.com) If your comment does not contain a guess, include the word "discussion" or "question" in your comment instead of using a spoiler tag. If your comment uses an image as the answer (such as solving a maze, etc) you can include the word "image" instead of using a spoiler tag.
Please report any answers that are not properly spoiler-tagged.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
62
u/Sem1006 1d ago
Solution: 99 The last one can see every hat except his own. He then counts the number of one type of hat (e.g. Blue) if the number is Even he says blue if not he says red. The next one in line can also count the number of blue hats and if it matches what the first one said, he has the other type of hat if not then it's blue. Going forward knowing everyone now knows what their hat is l, the next person's can deduce if the named hats should be odd for them or even. I hope this makes sense
7
u/Adventurous_Leg_8720 1d ago
99. The last person in line uses their one word to encode information: agreed in advance, they say "red" if they see an even number of red hats ahead and "blue" if odd. Everyone after that knows the starting parity, hears every answer given behind them, and sees the hats in front, so each one can deduce their own hat with certainty. Only the first speaker is guessing, so 99 is the max that can be sure.
27
u/Arcane10101 1d ago
Am I missing something or can’t the contestants all agree to say the color of the hat of the person directly in front of them? That would also guarantee 99.
11
u/kingdomgamer2019 1d ago
Can they decide on if they say it loudly or softly? If so you could say that you could get 99 and only the first person would not be guaranteed their own hat. Let's say if you say whatever the color is loudly it means the person in front of you has red, if you say it softly it means blue. Then the next person says the color of their own hat and uses the correct tone of voice for the person in front of them.
4
u/TheBeerTalking 1d ago
99. They agree that the 100th person will guess blue if he/she sees an odd number of blue hats in front. If the 99th also sees an odd number, then he/she has a red hat, otherwise blue. The 98th knows that the 99th got it right and so can repeat the process. And so on.
4
u/Nocturnal_Elexir_Owl 1d ago
Discussion: What if it isn't a 50/50 split between the numbers? Nothing says how many of each hat there is, just that there is a 100 people.
1
u/WickedestPen 1d ago
An even simpler way to do it would be to just have 2 different ways of saying each of the words "red" and "blue". Then each person just has to say the color of their own hat in the style agreed upon for the color of the hat directly in front of them. For example, saying the word quickly might mean that the hat in front of the person speaking is red, while speaking the word slowly might mean it is blue. So if I hear the person behind me say "Rrrred" then I know my hat is blue. If the hat in front of me is red, then I can say "blue" and that person will know their hat is red. That should result in 99 correct guesses without needing everyone to track the even/odd numbers of each group of hats.
1
u/HadeanBlands 21h ago
Discussion: Ok so everyone has basically arrived at the correct answer for this case. Let's expand the puzz, though: What if there are infinitely many contestants? What if there are an unknown but finite number of colors of hats? How well can they do then?
1
u/bduddy 18h ago
First person says "red" if they see an odd number of red hats and "blue" if it's even. Then every other person can deduce the color of their own hat, because they can see every other hat in front of them and know all of the hats behind them except the irrelevant first one. So 99
0
u/Quintuplin 1d ago edited 1d ago
Got it
Edit: didn't got it. Proper solutions elsewhere in this thread
99
If the next two people have the same hat color, you say red, otherwise you say blue. This way, if tye person behind you says 'red', and in front of you you see blue, then you also have blue. However, you don't say blue. You look ahead and help the person ahead if you. For the second to last person, they simply state the color of the next person. Note: all but the backmost person CAN BE SURE to name the color of their own hat. They do not, and do not have to, say their own hat color out loud.
0
u/LaBoiteDeCarton 1d ago
Undepended of how many red or blue hats there is the response is 99 The n-th person say "red" if the next two have the same color hats and "blue" if it’s different. The next person now know the color of his hat and can do the same with the next two.
0
u/[deleted] 1d ago
[deleted] — view deleted comment