結果 : greedy knapsack algorithm python