<br />#include<stdio.h>
int a[5][5]={{0,0,0,0,0},{0,0,1,1,0},{1,0,0,1,0},{0,0,1,0,1},{1,0,0,0,0}};
int b[5][5]={{1,0,0,0,0},{0,1,0,0,0},{0,0,1,0,0},{0,0,0,1,0},{0,0,0,0,1}};
int c[5][5]={0};//每次都乘以C[][]
int e[5][5]={0};//存放(A+I)的n次方的结果,用于与(A+I)的n+1次方