type_zero's blog

By type_zero, history, 5 years ago, In English

Hello,

I don't have access to other's solutions in gym contests yet. I was trying to solve this question using DP but was unable to reduce complexity to fit within the time-bound.

I will appreciate any help.

  • Vote: I like it
  • +22
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

The height of the pyramid is $$$O(\sqrt N).$$$