摘要:
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2157矩阵乘法。注意当k=0时 a 与 b 相等不相等的两种情况。数据好像有重边,重边只算一次就好。code:View Code 1 # include<stdio.h> 2 # include<string.h> 3 # include<stdlib.h> 4 # define MOD 1000 5 # define N 25 6 struct matrix{ 7 int map[N][N]; 8 }; 9 int n;10 matrix power(matr 阅读全文
posted @ 2012-05-08 10:54
奋斗青春
阅读(309)
评论(0)
推荐(0)
浙公网安备 33010602011771号