Please read the new rule regarding the restriction on the use of AI tools. ×

Problem R-Walk in dp contest atcoder

Revision en2, by Ahmed_Mahboub, 2020-11-19 13:30:23

I am trying to solve this problem but the dp solution would take O(n^2*k) in both approches top down and bottom up after some search I knew that the solution would be using matrix exponentialtion but I do not know what would be the transtion matrix for this problem https://atcoder.jp/contests/dp/tasks/dp_r

Tags #dp, #atcoder, #matrix, #matrix exponentialtion

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Ahmed_Mahboub 2020-11-19 13:30:23 4 Tiny change: 'xponential but I do ' -> 'xponentialtion but I do '
en1 English Ahmed_Mahboub 2020-11-19 13:29:36 342 Initial revision (published)