文章
68
粉丝
691
获赞
26
访问
578.3k
#define ll int
#define vec vector<ll>
#define inf 0x3f3f3f3f
#define MAX 200005
#define P pair<ll,ll>
#define MOD 100000
struct mat {
long long arr[25][25], col, row;
mat(int m = 0, int n = 0, int k = 0) {
for (int i = 0; i < m; i++)
for (int j = 0; j < n; j++)
arr[i][j] = 0;
row = m, col = n;
if (k == 1)
for (int i = 0; i < m; i++)arr[i][i] = 1;
}
mat operator*(mat m) {
int r = row, l = m.col, t = col;
mat res(r, l);
for (int i = 0; i < r; i++)
for (int j = 0; j < col; j++)
...
登录后发布评论
暂无评论,来抢沙发