Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Help with tricky array question

Правка en2, от aakarshmadhavan, 2018-06-28 01:18:56

I found an interesting question on another OJ. I'm very bad at these types of questions (any suggestions to improve are also welcome).

486

For you all here this will be easy cake, I appreciate any help you can provide for me.

I tried 2 pointers-greedy, but I realized that the players will not always take the largest values from each of the left/right pointers of the array. I'm very stuck and can't find a way.

Any ideas/hints/suggestions (not too revealing). I really don't want to look up the solution before getting it myself.

Thanks

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский aakarshmadhavan 2018-06-28 01:18:56 1 Tiny change: 'come).\n\n![486](http' -> 'come).\n\n[486](http'
en1 Английский aakarshmadhavan 2018-06-28 01:18:33 652 Initial revision (published)