• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:47
CEST 16:47
KST 23:47
  • 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, Zoun9[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
Team Liquid Map Contest #22 - The Finalists Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid Maestros of the Game 2 announced
Tourneys
SC2 INu's Battles#15 <BO.9 2Matches> GSL Code S Season 1 (2026) 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
[TOOL] Starcraft Chat Translator ASL21 General Discussion JaeDong's ASL S21 Ro16 Post-Review Missed out on ASL tickets - what are my options? BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL21] Ro8 Day 2 [Megathread] Daily Proleagues Korean KCM Race Survival 2026 Season 2 [ASL21] Ro8 Day 1
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
Stormgate/Frost Giant Megathread Daigo vs Menard Best of 10 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: 2421 users

[Math Puzzle] Day8

Blogs > evanthebouncy!
Post a Reply
Normal
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
May 05 2009 01:33 GMT
#1
Last day's puzzle was first solved by Malongo, good job! I wonder what quality do I lack in such a way that I can describe what kind of solution it is but I cannot find it, hopefully I learned something. Again awesome job Malongooo~

+ Show Spoiler [solution] +

See Malongo's solution. I did not solve this puzzle, but his solution is correct by testing and inspection.


Today's puzzle is:
You have a dark tunnel, and 4 people has to cross the tunnel. These 4 people, a, b, c, d, takes different amounts of time to cross the tunnel.
a takes 1 min
b takes 2 min
c takes 5 min
d takes 10 min
There's only 1 flash light, and to cross the tunnel, you must keep the flashlight close by. Only 2 persons can go at a time, and the faster person has to slow down for the slower person. For instance, if a and d go together with the flash_light, it will take 10 minutes.

Your Job:
Devise an algorithm such that it takes the shortest amount of time for all 4 persons to cross the tunnel, how long does it take?

Extra info:
Again, put answers in spoilers, and please show HOW you arrive at the solution, not just the solution if possible so others can learn some problem solving techniques.

GL HF!

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!
micronesia
Profile Blog Joined July 2006
United States24770 Posts
Last Edited: 2009-05-05 01:37:07
May 05 2009 01:36 GMT
#2
+ Show Spoiler +
Obvious choice:

idea = fastest guy keeps returning with flashlight

a and d go together (10)

a comes back (1)

a and c go together (5)

a comes back (1)

a and b go together (2)

total = 10 + 1 + 5 + 1 + 2 = 19 minutes

I'm guessing there's a quicker way but that's a good start :p
ModeratorThere are animal crackers for people and there are people crackers for animals.
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
May 05 2009 01:39 GMT
#3
+ Show Spoiler +
Same thing micro said, I can't think of a way it could possibly be done faster.
LTT
Profile Blog Joined March 2003
Shakuras1095 Posts
May 05 2009 01:41 GMT
#4
+ Show Spoiler +
You want to eliminate the most amount of minutes. You do that by crossing 10 and 5 at the same time. The rest is just setup.

a + b => 2 minutes
a back => 1 minute
c + d => 10 minutes
b back => 2 minutes
a + b => 2 minutes

17 Minutes.
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
Last Edited: 2009-05-05 01:44:12
May 05 2009 01:43 GMT
#5
+ Show Spoiler +
0
a and b go togeter +2
a comes back +1
a and c go together +5
a comes back +1
a and d go together +10
= 19 minutes

edit: thats brilliant LTT
beefhamburger
Profile Joined December 2007
United States3962 Posts
May 05 2009 01:44 GMT
#6
LTT has the correct answer. I remember this puzzle being posted on TL before multiple times in other threads.
EsX_Raptor
Profile Blog Joined February 2008
United States2802 Posts
May 05 2009 01:46 GMT
#7
alright, next puzzle...
thunk
Profile Blog Joined March 2008
United States6233 Posts
May 05 2009 01:48 GMT
#8
+ Show Spoiler +
a takes 1 min
b takes 2 min
c takes 5 min
d takes 10 min

a/b= 2 min
a comes back -> 1 min
c/d -> 10 min
b comes back -> 2 min
a/b = 2 min

Definitely a common problem, LTT got it right.
Every time Jung Myung Hoon builds a vulture, two probes die. || My post count was a palindrome and I was never posting again.
Lemonwalrus
Profile Blog Joined August 2006
United States5465 Posts
May 05 2009 01:49 GMT
#9
/me bows before LTT
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2009-05-05 02:09:31
May 05 2009 02:08 GMT
#10
+ Show Spoiler +

ok we obviously need to run the 10&5 together to save as much time as possible, and 10/5 must only run once.. therefore we need to run the quick ones around them, to minimize downtime in between and allow going back and forth
1&2 forward = 2 //quick ones first
1 back = 3
5&10 forward = 13 //necessary
2 back = 15
1&2 forward = 17 //quick ones last
(\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 ☺)
Archaic
Profile Blog Joined March 2008
United States4024 Posts
May 05 2009 02:34 GMT
#11
On May 05 2009 10:49 Lemonwalrus wrote:
/me bows before LTT


I hate TL in how everyone is smarter than me... But I love it so much more...
TanGeng
Profile Blog Joined January 2009
Sanya12364 Posts
May 05 2009 03:15 GMT
#12
+ Show Spoiler +

17 minutes

1) 2 across and 1 back means that to get all 4 across, the shortest is 3 pairs across and 2 singles back.
2) 10 and 5 should be brought across together since 5 is much larger than both 2 and 1. It's possible to cross back and forth with 1 & 2 twice over in the same time it takes for the 5.
3) Trips across to the other side have to either 1 & 2 or 10 & 5 in order to segregate 1 & 2 and 5 & 10.
4) 5 & 10 has to be the middle trip across. Otherwise, a single trip back with 5 or 10 would have to happen. Therefore, the first and third trips across have to be 1 & 2.
5) Since 1 & 2 cross over twice, both have to cross back once during the two single trips back.
6) The trips back can be in any order. Making the trip with 1 first or 2 first does not matter.

