随笔分类 -  大数

摘要:Problem Description A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1.F(1) = 阅读全文
posted @ 2016-07-30 15:35 Wally的博客 阅读(150) 评论(0) 推荐(0)
摘要:1.字符串结题(不会超内存,但是代码较长) http://acm.hdu.edu.cn/showproblem.php?pid=1250 1 #include <iostream> 2 #include <cstdio> 3 #include <vector> 4 #include <algorit 阅读全文
posted @ 2016-07-12 15:58 Wally的博客 阅读(217) 评论(0) 推荐(0)
摘要: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的博客 阅读(382) 评论(0) 推荐(0)
摘要:这个题有两个知识点: 1.数值型高精度 2.补零操作(重点) 阅读全文
posted @ 2016-03-10 20:21 Wally的博客 阅读(109) 评论(0) 推荐(0)