版本比较
yl-(疑似)矩阵快速幂
正文
增加 6 行删除 6 行
1234567895 行未改动151617181920212223105 行未改动全部展开129130131132133134135136137164 行未改动全部展开30230330430530630730830931049 行未改动36036136236336436536636736886 行未改动45545645745845946046146246338 行未改动---**Code,article,picture,Topic ideas**by [Luna_From_Starry](https://www.luogu.com.cn/user/910628#close)---# Part 0## Part 0-1 认识矩阵矩阵(数学)——二位数组(计算机)5 行未改动\begin{bmatrix}& a_{12} & a_{12} & {\cdots} & a_{n} \\& a_{21} & a_{22} & {\cdots} & a_{2n} \\& \vdots & \vdots & {\vdots} & \vdots \\& a_{m1} & a_{m2} & {\cdots} & a_{mn}\end{bmatrix}$$其中,\( a_{ij} \) 表示位于第i行第j列的元素,矩阵整体通常用大写字母(如A、B)表示[1](@ref)[3](@ref)。105 行未改动全部展开$$则$$k*A=\begin{bmatrix}1*k & 2*k \\ 3*k & 4*k\end{bmatrix}$$164 行未改动全部展开# Part-4 例题## Part-4-1 [P3390 【模板】矩阵快速幂](https://www.luogu.com.cn/problem/P3390)模版。```cpp49 行未改动}}return c;}};int n, k;Martix power(Martix A, int b){Martix ans(n);while(b){86 行未改动}}return c;}};int n, m, a1, a2;Martix power(Martix A, int b){Martix ans(2, 2);for(int i = 1; i <= 2; i++){38 行未改动1234567895 行未改动151617181920212223105 行未改动全部展开129130131132133134135136137164 行未改动全部展开30230330430530630730830931049 行未改动36036136236336436536636736886 行未改动45545645745845946046146246338 行未改动---**Code,article,picture,Topic ideas**by [Luna_From_Starry](https://www.luogu.com.cn/user/910628#close)---# Part 0## Part 0-1 认识矩阵矩阵(数学)——二位数组(计算机)5 行未改动\begin{bmatrix}& a_{12} & a_{12} & {\cdots} & a_{n} \\& a_{21} & a_{22} & {\cdots} & a_{2n} \\& \vdots & \vdots & {\vdots} & \vdots \\& a_{m1} & a_{m2} & {\cdots} & a_{mn}\end{bmatrix}$$其中,\( a_{ij} \) 表示位于第i行第j列的元素,矩阵整体通常用大写字母(如A、B)表示[1](@ref)[3](@ref)。105 行未改动全部展开$$则$$k*A=\begin{bmatrix}1*k & 2*k \\ 3*k & 4*k\end{bmatrix}$$164 行未改动全部展开# Part-4 例题## Part-4-1 [P3390 【模板】矩阵快速幂](https://www.luogu.com.cn/problem/P3390)模版。```cpp49 行未改动}}return c;}};int n, k;Martix power(Martix A, int b){Martix ans(n);while(b){86 行未改动}}return c;}};int n, m, a1, a2;Martix power(Martix A, int b){Martix ans(2, 2);for(int i = 1; i <= 2; i++){38 行未改动