摘要: P1939 矩阵加速 已知一个数列 \(a\),它满足: \[a_x= \begin{cases} 1 & x \in\{1,2,3\}\\ a_{x-1}+a_{x-3} & x \geq 4 \end{cases} \]求 \(a\) 数列的第 \(n\) 项对 \(10^9+7\) 取余的值。 阅读全文
posted @ 2024-09-30 21:13 wyl123ly 阅读(15) 评论(0) 推荐(0)