Dynamic Programming

www.spoj.com/problems/MKBUDGET