Spend As Much As You Can - Part 1

Gina has $4.00, and wants to spend as much of her money as she can on candy. What is the maximum amount she can spend if she can only buy as many as she wants of the following:

  • Licorice: $0.59
  • Chocolate drops: $.79
  • Gummy bears: $0.95

Note: Gina doesn't care what kind of candy she buys, she just wants to spend as much of her money as possible.

If you liked this problem on Integer Programming, try Part 2.

×

Problem Loading...

Note Loading...

Set Loading...