implementation of a knapsack problem using greedy algorithm in pythonの検索結果