What is the logic behind this dynamic programming problem from Topcoder ?

Правка en1, от pvpcoder, 2015-12-14 15:42:45

I am trying to solve Topcoder problem.
In editorial it is given the solution uses bitmask technique. Any one please explain the logic behind this problem.

Теги dp, bitmask

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский pvpcoder 2015-12-14 15:42:45 372 Initial revision (published)