2013年6月22日

hdoj 1575 Tr A

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1575解题思路:矩阵快速幂 1 #include 2 using namespace std; 3 4 int n; //nxn矩阵 5 6 struct Matrix{ 7 int a[10][10]; 8 }origin,res; 9 10 Matrix multiply(Matrix x,Matrix y){11 Matrix temp;12 for(int i=0;i>=1;26 origin=multiply(origin,origin);27... 阅读全文

posted @ 2013-06-22 13:53 SCNU20102200088 阅读(235) 评论(0) 推荐(0) 编辑

导航