結果 : greedy algorithm approach