SPOJ — MIXTURES

Revision en1, by harshit23897, 2017-05-13 18:59:38

I was solving the problem on SPOJ — http://www.spoj.com/problems/MIXTURES/ and I came out with this approach — http://ideone.com/e.js/QWmLXf. This gives correct solution on few cases and otherwise incorrect. Can somebody point out what is the problem in this code.

Tags spoj, dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English harshit23897 2017-05-13 18:59:38 291 Initial revision (published)