• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:58
CEST 04:58
KST 11:58
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun11[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists21[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
2026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid25
StarCraft 2
General
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Team Liquid Map Contest #22 - The Finalists Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid Maestros of the Game 2 announced
Tourneys
GSL Code S Season 1 (2026) SC2 INu's Battles#15 <BO.9 2Matches> WardiTV Spring Cup RSL Revival: Season 5 - Qualifiers and Main Event SEL Masters #6 - Solar vs Classic (SC: Evo)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
Pros React To: Leta vs Tulbo (ASL S21, Ro.8) ASL21 General Discussion [TOOL] Starcraft Chat Translator JaeDong's ASL S21 Ro16 Post-Review Missed out on ASL tickets - what are my options?
Tourneys
[ASL21] Ro8 Day 2 [ASL21] Ro8 Day 1 ASL Season 21 LIVESTREAM with English Commentary [ASL21] Ro16 Group D
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Daigo vs Menard Best of 10 Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV Diablo IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2184 users

Math Puzzle [num 20] - Page 5

Blogs > evanthebouncy!
Post a Reply
Prev 1 2 3 4 5 6 Next All
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
Last Edited: 2011-11-13 13:08:08
November 13 2011 13:05 GMT
#81
On November 13 2011 21:06 sidr wrote:
Show nested quote +
On November 13 2011 18:48 rotinegg wrote:
On November 13 2011 18:44 Warble wrote:
On November 13 2011 18:41 rotinegg wrote:
On November 13 2011 18:32 Warble wrote:
On November 13 2011 17:46 rotinegg wrote:
You have a 99 meter pole, and it is one-dimensional. There are 100 cats that occupy the pole, all evenly spaced so that there is a cat every meter. These ain't no normal cats: they have no width or length; just height. They also walk at a constant speed of 1m/s, and have infinite acceleration so they can start walking or turn in the opposite direction instantaneously. Now, 50 cats on the left side of the bar start out facing right, and the other 50 on the right side start out facing left. When you blow a whistle, they will all start walking in the direction they are facing, but turn around and start walking the other way once they hit another cat. If they reach the end of the bar, they will just fall off. Assuming this, how long does it take for all the cats to fall off the bar?


+ Show Spoiler +

So we want to find out how long it takes for the middle cats to fall off. Time and distance are equivalent in this puzzle.

Let's consider the 50th cat.

It walks for 0.5 s right and bumps. Turns and walks 0.5 s left and bumps into cat 49. This means cat 50 ends up back where it started after 1 s and cat 49 is now facing left.

We don't really need to follow the analysis for cat 49 because now it's obvious that the "bump wave" travels left at 1 m/s starting from the middle after 0.5 s.

Now let's consider cat 1. It's travelling right at 1 m/s. Combine this with the wave and we see that they're approaching each other at 2 m/s. So cat 1 is bumped after 22.5 s + 0.5 s. After which cat 1 is doomed.

What about cat 2? There is a new "bump wave" every 1 s, ...

Due to symmetry, we can treat this puzzle as a 45.5 metre pole with a wall on one end. So the analysis for this side applies to the other side.

Actually, forget all that. This puzzle is simple. We can already see that each bump wave will knock off 1 cat. There are 50 cats, so cat 50 will carry the 50th bump wave all the way to the end. Since each bump wave lasts 1 s, and begins after 0.5 s, the 50th bump wave occurs at 50.5 s, whereupon cat 50 has 99/2 = 45.5 m to walk.

So the last pair of cats fall off at 96 seconds.


The 50th cat would walk 0.5s right and bump, correct, but it would walk less than 0.5s to the left because cat 49 also walked during that time, no? hehe answer is off


The distance between cat 49 and cat 50 is 1 m and doesn't change until cat 50 bumps into cat 51, after which 49 and 50 approach each other at 2 m/s, which means 0.5 s to close the gap.

Ooh, you're right, my brain farted for a second... there's still a mistake somewhere because the correct answer is off.. hmmm.. also there is a very simple way of solving this, which made me go nuts after I heard it, because by that point my brain was full of cats walking back and forth, bouncing off of eachother and falling off poles.. haha

edit: your mistake was at 99/2 = 45.5m and no idea where you got the 22.5s from... I get 24.25s...


I'm guessing this is the simple solution you're talking about:


+ Show Spoiler +
Don't consider collisions as bouncing cats. Instead, every collision has the same effect as having the two cats pass through one another. Thus, the time will be the maximum of the times it would take each individual cat to fall off if no other cats were present. We have a 99m pole and a cat on the left facing right moving at 1m/s, so this is 99s.

Bingo.

you have 20 prisoners on death row. The day before the execution, the executioner decides to have a bit of mercy and lets them know exactly what is going to go down. He says:
  • They will be lined up in one row, so that they stand behind one another.
  • The executioner will come up behind each of them and randomly put on a red or blue hat.
  • You will not be able to see your own hat, or any of those behind you, but you will be able to see those in front of you.
  • The executioner will start from the very back, and ask you what your hat color is. You are permitted to only say either red or blue, and if correct, you will live. If not, your brains will be blown out.
  • You will be given one night to come up with a strategy as a group to save the most men.
  • You may not communicate with each other during the execution day; if you so much as blink or breathe in a peculiar pattern, all 20 of you will be shot immediately.

All the prisoners are very astute and logical, and place no importance on their own life over others'. How would you save the most people, and how many people would you save on average using said strategy?
Translator
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
Last Edited: 2011-11-13 13:38:06
November 13 2011 13:29 GMT
#82
Here's a naive solution to the prisoners' problem:

+ Show Spoiler +
The first ten will, in order, announce that they are wearing the color of the hats of the first ten men. Then the last ten men will know their own colors.

Alternatively, the odd-numbered prisoners will announce the color of the person in front of them, saving the even-numbered prisoners. Either way, you're sacrificing one for one.

Assuming uniform distribution, this will save 7.5 prisoners on average.

.... I hope guessing your own color is done out loud and is not considered extra communication. Without communication and knowing the distribution, I don't think this has any real solution.
Compilers are like boyfriends, you miss a period and they go crazy on you.
BrTarolg
Profile Blog Joined June 2009
United Kingdom3574 Posts
November 13 2011 14:05 GMT
#83
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now
BrTarolg
Profile Blog Joined June 2009
United Kingdom3574 Posts
November 13 2011 14:23 GMT
#84
NOTE: a very cheap solution (and i think beyond the intentions of the question) - lets say for the front 19 people there are 19^2 possible combinations. Well the first guy can simply "count" up to the combination number in seconds, wait that amount of time, and then make his answer. He could halve the time required by making his answer either red/blue to signal two different combo sets
Then every person in front having memorized that set would be able to easily win.

Thus from now on, i am assuming each prisoner must answer instantly, however each prisoner will be allowed to know what happened to the guys before them (shot or alive)
-----

Continuing from the previous solution if i'm on the right track

ASSUMING the prisoners get to hear whether the guy behind them is shot or not

in a 4 person game, first guy can use a red blue to signal one of 2 possible combos, RRR/BBB (all same) or 2 of one colour and 1 of the other colour
Given an all same, the next part is easy, and all 3 are saved

Given a 2:1 combo, the next guy will see one of two things - either RR/BB (both same) or RB/BR
In an RR/BB situation, this is ideal as he knows exactly what his colour is
Then the no3 and no4 will know they are holding the same colour hats, and will have an easy time answering

in a RB/BR situation, no2 will be in a bit of a pickle. Now, if prisoner 1 was allowed to use the "wait 1 second then answer or wait 2 seconds and answer" - he would be able to announce both the combination, and what colour no2 is wearing (wait 1 = red, wait 2 = blue)
If you play this waiting game (on a reasonable time frame) then no2 will always be saved, and no3 will know the combo (2:1) and two of the colours, allowing him to save himself and the guy in front

Repeating this style, you get 15 saved, and 5 prisoners on a 50/50, resulting in 17.5 saved
(bad answer)
----

However, this hinges on the "wait 1 second and answer or wait 2 seconds answer"

If you must answer instantly, as i presumed before, then you have a few combinations. No3 and no4 are always saved as they know what happens to the guy before him.
No1 is always 50/50, no matter what
The possible combos for no2 are
RRR
RRB
RBR
BRR
BBR
BRB
RBB
BBB

Thus, at least 2/8 times he is saved.
For the remaining 6 combinations, he is saved in an additional 2 of them BRR and RBB

Leaving 4 tricky ones, RBR, BBR, RRB, BRB
In these situations, he has a 50/50 chance to survive

Thus, out of 8 combos, he survives 6 of them on average, and has a 75% chance of survival.
Thus for 4 players, we have 50%, 75%, 100% 100%, giving us 3.25 saved on average, giving us 16.25 saved overall.
This is a worse solution than the one i posted above, leaving me to believe that iterative solutions in general, will fail

Thus, i think the solution i posted above is the best
DJWilma
Profile Blog Joined April 2011
Canada740 Posts
Last Edited: 2011-11-13 15:31:54
November 13 2011 15:19 GMT
#85
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best

I write stuff on LiquidDota also I own omwproductions.com
BrTarolg
Profile Blog Joined June 2009
United Kingdom3574 Posts
November 13 2011 15:41 GMT
#86
On November 14 2011 00:19 DJWilma wrote:
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best



weve had solutions where the maximum is 14 and that's the best
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
November 13 2011 18:12 GMT
#87
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case
Translator
Frozenhelfire
Profile Joined May 2010
United States420 Posts
Last Edited: 2011-11-13 18:38:25
November 13 2011 18:36 GMT
#88
I hope that rule doesn't count voice inflections :d
Prisoners:

The last prisoner says the color of the hat the person in front of him is wearing.
Odd numbers inflect the color of their hat as a question i.e. blue? if the person in front of them has the same color hat.
Even numbers inflect if the person has a different hat.

As for Day

+ Show Spoiler +
Once he reaches the water he can rip off a finger and throw it at the monster. The monster will stop to eat it while Day runs. :D I guess he could do that multiple times if needed.
polar bears are fluffy
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
November 13 2011 18:45 GMT
#89
On November 14 2011 03:36 Frozenhelfire wrote:
I hope that rule doesn't count voice inflections :d
Prisoners:

The last prisoner says the color of the hat the person in front of him is wearing.
Odd numbers inflect the color of their hat as a question i.e. blue? if the person in front of them has the same color hat.
Even numbers inflect if the person has a different hat.


voice inflections also count as cheating
Translator
Frozenhelfire
Profile Joined May 2010
United States420 Posts
November 13 2011 20:39 GMT
#90
I guess I'm stumped here. Are there ten hats of each color or could all the prisoners end up with the same hat?
polar bears are fluffy
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2011-11-13 21:29:09
November 13 2011 21:04 GMT
#91
On November 14 2011 03:12 rotinegg wrote:
Show nested quote +
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Frozenhelfire
Profile Joined May 2010
United States420 Posts
November 13 2011 22:21 GMT
#92
On November 14 2011 06:04 JeeJee wrote:
Show nested quote +
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.
polar bears are fluffy
Luepert
Profile Blog Joined June 2011
United States1933 Posts
November 13 2011 23:09 GMT
#93
I'm fairly certain if you drop an egg from the first floor it will break because you can drop eggs from like 4 feet off the group and they break...
esports
corumjhaelen
Profile Blog Joined October 2009
France6884 Posts
November 13 2011 23:39 GMT
#94
On November 14 2011 07:21 Frozenhelfire wrote:
Show nested quote +
On November 14 2011 06:04 JeeJee wrote:
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.

A nice variant is that everyone can see everyone' else's colors but their own. But instead of two colors, you can work a solution for n colors, and in fact if I remember well the "paper" solutions with "infinite" colors/prisonners, at least in some special cases.
‎numquam se plus agere quam nihil cum ageret, numquam minus solum esse quam cum solus esset
rotinegg
Profile Blog Joined April 2009
United States1719 Posts
November 13 2011 23:43 GMT
#95
On November 14 2011 06:04 JeeJee wrote:
Show nested quote +
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution

Nice job!

I don't remember any more off the top of my head at the moment haha
Translator
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
November 13 2011 23:51 GMT
#96
On November 13 2011 22:05 rotinegg wrote:
Show nested quote +
On November 13 2011 21:06 sidr wrote:
On November 13 2011 18:48 rotinegg wrote:
On November 13 2011 18:44 Warble wrote:
On November 13 2011 18:41 rotinegg wrote:
On November 13 2011 18:32 Warble wrote:
On November 13 2011 17:46 rotinegg wrote:
You have a 99 meter pole, and it is one-dimensional. There are 100 cats that occupy the pole, all evenly spaced so that there is a cat every meter. These ain't no normal cats: they have no width or length; just height. They also walk at a constant speed of 1m/s, and have infinite acceleration so they can start walking or turn in the opposite direction instantaneously. Now, 50 cats on the left side of the bar start out facing right, and the other 50 on the right side start out facing left. When you blow a whistle, they will all start walking in the direction they are facing, but turn around and start walking the other way once they hit another cat. If they reach the end of the bar, they will just fall off. Assuming this, how long does it take for all the cats to fall off the bar?


+ Show Spoiler +

So we want to find out how long it takes for the middle cats to fall off. Time and distance are equivalent in this puzzle.

Let's consider the 50th cat.

It walks for 0.5 s right and bumps. Turns and walks 0.5 s left and bumps into cat 49. This means cat 50 ends up back where it started after 1 s and cat 49 is now facing left.

We don't really need to follow the analysis for cat 49 because now it's obvious that the "bump wave" travels left at 1 m/s starting from the middle after 0.5 s.

Now let's consider cat 1. It's travelling right at 1 m/s. Combine this with the wave and we see that they're approaching each other at 2 m/s. So cat 1 is bumped after 22.5 s + 0.5 s. After which cat 1 is doomed.

What about cat 2? There is a new "bump wave" every 1 s, ...

Due to symmetry, we can treat this puzzle as a 45.5 metre pole with a wall on one end. So the analysis for this side applies to the other side.

Actually, forget all that. This puzzle is simple. We can already see that each bump wave will knock off 1 cat. There are 50 cats, so cat 50 will carry the 50th bump wave all the way to the end. Since each bump wave lasts 1 s, and begins after 0.5 s, the 50th bump wave occurs at 50.5 s, whereupon cat 50 has 99/2 = 45.5 m to walk.

So the last pair of cats fall off at 96 seconds.


The 50th cat would walk 0.5s right and bump, correct, but it would walk less than 0.5s to the left because cat 49 also walked during that time, no? hehe answer is off


The distance between cat 49 and cat 50 is 1 m and doesn't change until cat 50 bumps into cat 51, after which 49 and 50 approach each other at 2 m/s, which means 0.5 s to close the gap.

Ooh, you're right, my brain farted for a second... there's still a mistake somewhere because the correct answer is off.. hmmm.. also there is a very simple way of solving this, which made me go nuts after I heard it, because by that point my brain was full of cats walking back and forth, bouncing off of eachother and falling off poles.. haha

edit: your mistake was at 99/2 = 45.5m and no idea where you got the 22.5s from... I get 24.25s...


I'm guessing this is the simple solution you're talking about:


+ Show Spoiler +
Don't consider collisions as bouncing cats. Instead, every collision has the same effect as having the two cats pass through one another. Thus, the time will be the maximum of the times it would take each individual cat to fall off if no other cats were present. We have a 99m pole and a cat on the left facing right moving at 1m/s, so this is 99s.

Bingo.

you have 20 prisoners on death row. The day before the execution, the executioner decides to have a bit of mercy and lets them know exactly what is going to go down. He says:
  • They will be lined up in one row, so that they stand behind one another.
  • The executioner will come up behind each of them and randomly put on a red or blue hat.
  • You will not be able to see your own hat, or any of those behind you, but you will be able to see those in front of you.
  • The executioner will start from the very back, and ask you what your hat color is. You are permitted to only say either red or blue, and if correct, you will live. If not, your brains will be blown out.
  • You will be given one night to come up with a strategy as a group to save the most men.
  • You may not communicate with each other during the execution day; if you so much as blink or breathe in a peculiar pattern, all 20 of you will be shot immediately.

All the prisoners are very astute and logical, and place no importance on their own life over others'. How would you save the most people, and how many people would you save on average using said strategy?


+ Show Spoiler +

you can save 19 at least. Last guy shout the parity of the blue hat in front (encoded as blue/red). And the ppl in front knows everything, they can subtract the ppl they see in front to find his own color, and once he declares his own color, again, everyone in front of him knows the parity exactly.
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
Last Edited: 2011-11-14 00:14:08
November 14 2011 00:13 GMT
#97
On November 14 2011 08:39 corumjhaelen wrote:
Show nested quote +
On November 14 2011 07:21 Frozenhelfire wrote:
On November 14 2011 06:04 JeeJee wrote:
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.

A nice variant is that everyone can see everyone' else's colors but their own. But instead of two colors, you can work a solution for n colors, and in fact if I remember well the "paper" solutions with "infinite" colors/prisonners, at least in some special cases.


yeah i think that was puzzle number 14 or so.

I really should link every puzzles together haha
Life is run, it is dance, it is fast, passionate and BAM!, you dance and sing and booze while you can for now is the time and time is mine. Smile and laugh when still can for now is the time and soon you die!
corumjhaelen
Profile Blog Joined October 2009
France6884 Posts
November 14 2011 00:22 GMT
#98
On November 14 2011 09:13 evanthebouncy! wrote:
Show nested quote +
On November 14 2011 08:39 corumjhaelen wrote:
On November 14 2011 07:21 Frozenhelfire wrote:
On November 14 2011 06:04 JeeJee wrote:
On November 14 2011 03:12 rotinegg wrote:
On November 13 2011 23:05 BrTarolg wrote:
Working iteratively,

with 1 person, its 50/50
with 2 people, the first guy is always 50/50, but the second guy can be saved by the first
with 3 people, the first guy can announce a "same/different" signal, and save the following two (i.e, red = following two have same colour, blue = following two have different colour)

With this strategy, you have a 50/50 chance for 1/3 prisoners, and 100% chance for everyone else

With 18 players, you save 12 of them and 50/50 for 6 of them, and with the last two you save 1 and 50/50 the other
meaning you save 13 and 50/50 7 of them giving you an average of 16.5 saved

A pretty decent solution, thinking of a better one now

you can save an expected 19.5 prisoners with 19 as the worst case


here's what I'm thinking now, I think this solves it
+ Show Spoiler +

yeah i wrote something long here but I deleted it
anyway last prisoner simply announces RED if the number of red hats in front of him is odd, or BLUE if the number of red hats is even. knowing this info, everyone else can make the correct guess about their hat color, assuming everyone can hear everyone else's guess.
i only really thought of this because you gave away the expected number of prisoners that live

e: shit maybe not
e2: nope nevermind it works, i'm crazy. re-added tldr version of solution


Good solution. I thought it would be something simple. I forgot that everyone can see what is in front of them instead of just the last prisoner.

A nice variant is that everyone can see everyone' else's colors but their own. But instead of two colors, you can work a solution for n colors, and in fact if I remember well the "paper" solutions with "infinite" colors/prisonners, at least in some special cases.


yeah i think that was puzzle number 14 or so.

I really should link every puzzles together haha

Way too hard to follow, sorry lol.
‎numquam se plus agere quam nihil cum ageret, numquam minus solum esse quam cum solus esset
kaleidoscope
Profile Blog Joined December 2008
Singapore2887 Posts
November 14 2011 01:31 GMT
#99
On November 14 2011 00:41 BrTarolg wrote:
Show nested quote +
On November 14 2011 00:19 DJWilma wrote:
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best



weve had solutions where the maximum is 14 and that's the best


i think it can be achieved in 9 steps?

so like, doing a drop on 1st and 100th floor, and then subsequently cut the range into half (e.g 50th floor)..
then if it breaks, do the upper half (75th floor), if it doesnt, do the lower half (e.g 25th), and repeat the process..
대지따라 돌린게 시간이다.. 흘러가고 돌아오지도 않고..
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2011-11-14 04:05:24
November 14 2011 03:44 GMT
#100
On November 14 2011 10:31 kaleidoscope wrote:
Show nested quote +
On November 14 2011 00:41 BrTarolg wrote:
On November 14 2011 00:19 DJWilma wrote:
+ Show Spoiler +
Super Easy.... let x be whether the egg breaks (true or false), and y be the floor number...
Step 1. Start at y=10, test x, if x=true continue to step 3, if x=false continue to step 2
Step 2, add 10 to y, test x, if x=false repeat step 2, if x=true continue to step 3
Step 3. subtract 9 from y, test x. if x=true continue to step 5, if x=false continue to step 4
Step 4. Add 1 to y, test x, if x=true continue to step 5, if x=false repeat step 4
Step 5. we conclude our answer to be what y was equal to when x=true minus 1.
Doing this method will give you a maximum value for fewest drops of 19, and a minimum of 1.

DJ WILMA OUT!

I may have misunderstood the question, but the average outcome of drops is equal to 10 drops, if thats what your looking for I'm pretty sure mines the best



weve had solutions where the maximum is 14 and that's the best


i think it can be achieved in 9 steps?

so like, doing a drop on 1st and 100th floor, and then subsequently cut the range into half (e.g 50th floor)..
then if it breaks, do the upper half (75th floor), if it doesnt, do the lower half (e.g 25th), and repeat the process..


unfortunately you don't have infinite eggs. if you did, then yes that would be the best approach.
e: random puzzle/teaser I recall reading in a book. It's kinda famous but if you haven't heard it before, it's a good illustration of how you approach problems. Reminds me of the ants on a stick problem that was posted earlier in this thread.

You have two houses side by side, with windows facing each other. Owners decide to hang a rope between the windows to dry clothes on. Luckily for the owners, the windows are exactly level with each other. They have a 20 foot rope.

So they tack the rope to each window, such that it hangs down, forming a hump due to gravity. Note that a hanging rope does NOT form a parabola. It forms a catenary shape: http://en.wikipedia.org/wiki/Catenary
Anyway, the vertical distance of this hump is ten feet. How far apart are the houses?
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
Prev 1 2 3 4 5 6 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 6h 2m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft402
RuFF_SC2 162
ProTech122
StarCraft: Brood War
910 109
NaDa 48
Dota 2
monkeys_forever802
NeuroSwarm96
League of Legends
Doublelift4476
Other Games
summit1g7752
C9.Mang0502
JimRising 437
WinterStarcraft229
Maynarde117
ViBE101
Organizations
Other Games
gamesdonequick542
BasetradeTV180
Dota 2
PGL Dota 2 - Main Stream114
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 42
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo401
Upcoming Events
Replay Cast
6h 2m
Escore
7h 2m
INu's Battles
8h 2m
Classic vs ByuN
SHIN vs ByuN
OSC
10h 2m
Big Brain Bouts
13h 2m
Replay Cast
21h 2m
Replay Cast
1d 6h
RSL Revival
1d 7h
Classic vs GgMaChine
Rogue vs Maru
WardiTV Invitational
1d 8h
IPSL
1d 13h
Ret vs Art_Of_Turtle
Radley vs TBD
[ Show More ]
BSL
1d 16h
Replay Cast
1d 21h
RSL Revival
2 days
herO vs TriGGeR
NightMare vs Solar
uThermal 2v2 Circuit
2 days
BSL
2 days
IPSL
2 days
eOnzErG vs TBD
G5 vs Nesh
Patches Events
2 days
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Jaedong vs Light
Monday Night Weeklies
3 days
Replay Cast
3 days
Sparkling Tuna Cup
4 days
Afreeca Starleague
4 days
Snow vs Flash
WardiTV Invitational
4 days
GSL
5 days
Classic vs Cure
Maru vs Rogue
GSL
6 days
SHIN vs Zoun
ByuN vs herO
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-04-29
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Escore Tournament S2: W5
KK 2v2 League Season 1
StarCraft2 Community Team League 2026 Spring
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.