摘要: #include #include #include #include using namespace std; typedef long long ll; const int N = 4; int Mod; int msize; struct Mat { int mat[N][N]; }; Mat operator *(Mat a, Mat b) { Mat c... 阅读全文
posted @ 2017-07-31 14:43 Pacify 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ( a^(n-1) + b^(n-1) ) * ( a + b ) = a^n + a^(n-1) * b + a * b^(n-1) + b^n a^n + b^n = p * ( a^(n-1) + b^(n-1) ) - q * ( a^(n-2) + b^(n-2) ) F(n) = p * 阅读全文
posted @ 2017-07-31 11:45 Pacify 阅读(176) 评论(0) 推荐(0) 编辑