正文
增加 7 行删除 0 行
15 行未改动16171819202122234 行未改动15 行未改动}return b;}matrix operator^(const long long& x) const{if(x==1) return *this;matrix b=*this^(x>>1);b=b*b;if(x&1) b=b**this;4 行未改动15 行未改动1617181920212223242526272829304 行未改动15 行未改动}return b;}matrix operator^(const long long& x) const{if(x==0){matrix b(h,w);for(int i=1;i<=h;++i){b.a[i][i]=1;}return b;}if(x==1) return *this;matrix b=*this^(x>>1);b=b*b;if(x&1) b=b**this;4 行未改动