先是矩快吧
题先是两道模拟赛的矩阵快速幂优化dp
先开个坑等补
目前写法最好的:点击查看代码
#include<bits/stdc++.h>
#define int long long
using namespace std;
const int N=2005,M=105,inf=1e18,mod=1092…
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …