矩阵快速幂
板子:
#include <bits/stdc++.h>
using namespace std;
#define ll long long
const ll Mod = 1e9 + 7;
ll n, k;
struct matrix
{
ll m[105][105];
} a;
matrix x(matrix a, matrix b)
{
matrix t;
for (int i = 0; i < n; i++)
for (int j = 0; j
原创
2021-11-19 20:31:41 ·
413 阅读 ·
0 评论