摘要:
1 #include 2 #include 3 using namespace std; 4 int n,f; 5 struct Matrix{ 6 long long v[105][105]; 7 }A,Ans; 8 Matrix operator *(Matrix A,Matrix B){ 9 Matrix C; 10 memset(C.v,0,si... 阅读全文
摘要:
#include #include #include #include using namespace std; int n; struct Matrix{ long long a,b,v[105][105]; }A,B; Matrix operator *(Matrix A,Matrix B){ Matrix C; for(int i=1;i<=n;i++){ ... 阅读全文
摘要:
1 #include 2 #include 3 #include 4 using namespace std; 5 int ans,n=1012,k; 6 int fastpower(int x,int y){//x^y%n 7 ans=1; 8 k=x%n; 9 while(y){ 10 if(y%2)//y是奇数 11 ... 阅读全文