文章分类 -  acm数论-矩阵快速幂

hdu3306 矩阵快速幂
摘要:1 #include 2 #include 3 #define MOD 10007 4 int main() 5 { 6 int n,x,y,i,j,k,doit[5][5],temp[5][5],a[5][2]; 7 while (~scanf("%d%d%d",&n,&x,&y... 阅读全文

posted @ 2014-07-22 16:10 xiao_xin 阅读(125) 评论(0) 推荐(0)

hdu2276 快速矩阵幂
摘要:1 #include 2 #include 3 char s[105]; 4 int ans[105],temp[105],temp1[105][105],a[105][105]; 5 int main() 6 { 7 int i,j,k,n,m; 8 while (~scanf(... 阅读全文

posted @ 2014-07-16 15:01 xiao_xin 阅读(101) 评论(0) 推荐(0)

导航