結果 : subset sum problem dynamic programming time complexity