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
Solution : [CF595E] By Elevator or Stairs?
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