
大数
Stephencurry‘s csdn
这个作者很懒,什么都没留下…
展开
-
N! (HDU - 1042 )(大数+万进制)
N! (HDU - 1042 )(大数+万进制)Given 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 ...原创 2019-04-09 17:26:46 · 874 阅读 · 1 评论 -
G - 很麻煩的題 (hdu1250)
G - 很麻煩的題 (hdu1250)A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1.F(1) = 1, F(2) = 1, F(3) = 1,F(4) = 1, F(n>4) = F(...原创 2019-03-29 19:57:57 · 275 阅读 · 0 评论 -
A + B Problem II (HDU - 1002 )
A + B Problem II (HDU - 1002 )I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of the input contains an integer T(...原创 2019-05-11 21:07:13 · 374 阅读 · 0 评论 -
Java BigInteger类(大数综合模板)
有的时候当我们做一些关于大数的题目时,若要用C++的代码,可能过于冗长,而Java里有专门的BigInteger类来解决大数问题。首先Java的大数计算与其他的不同,下面给出解释 大数的加减运算不同于普通整数的加减乘除运算 加—— a+b: a=a.add(b); 减—— a-b: a=a.subtract(b); 乘—— a*b: a=a.multiply(b); 除—— a...原创 2019-08-16 17:06:54 · 694 阅读 · 0 评论 -
HDU-4762 Cut the Cake(大数,概率)
Cut the CakeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1748Accepted Submission(s): 859Problem DescriptionMMM got a big big big...原创 2019-08-16 17:24:07 · 376 阅读 · 0 评论