摘要:
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 // 矩阵的STL实现 7 typedef vector vec; 8 typedef vector mat; 9 typedef long long ll; 10 const int MOD = 10000; 11 // 矩阵乘法 ... 阅读全文
posted @ 2016-08-31 23:29
Yan_Bin
阅读(226)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 const int maxn = 100; 4 typedef struct{ 5 long long Mat[maxn][maxn]; 6 }MAT; 7 long long MOD,d; // d是方阵的行数或者列数 8 // 方阵的乘法,模MOD 9 MAT mul(MAT a,MAT b){ 10 MAT c;... 阅读全文
posted @ 2016-08-31 23:24
Yan_Bin
阅读(192)
评论(0)
推荐(0)
摘要:
10870 RecurrencesConsider recurrent functions of the following form:f(n) = a1f(n 1) + a2f(n 2) + a3f(n 3) + : : : + adf(n d); for n > d;wh 阅读全文
posted @ 2016-08-31 01:03
Yan_Bin
阅读(416)
评论(0)
推荐(0)
摘要:
1 #include 2 #include 3 #include 4 const int maxn = 100; 5 typedef double Matrix[maxn][maxn]; 6 // 要求系数矩阵可逆 7 // 这里A是增广矩阵,A[i][n]表示第i个方程右边的常数bi 8 // 运行结束后A[i][n]是第i个未知数的值 9 void gauss_eli... 阅读全文
posted @ 2016-08-31 00:23
Yan_Bin
阅读(120)
评论(0)
推荐(0)