• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:58
CET 10:58
KST 18: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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament RSL Offline Finals Info - Dec 13 and 14! StarCraft Evolution League (SC Evo Biweekly) Sea Duckling Open (Global, Bronze-Diamond) $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
Foreign Brood War BGH Auto Balance -> http://bghmmr.eu/ Data analysis on 70 million replays BW General Discussion MBCGame Torrents
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile ZeroSpace Megathread The Perfect Game
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
I decided to write a webnov…
DjKniteX
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 961 users

A Puzzling Fortnight - Day 7

Blogs > JeeJee
Post a Reply
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
February 18 2010 16:26 GMT
#1
Let's jump right into it this time.

You vs me. An even numer of coins (potentially different denominations) are arranged in a line between us, going left-to-right. We are going to play the following game:
We take turns taking a coin from either end of the coin line. The game ends when there are no more coins. The winner is the one whose little pile of coins at the end is worth more than the other's. Simple.

You go first. Devise a strategy such that your pile at the end will always at least match my pile in value.

GL!

(\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 ☺)
onmach
Profile Blog Joined March 2009
United States1241 Posts
Last Edited: 2010-02-18 16:50:31
February 18 2010 16:50 GMT
#2
Hmm, my naive approach. If there are 2 coins, pick the largest. If there are 4 or more coins, add up the values of the coin on the left and second coin from the right, and compare that to the value of the second coin to the left and the coin on the right. If the first number is higher, then take a coin from the left side, and if the second is larger take a coin from the right side.
ieatkids5
Profile Blog Joined September 2004
United States4628 Posts
Last Edited: 2010-02-18 17:02:08
February 18 2010 16:55 GMT
#3
11111111
if all the denominations are the same, then just pick whatever

any other scenario, add up every other number starting at one end, then add up every other number starting from the other end. whichever side you start on that has a greater sum, start picking from that side.

example:
43472191

4+4+2+9=19
3+7+1+1=12

start picking from the side with the 4. your opponent has to take the 3 because if he takes the 1, then you will take the 9. after he takes the 3, take the 4. he will take the 7. take the 2. he takes the 1. you take the 9.

another example:
27261192

2+2+1+9=14
7+6+1+2=16

start from the right side and take the 2. your opponent will take the 9 because you will take it if he doesnt. take the 1. opponent will take next 1 because he cannot take the 2 on the left (or you will take the 7. take the 6. opponent takes the 2. take the 7.



edit - updated with examples
onmach
Profile Blog Joined March 2009
United States1241 Posts
February 18 2010 19:15 GMT
#4
Your solution is simpler, and after looking your examples, mine was clearly defective.
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
Last Edited: 2010-02-18 20:02:13
February 18 2010 19:48 GMT
#5
On February 19 2010 01:55 ieatkids5 wrote:
11111111
if all the denominations are the same, then just pick whatever

any other scenario, add up every other number starting at one end, then add up every other number starting from the other end. whichever side you start on that has a greater sum, start picking from that side.

example:
43472191

4+4+2+9=19
3+7+1+1=12

start picking from the side with the 4. your opponent has to take the 3 because if he takes the 1, then you will take the 9. after he takes the 3, take the 4. he will take the 7. take the 2. he takes the 1. you take the 9.

another example:
27261192

2+2+1+9=14
7+6+1+2=16

start from the right side and take the 2. your opponent will take the 9 because you will take it if he doesnt. take the 1. opponent will take next 1 because he cannot take the 2 on the left (or you will take the 7. take the 6. opponent takes the 2. take the 7.



edit - updated with examples



i assume you re-calculate these 2 values every time it is your turn?

edit
@onmach
which example shows inadequacy of your strategy? curious..
(\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 ☺)
ieatkids5
Profile Blog Joined September 2004
United States4628 Posts
February 20 2010 02:01 GMT
#6
On February 19 2010 04:48 JeeJee wrote:
Show nested quote +
On February 19 2010 01:55 ieatkids5 wrote:
11111111
if all the denominations are the same, then just pick whatever

any other scenario, add up every other number starting at one end, then add up every other number starting from the other end. whichever side you start on that has a greater sum, start picking from that side.

example:
43472191

4+4+2+9=19
3+7+1+1=12

start picking from the side with the 4. your opponent has to take the 3 because if he takes the 1, then you will take the 9. after he takes the 3, take the 4. he will take the 7. take the 2. he takes the 1. you take the 9.

another example:
27261192

2+2+1+9=14
7+6+1+2=16

start from the right side and take the 2. your opponent will take the 9 because you will take it if he doesnt. take the 1. opponent will take next 1 because he cannot take the 2 on the left (or you will take the 7. take the 6. opponent takes the 2. take the 7.



edit - updated with examples



i assume you re-calculate these 2 values every time it is your turn?

edit
@onmach
which example shows inadequacy of your strategy? curious..

heh oops
yes
Daigomi
Profile Blog Joined May 2006
South Africa4316 Posts
March 03 2010 21:25 GMT
#7
+ Show Spoiler +
You add the value of all the odd numbered coins (coin #1, #3, etc) and all the even numbered coins (coin #2, #4, etc) together. If the odd numbered coins total the highest, you start on the left. If the even numbered coins have the highest total, you start on the right. After that you just pick on the same side as your opponent does every turn.
Moderator
Please log in or register to reply.
Live Events Refresh
Next event in 3m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
trigger 66
StarCraft: Brood War
Hyuk 3131
Leta 1040
BeSt 760
firebathero 362
Zeus 337
Killer 321
Jaedong 261
910 248
EffOrt 241
Bale 139
[ Show more ]
sorry 138
Dewaltoss 111
JulyZerg 90
Sacsri 80
zelot 59
Mind 23
Sharp 22
Noble 18
Shinee 13
Hm[arnc] 10
Terrorterran 5
Dota 2
singsing3950
NeuroSwarm156
XcaliburYe10
Super Smash Bros
C9.Mang0727
hungrybox268
AZ_Axe38
Heroes of the Storm
Khaldor196
Other Games
summit1g10810
mouzStarbuck429
RotterdaM154
Organizations
StarCraft: Brood War
UltimateBattle 41
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• LUISG 35
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota260
League of Legends
• Jankos2513
Upcoming Events
Sparkling Tuna Cup
3m
CranKy Ducklings10
WardiTV 2025
2h 3m
OSC
5h 3m
IPSL
7h 3m
Bonyth vs KameZerg
BSL 21
10h 3m
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
23h 3m
Wardi Open
1d 2h
StarCraft2.fi
1d 6h
Monday Night Weeklies
1d 7h
Replay Cast
1d 14h
[ Show More ]
WardiTV 2025
2 days
StarCraft2.fi
2 days
PiGosaur Monday
2 days
StarCraft2.fi
3 days
Tenacious Turtle Tussle
3 days
The PondCast
4 days
WardiTV 2025
4 days
StarCraft2.fi
4 days
WardiTV 2025
5 days
StarCraft2.fi
6 days
RSL Revival
6 days
IPSL
6 days
Sziky vs JDConan
Liquipedia Results

Completed

Proleague 2025-12-04
RSL Revival: Season 3
Light HT

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
WardiTV 2025
META Madness #9
Kuram Kup
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
RSL Offline Finals
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
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 © 2025 TLnet. All Rights Reserved.