結果 : greedy vs divide and conquer vs dynamic programming