Why my recursion wrong!!

Правка en2, от d3mon95, 2017-01-03 21:14:05

Hey amigos, I cannot understand the problem behind my recursion for the question BOTTLES (http://codeforces.net/problemset/problem/730/J) and here is my code(http://codeforces.net/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.

Теги help, dp, recursion

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский d3mon95 2017-01-03 21:14:05 81
en1 Английский d3mon95 2017-01-03 21:13:02 277 Initial revision (published)