Solution : [CF595E] By Elevator or Stairs?

Revision en1, by ce_amtic, 2019-10-29 12:49:28

Obviously,it's a DP problem,because this problem ask us to print the answers of all $$$k$$$ floors.

Let f[i][0] means the answer of floor $$$i$$$ ,and insure that

Tags dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English ce_amtic 2019-10-29 14:51:22 55
en3 English ce_amtic 2019-10-29 14:47:34 2 Tiny change: 'he code:\n```cpp\n' -> 'he code:\n\n```cpp\n'
en2 English ce_amtic 2019-10-29 14:42:26 1164 (published)
en1 English ce_amtic 2019-10-29 12:49:28 199 Initial revision (saved to drafts)