摘要: The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For e 阅读全文
posted @ 2017-09-03 20:14 Styx-ferryman 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 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 calculate the v 阅读全文
posted @ 2017-09-03 19:24 Styx-ferryman 阅读(184) 评论(0) 推荐(0) 编辑