A - Number Sequence(矩阵快速幂或者找周期)
摘要:
Description A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, and n, you are to cal 阅读全文
posted @ 2015-11-05 18:32 张明明_1 阅读(251) 评论(0) 推荐(0) 编辑