VoolDD5's blog

By VoolDD5, 10 years ago, In English

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

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

»
10 years ago, # |
Rev. 2   Vote: I like it +6 Vote: I do not like it

Maybe this article will help you http://codeforces.net/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.