Can anyone tell me where is the bug in my logic

Правка en1, от charan2628, 2020-04-17 15:08:54

I'm solving this problem By Elevator or Stairs, here is my solution Submission it's failed on test 11, My solution is similar to this editorial solution.

I know I did somewhere wrong but can't able to find it, please take a look at my solution.

Thank you.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский charan2628 2020-04-17 15:08:54 459 Initial revision (published)