結果 : compare divide and conquer greedy algorithm and dynamic programming