結果 : dynamic programming vs greedy algorithm