harshit23897's blog

By harshit23897, history, 4 years ago, In English

Hello Codeforces community, I was solving Codeforces Round450 Problem C. I wrote code after understanding the editorial but I am not able to pass test case #26. I tried various test cases but I am getting right answer on all those. Can anyone help me in debugging the solution?

Problem Link

Submission Link --> 33190872

Read more »

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By harshit23897, history, 4 years ago, In English

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.

Read more »

Tags spoj, dp
 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it