#include<iostream> #include<vector> using namespace std; //矩阵快速幂 class Matrix{ public: int row,col; vector<vector<int>> datas; Matrix(int row,int col):row(row),col(col),datas(row,vector<int>(col,0)){ } }; Matrix mul(Matrix a,Matrix b){ i...