Блог пользователя whatthemomooofun1729

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

I am working on BOI 2012 Brackets. The official editorial uses DP to solve the problem, but I noticed that for any length $$$N$$$ strings of the form (((((....(((((, the answer is $$$C(N-2)$$$. Is there any way to generalize this observation to a solution to the problem using Catalan numbers?

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