結果 : brute force vs greedy algorithm