needed help in problem candies from atcoder educational dp contest

Правка en1, от hars123, 2019-01-17 14:02:19

I am finding it difficult to find the relation for transition from one state to another. i.e. if dp[i][j] represents no of ways of distributing j candies among positions [1,i]. Can someone explain what should i think to find that transition. Or i am just unable to observe the pattern.

Теги #dynamic-programming

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский hars123 2019-01-17 14:02:19 351 Initial revision (published)