Discrete knapsack problem

Sign in to test your solution.