Username: 
Password: 
Restrict session to IP 
Questions  |  score: 5  |  5.81 6.92 7.65 |  Solved By 104 People  |  124749 views  |  since Jan 25, 2011 - 11:50:52

The Travelling Customer (Coding, Training)

The Travelling Customer
In this programming challenge you need to solve the following problem:
You are represented a pricelist, an itemamount and a sum, as well as the stock parameter.
Your job is to select itemamount items which will result in the sum.
You may not select more items than stock from each type.

Example:
Chips=4
Eggs=2

Items=5
Sum=14
Stock=3
Level=1

An accepted answer would be: 2Chips3Eggs

Visit problem.php to request a new problem.
Send your answers to answer.php?answer=[answer] with the format NItemnameNItemname.
You need to solve 5 problems and your timelimit for each problem is 3 seconds.

Good Luck!
Credits
Thanks go out to XKCD, the author of http://xkcd.com/287/.
The comics there are a great inspiration.
© 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 and 2024 by Gizmore