摘要: Description 菲波那契数大家可能都已经很熟悉了: f(1)=0 f(2)=1 f(n)=f(n-1)+f(n-2) n>2 因此,当需要其除以某个数的余数时,不妨加一些处理就可以得到。 Description Description 菲波那契数大家可能都已经很熟悉了: f(1)=0 f(2 阅读全文
posted @ 2016-04-22 23:21 Wally的博客 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 1.http://acm.nefu.edu.cn/JudgeOnline/problemShow.php?problem_id=1142 1 #include <iostream> 2 3 using namespace std; 4 5 int main() 6 { 7 long long sum 阅读全文
posted @ 2016-04-22 11:39 Wally的博客 阅读(735) 评论(0) 推荐(0) 编辑