Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

GrandLock's blog

By GrandLock, history, 3 years ago, In English

Help me by providing a top-down dp solution for these two: first, second.

If there are any type of optimizations that manages it to run in 1s please elaborate.

Tags dp
  • Vote: I like it
  • -23
  • Vote: I do not like it

| Write comment?