Trips across takes 2 + 10 + 2
Trips back takes 1 + 2.
Total is 17 minutes.
Moderator我们是个踏实的赞助商模式俱乐部
Jonoman92
Profile Blog Joined September 2006
United States9109 Posts
May 05 2009 03:34 GMT
#13
Usually it's phrased as a boat and a river. Way to change it up with a flashlight in a tunnel.
naonao
Profile Blog Joined November 2008
United States847 Posts
May 05 2009 04:17 GMT
#14
+ Show Spoiler +
Tell the people to man up and go through the tunnel without a flashlight, how hard can it be...... send them one after another with fastest first so it takes the slowest guy 10 minutes ot get through
Total Time: 10 minutes + a few seconds for the others to go in first
Malongo
Profile Blog Joined November 2005
Chile3472 Posts
May 05 2009 04:27 GMT
#15
yeah last day my solution was ugly in someway. I arrived at it after several minutes of trying with logic combinations with the doors. With a lot of failed math (trying a and b or a or c in the doors) I realized that 2 direct questions about the doors (whatever the combination between them) left me with the 2 lights still unknown as "variables". I decided then trying some weird questions involving directly the lights in the clock (would you turn white if theres a car). Then I realized that whenever the answer is no the lights where the same and from there it was almost all try and error.
Help me! im still improving my English. An eye for an eye makes the whole world blind. M. G.
BottleAbuser
Profile Blog Joined December 2007
Korea (South)1888 Posts
May 05 2009 04:42 GMT
#16
I just saw yesterday's, and I'm wondering why the problem allows two questions. That makes it trivial!
Compilers are like boyfriends, you miss a period and they go crazy on you.
illu
Profile Blog Joined December 2008
Canada2531 Posts
May 05 2009 05:04 GMT
#17
I am too lazy to solve this one ^^
:]
FirstBorn
Profile Blog Joined March 2007
Romania3955 Posts
Last Edited: 2009-05-05 05:06:20
May 05 2009 05:06 GMT
#18
+ Show Spoiler +
A+B go together (2 mins) then A comes back(+1min). C+D go together ( +10 mins) then B comes back (+2min). Then A+B go together (+2 min)

So it's : 2+1+10+2+2=17 mins yay.
SonuvBob: Yes, the majority of TL is college-aged, and thus clearly stupid.
evanthebouncy!
Profile Blog Joined June 2006
United States12796 Posts
May 05 2009 07:16 GMT
#19
On May 05 2009 13:42 BottleAbuser wrote:
I just saw yesterday's, and I'm wondering why the problem allows two questions. That makes it trivial!

