摘要:
1 #include 2 #include 3 #include 4 #define MOD 7 5 #define N 2 6 using namespace std; 7 8 struct Matrix 9 { 10 long long v[N][N]; 11 }; 12 13 //矩阵间的乘法%m 14 Matrix matrix_mul(Matrix... 阅读全文
摘要:
1 //矩阵间的乘法%m 2 Matrix matrix_mul(Matrix A, Matrix B, long long m) 3 { 4 Matrix ans; 5 6 for (int i = 0; i >= 1; 31 } 32 return ans; 33 } 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #define MAXN 50010 5 using namespace std; 6 7 const int MIN = -1e9; 8 9 int main(void){ 10 int n, a[MAXN], vis[MAXN], len = 1; 11 scanf("%d",... 阅读全文