思路 #include <bits/stdc++.h> using namespace std; typedef long long ll; struct mat{ int r, c; ll a[5][5]; mat(){ memset(a, 0, sizeof(a)); } void clear(){ memset(a, 0, sizeof(a)); } }; ll f[5]; ll n, m; mat mul(mat A, mat B, ll mod){ mat C; C.r = ...