Hello, can anyone help me with this problem?I'm getting time limit with this solution but i can't find any error in my code.I used bit mask dp for these solution. Here is my code : http://ideone.com/xVl0JI Problem Link : http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1885
(THE PROBLEM IS SOLVED FINALLY :) )