Codeforce 1182 E. Product Oriented Recurrence(递推 + 矩阵快速幂 + 欧拉降幂)
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
ll a[5][5],tmp[5][5],c[5][5],ans[5][5];
ll b1[5][5],b2[5][5],b3[5][5];
ll n,f1,f2,f3,C;
void mul(ll a[...
原创
2019-09-04 08:48:47 ·
183 阅读 ·
0 评论