标签: python-2.7 dynamic-programming knapsack-problem
mylist = [5,7,12,18] n = 20 如何在mylist中找到列表元素之和的最大值,以使元素之和有效地小于或等于n?