![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java BIgInteger
codertcm
这个作者很懒,什么都没留下…
展开
-
Exponentiation
Problemsinvolvingthecomputationofexactvaluesofverylargemagnitudeandprecisionarecommon. For example, the computation of the national debt is a taxing experience for many computer systems. This problem ...原创 2018-07-23 23:26:15 · 147 阅读 · 0 评论 -
Product
The problem is to multiply two integers X, Y . (0 ≤ X,Y < 10250)InputThe input will consist of a set of pairs of lines. Each line in pair contains one multiplyer.OutputFor each input pair of li...原创 2018-07-23 23:09:54 · 150 阅读 · 0 评论 -
Integer Inquiry
One of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers. “Thissupercomput...原创 2018-07-23 23:07:25 · 353 阅读 · 0 评论 -
Train Problem II
As we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing order, how many orders that all the trains can get out of the railwa...原创 2018-07-25 20:01:34 · 258 阅读 · 0 评论 -
hdu 6222 Heron and His Triangle
A triangle is a Heron’s triangle if it satisfies that the side lengths of it are consecutive integers t−1, t, t+ 1 and thatits area is an integer. Now, for given n you need to find a Heron’s triangle ...原创 2018-10-05 21:02:20 · 225 阅读 · 0 评论 -
用Java实现排列、组合算法
1、我们知道,排列个数的计算公式如下:组合个数的计算公式如下:那么,计算排列或组合的数量,通过上面的公式就很容易就算出来了,其Java的实现如下:/** * 计算阶乘数,即n! = n * (n-1) * ... * 2 * 1 * @param n * @return */ private static long factorial(int n) { r...转载 2018-10-17 22:59:46 · 5147 阅读 · 1 评论