
大数
大数
xlx_llew
身为一个高冷的人,不需要简述。
展开
-
hdu 1042 N!(万进制)
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. Sample Input1 2 3 Sample...原创 2018-05-30 21:15:56 · 246 阅读 · 0 评论 -
hdu 1715 大菲波数
Problem DescriptionFibonacci数列,定义如下:f(1)=f(2)=1f(n)=f(n-1)+f(n-2) n>=3。计算第n项Fibonacci数值。 Input输入第一行为一个整数N,接下来N行为整数Pi(1<=Pi<=1000)。 Output输出为N行,每行为对应的f(Pi)。 Sample Input51 2 3 4 5 Sample Outpu...原创 2018-05-31 20:24:26 · 259 阅读 · 0 评论 -
hdu 1753 大明A+B
Problem Description话说,经过了漫长的一个多月,小明已经成长了许多,所以他改了一个名字叫“大明”。这时他已经不是那个只会做100以内加法的那个“小明”了,现在他甚至会任意长度的正小数的加法。现在,给你两个正的小数A和B,你的任务是代表大明计算出A+B的值。 Input本题目包含多组测试数据,请处理到文件结束。每一组测试数据在一行里面包含两个长度不大于400的正小数A和B。 Out...原创 2018-05-31 21:52:33 · 316 阅读 · 0 评论 -
Exponentiation hdu 1063
Problem DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for man...原创 2018-07-16 09:36:40 · 386 阅读 · 0 评论