摘要: 原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2604 矩阵乘法,得到递推公式,构造系数矩阵,然后进行快速幂。 View Code 1 #include <stdio.h> 2 #include <string.h> 3 4 int L, M; 5 6 struct mat 7 { 8 int m[4][4]; 9 mat()10 {memset(m, 0, sizeof m);}11 12 void init()13 {14 memset(m, 0, sizeof m... 阅读全文
posted @ 2012-12-28 19:41 芒果布丁 阅读(202) 评论(0) 推荐(0)