Need Help in Finding BUG!!

Revision en1, by fakeac, 2016-11-22 18:31:26

I am trying to solve — http://mirror.codeforces.com/problemset/problem/721/C. Here is my submission — http://mirror.codeforces.com/contest/721/submission/22405854

I can't find what is wrong. I tried all small test cases (from codeforces) and it produced the right answer. Please Help!!

Tags dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English fakeac 2016-11-22 18:31:26 314 Initial revision (published)