![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matrix
文章平均质量分 93
sdogsq
这个作者很懒,什么都没留下…
展开
-
Codeforces 392C Yet Another Number Sequence
题目链接:http://codeforces.com/problemset/problem/392/C题目简述:F1 = 1, F2 = 2, Fi = Fi - 1 + Fi - 2 (i > 2).We'll define a new number sequence Ai(k) by the formula:Ai(k) = Fi × ik (i ≥ 1).原创 2014-02-24 17:14:28 · 1133 阅读 · 0 评论 -
矩阵优化递推的总结(不定期更新,最后更新20140321)
定义矩阵:struct Matrix{ LL a[MAX_K][MAX_K],n,m;//n行 m列 Matrix(int _n = 0,int _m = 0):n(_n),m(_m){rep(i,1,n)rep(j,1,m) a[i][j]=0;} void dw(int _n,int _m){n=_n,m=_m;rep(i,1,n)rep(j,1,m) a[i][j]=(i==j原创 2014-02-23 19:41:15 · 1983 阅读 · 0 评论