結果 : which is greedy algorithm