poj 1837. DP, packing problems