結果 : greedy algorithm vs brute force