矩阵
ZZZ19880423
including
展开
-
Recursive sequence
https://vjudge.net/contest/242514#problem/A f[n+1]=2*f[n-1]+f[n]+(n+1)^4; (n+1)^4=n^4+4*n^3+6*n^2+4*n+1; f[n+1]=2*f[n-1]+f[n]+n^4+4*n^3+6*n^2+4*n+n^0; 构造矩阵 #include<stdio.h> #include&...原创 2018-08-09 17:51:11 · 324 阅读 · 0 评论 -
Sequence
http://acm.hdu.edu.cn/showproblem.php?pid=6395 给你A , B , C , D , P , n得值求Fn; 矩阵快速幂 构造矩阵 分块求 #include<stdio.h> #include<string> #include<string.h> #include<iostre...原创 2018-08-14 17:27:51 · 182 阅读 · 0 评论