12790 - The "Win-stay and Lose-shift" Strategy

All about problems in Volume 127. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
myaccount92
New poster
Posts: 2
Joined: Tue Oct 28, 2014 9:22 pm

Re: 12790 - The "Win-stay and Lose-shift" Strategy

Post by myaccount92 » Tue Oct 28, 2014 9:39 pm

how I can compute Y in this problem, please!!

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 12790 - The "Win-stay and Lose-shift" Strategy

Post by brianfry713 » Wed Oct 29, 2014 10:41 pm

Try all the possibilities, use DP to speed it up.
Check input and AC output for thousands of problems on uDebug!

abedalg
New poster
Posts: 4
Joined: Fri Oct 24, 2014 9:40 am

Re: 12790 - The "Win-stay and Lose-shift" Strategy

Post by abedalg » Thu Nov 13, 2014 6:37 pm

What is the DP

lighted
Guru
Posts: 585
Joined: Wed Jun 11, 2014 9:56 pm
Location: Kyrgyzstan, Bishkek

Re: 12790 - The "Win-stay and Lose-shift" Strategy

Post by lighted » Thu Nov 13, 2014 7:38 pm

Dynamic Programming. Search on web :)
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman

Post Reply

Return to “Volume 127 (12700-12799)”