
大数
pupil_blue
这个作者很懒,什么都没留下…
展开
-
HDOJ-----1715大斐波那契数
Problem Description Fibonacci数列,定义如下: f(1)=f(2)=1 f(n)=f(n-1)+f(n-2) n>=3。 计算第n项Fibonacci数值。 Input 输入第一行为一个整数N,接下来N行为整数Pi(1 Output 输出为N行,每行为对应的f(Pi)。 Sample Input 5 1原创 2016-07-18 17:12:18 · 239 阅读 · 0 评论 -
HDOJ-----1042阶乘
Problem Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! Input One N in one line, process to the end of file. Output For each N, output N! in one line.原创 2016-07-18 20:45:04 · 305 阅读 · 0 评论