hdu 4686 Arc of Dream
摘要:
矩阵快速幂:1,A0%N,B0%N,A0*B0%N,A0*B0%N; 1,AY%N,BY%N,AY*BY%N,AY*BY%N; AX%N, 0,AX*BY%N,AX*BY%N; BX%N,BX*AY%N,BX*AY%N; AX*BX%N,AX*BX%N; 1; #include #include #define N 1000000007#define LL long longstruct matrix{ LL num[5][5];};matrix p,m,q;matrix cal(matrix x,matrix y){ for(int i=0; i... 阅读全文
posted @ 2013-09-26 22:55 新一 阅读(190) 评论(0) 推荐(0)
浙公网安备 33010602011771号