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

Автор VoolDD5, 10 лет назад, По-английски

Hi :)
Can anybody please describe how to solve this problem? Codeforces.com/A_Simple_Task
thanks a lot

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

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

Maybe this article will help you http://codeforces.com/blog/entry/337. Read it, understand it and finally implement it. Hope it helps.

P.S. UVa online judge has a lot of tasks connected with combined dp with bitmasks. Here is a link, if you are interested http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=437.