How to derive this formula for this atcoder problem.

Правка en1, от spirited_away_, 2019-08-05 05:02:10

Why is the answer to this problem always ( N + K — 3) / (K — 1).

Can anyone please help me. editorial is not clear.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский spirited_away_ 2019-08-05 05:02:10 236 Initial revision (published)