快速幂
YCQ_Lancet
骐骥一跃,不能十步,驽马十驾,功在不舍
展开
-
Fibonacci POJ - 3070 矩阵快速幂
In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n ≥ 2. For example, the first ten terms of the Fibonacci sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, … An alter原创 2017-06-28 18:37:02 · 272 阅读 · 0 评论 -
E. Okabe and El Psy Kongroo(递推+矩阵快速幂)
E. Okabe and El Psy Kongroo time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Okabe likes to take walks but knows that原创 2017-06-29 10:15:47 · 413 阅读 · 0 评论