結果 : greedy method in algorithm