Блог пользователя wack-a-mole

Автор wack-a-mole, история, 4 года назад, По-английски

I've been trying to solve this problem from the South America ICPC 2009: https://www.urionlinejudge.com.br/judge/es/problems/view/1412

I am completely stuck and I can't seem to find the solution. It kinda feels like it's some form of DP but I can't seem to find a recurrence that works. Do you have any ideas or hints?

Thank you so much!

  • Проголосовать: нравится
  • +11
  • Проголосовать: не нравится

»
16 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

If you are still interested, Div1-C from round 887 can help you.

Editorial here: https://codeforces.me/blog/entry/116940