Rosetta Problems
← 問題一覧に戻る
線形漸化式の連続する項
線形漸化式と初項が与えられ、第
K
K
K
項から
M
M
M
個の連続する項を求める。
関連リンク
yosupo/consecutive_terms_of_linear_recurrent_sequence