HDU1005Number Sequence
题目:思路来源Problem DescriptionA 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 calculate the value of f(n).InputThe input
转载
2017-11-21 11:59:52 ·
172 阅读 ·
0 评论