結果 : which of the following problems is solved using dynamic programming