• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:55
CEST 03:55
KST 10:55
  • 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
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence5Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
Weekly Cups (Sept 8-14): herO & MaxPax split cups3WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia7Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29LiuLi Cup - September 2025 Tournaments3
StarCraft 2
General
Team Liquid Map Contest #21 - Presented by Monster Energy #1: Maru - Greatest Players of All Time Weekly Cups (Sept 8-14): herO & MaxPax split cups SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
WardiTV TL Team Map Contest #5 Tournaments Maestros of The Game—$20k event w/ live finals in Paris RSL: Revival, a new crowdfunded tournament series Sparkling Tuna Cup - Weekly Open Tournament SC4ALL $6,000 Open LAN in Philadelphia
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
Diplomacy, Cosmonarchy Edition [ASL20] Ro16 Preview Pt2: Turbulence BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ ASL20 General Discussion
Tourneys
[ASL20] Ro16 Group C [IPSL] ISPL Season 1 Winter Qualis and Info! Is there English video for group selection for ASL [ASL20] Ro16 Group B
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Nintendo Switch Thread Borderlands 3
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1388 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
OSC
00:00
Mid Season Playoffs #2
CranKy Ducklings81
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 129
Nina 122
CosmosSc2 42
Vindicta 41
StarCraft: Brood War
Artosis 815
ggaemo 113
sSak 19
Icarus 6
Dota 2
NeuroSwarm175
monkeys_forever49
Counter-Strike
fl0m1766
Stewie2K546
Other Games
summit1g5940
shahzam926
JimRising 501
C9.Mang0348
Day[9].tv318
SortOf151
Maynarde127
Trikslyr83
Nathanias35
RuFF_SC214
Organizations
Other Games
gamesdonequick1225
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• davetesta29
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• Scarra1214
• Day9tv318
Upcoming Events
Sparkling Tuna Cup
8h 5m
Afreeca Starleague
8h 5m
Light vs Speed
Larva vs Soma
2v2
9h 5m
PiGosaur Monday
22h 5m
LiuLi Cup
1d 9h
RSL Revival
2 days
Maru vs Reynor
Cure vs TriGGeR
The PondCast
2 days
RSL Revival
3 days
Zoun vs Classic
Korean StarCraft League
4 days
BSL Open LAN 2025 - War…
4 days
[ Show More ]
RSL Revival
4 days
BSL Open LAN 2025 - War…
5 days
RSL Revival
5 days
Online Event
5 days
Wardi Open
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 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.