传送门
解析详见julao博客连接worldframe.top/2017/05/10/清单数学方法——矩阵/
——代码
1 #include <cstdio> 2 #include <cstring> 3 #define LL long long 4 5 LL n; 6 const int p = 1e9 + 7; 7 8 struct Matrix 9 15 }; 16 17 inline Matrix operator * (const Matrix x, const Matrix y) 18 27 28 inline int pow(LL x) 29 39 return ans.a[0][0]; 40 } 41 42 int main() 43View Code
上一篇:分块来水题
下一篇:[TyvjP1050] 最长公共子序列(DP)
DP 矩阵









