Dynamic Programming

www.spoj.com/problems/MIXTURES