hdu5863 cjj's string game
矩阵快速幂
#include
using namespace std;
const int INF = 0x3f3f3f3f;
const int MOD = 1e9+7;
int N,M,K;
struct Matrix{
int a[25][25];
int n;
Matrix(int _n=0){
memset(a,0,sizeof(a));
n = _n;
}
Mat
原创
2016-08-21 11:28:43 ·
404 阅读 ·
0 评论