![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
大数
pupil_blue
这个作者很懒,什么都没留下…
展开
-
HDOJ-----1715大斐波那契数
Problem DescriptionFibonacci数列,定义如下:f(1)=f(2)=1f(n)=f(n-1)+f(n-2) n>=3。计算第n项Fibonacci数值。 Input输入第一行为一个整数N,接下来N行为整数Pi(1 Output输出为N行,每行为对应的f(Pi)。 Sample Input51原创 2016-07-18 17:12:18 · 208 阅读 · 0 评论 -
HDOJ-----1042阶乘
Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, output N! in one line.原创 2016-07-18 20:45:04 · 280 阅读 · 0 评论