how
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!
Malongo
Profile Blog Joined November 2005
Chile3472 Posts
May 05 2009 07:31 GMT
#20
On May 05 2009 16:16 evanthebouncy! wrote:
Show nested quote +
On May 05 2009 13:42 BottleAbuser wrote:
I just saw yesterday's, and I'm wondering why the problem allows two questions. That makes it trivial!

how

Wow you can solve it with only one question? i dont think thats posible. Again anything is posible.
Help me! im still improving my English. An eye for an eye makes the whole world blind. M. G.
Macavenger
Profile Blog Joined January 2008
United States1132 Posts
May 05 2009 21:16 GMT
#21
You can't solve yesterday's with only 1 question, it's mathematically impossible. One binary question only gives you two possible answers, which necessarily means you would get the same answer for at least 2 of the doors being correct, and have no way to choose between them.
Draconizard
Profile Joined October 2008
628 Posts
May 06 2009 02:44 GMT
#22
Now how about a general solution for randomized values of a, b, c, and d? Perhaps to make this even more devilish, how about an unknown number of participants n?
Juicyfruit
Profile Joined May 2008
Canada5484 Posts
May 06 2009 02:57 GMT
#23
On May 06 2009 11:44 Draconizard wrote:
Now how about a general solution for randomized values of a, b, c, and d? Perhaps to make this even more devilish, how about an unknown number of participants n?


Ok, uhh generalized solution?

For any set of values
Arranged them in increasing order from fastest to slowest (assign fastest = a, slowest = d)

If a + c > 2b, then do what LTT said
If a + c < 2b, then do what Micronesia said
Normal
Please log in or register to reply.
Live Events Refresh
Big Gabe
12:00
Big Gabe Open #1
mouzHeroMarine818
TKL 269
IndyStarCraft 198
Ryung 197
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 818
TKL 269
IndyStarCraft 198
Ryung 197
LamboSC2 85
StarCraft: Brood War
GuemChi 5375
Calm 4531
Sea 2312
Jaedong 1704
HiyA 575
Soma 398
Mini 354
ggaemo 325
Hyuk 319
actioN 285
[ Show more ]
Larva 270
Snow 209
Zeus 131
firebathero 129
Rush 119
Soulkey 114
ToSsGirL 81
Sharp 74
Sea.KH 65
sSak 59
Bale 54
Pusan 49
hero 49
yabsab 34
Shinee 33
Free 32
Sacsri 28
soO 28
Backho 28
Sexy 27
Rock 26
Shine 26
Barracks 24
Movie 18
IntoTheRainbow 16
Noble 13
Terrorterran 13
GoRush 10
Dota 2
syndereN224
ODPixel185
Counter-Strike
fl0m721
byalli580
kRYSTAL_57
adren_tv39
Other Games
singsing2215
B2W.Neo893
hiko863
Lowko355
DeMusliM342
crisheroes310
XaKoH 142
QueenE64
Livibee23
KnowMe18
FrodaN1
Organizations
StarCraft: Brood War
UltimateBattle 518
Dota 2
PGL Dota 2 - Main Stream73
StarCraft: Brood War
Kim Chul Min (afreeca) 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• StrangeGG 64
• poizon28 23
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 2
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Jankos1546
• TFBlade1311
Counter-Strike
• Nemesis1158
Other Games
• WagamamaTV379
Upcoming Events
Replay Cast
18h 13m
Escore
19h 13m
INu's Battles
20h 13m
Classic vs ByuN
SHIN vs ByuN
OSC
22h 13m
Big Brain Bouts
1d 1h
Replay Cast
1d 9h
Replay Cast
1d 18h
RSL Revival
1d 19h
Classic vs GgMaChine
Rogue vs Maru
WardiTV Invitational
1d 20h
IPSL
2 days
Ret vs Art_Of_Turtle
Radley vs TBD
[ Show More ]
BSL
2 days
Replay Cast
2 days
RSL Revival
2 days
herO vs TriGGeR
NightMare vs Solar
uThermal 2v2 Circuit
2 days
BSL
3 days
IPSL
3 days
eOnzErG vs TBD
G5 vs Nesh
Patches Events
3 days
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Jaedong vs Light
Monday Night Weeklies
4 days
Replay Cast
4 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
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
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

Escore Tournament S2: W5
KK 2v2 League Season 1
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
IEM Atlanta 2026
Asian Champions League 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.