Блог пользователя harshit23897

Автор harshit23897, история, 6 лет назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор harshit23897, история, 7 лет назад, По-английски

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.

Полный текст и комментарии »

Теги spoj, dp
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится