POJ 3233 Matrix Power Series 矩阵快速幂
摘要:
if(n%2==0)s(n)=s(n/2)+s(n/2)*A^(n/2)else s(n)=s((n-1)/2)+s((n-1)/2)*A^((n-1)/2) + A^n。//#pragma comment(linker, "/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;typedef long lo 阅读全文
posted @ 2013-10-20 00:02 BMan、 阅读(185) 评论(0) 推荐(0) 编辑