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

Автор ratinggobrrr, история, 6 лет назад, По-английски

Can anyone share dp solution of this problem if it's possible to do so this way. It would be a great help.

Thanks in advance.

https://codeforces.me/contest/1395/problem/C

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

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

there is no need to use dp just iterate over all mask and check whethere you can get such mask or not and choose smalest 89698640 dont write dp when you not need it.dont make problem harder