摘要: 分解 题目链接:http://www.51nod.com/contest/problem.html#!problemId=1537 矩阵快速幂 找规律可知,一定存在m,满足(1+sqrt(2)) ^n=sqrt(m) +sqrt(m-1),但是该如何找到这个m呢?注意到n的范围是1e18,所以只能是 阅读全文
posted @ 2016-08-27 17:47 barriery 阅读(167) 评论(0) 推荐(0)