Cody

Problem 42996. what can you get for exactly amount of money

Created by Jakub Mrowka in Community

You go to store, where each product has price. Prices are in vector

s = [ 195 125 260 440 395 290]

and you have amount of money n=570

Question is what can you buy, if you want to use whole amount of money

For this data answer is

y=[ 125 125 125 195]

With other data it can be more than one solution.

Solution Stats

56.8% Correct | 43.2% Incorrect
Last solution submitted on Apr 02, 2019

Problem Comments

Solution Comments

Recent Solvers60

Suggested Problems

More from this Author12