您当前的位置: 首页 >  矩阵

[Acwing] 1304. 佳佳的斐波那契 推导矩阵 + 矩阵快速幂

*DDL_GzmBlog 发布时间:2022-04-05 13:37:47 ,浏览量:4

前言

传送门 :

思路

在这里插入图片描述

思路来自 : 彩色铅笔 ,

写的很好,我就不做什么补充了

Mycode
#include 
#include 

using namespace std;

typedef long long LL;

const int N = 4;

int n, m;

void mul(int a[][N], int b[][N], int c[][N]) {
    static int t[N][N];
    memset(t, 0, sizeof t);
    for (int i = 0; i             
关注
打赏
1688896170
查看更多评论
0.0472s