Why my recursion wrong!!

Revision en2, by d3mon95, 2017-01-03 21:14:05

Hey amigos, I cannot understand the problem behind my recursion for the question BOTTLES (http://codeforces.me/problemset/problem/730/J) and here is my code(http://codeforces.me/contest/730/submission/23522054), i have try to do a simple recursion, but i cannot understand why i get wrong answer at tet 7. Plz help guys.

Tags help, dp, recursion

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English d3mon95 2017-01-03 21:14:05 81
en1 English d3mon95 2017-01-03 21:13:02 277 Initial revision (published)