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