![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BigNums
文章平均质量分 59
bingsanchun
这个作者很懒,什么都没留下…
展开
-
hdu1002——A + B Problem II
原题: Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contains an integer原创 2013-04-03 18:28:08 · 1102 阅读 · 0 评论 -
poj2389——Bull Math
原题: Description Bulls are so much better at math than the cows. They can multiply huge integers together and get perfectly precise answers ... or so they say. Farmer John wonders if their answers ar原创 2013-04-04 11:53:25 · 1057 阅读 · 0 评论 -
高精度之——模板
唉,高精度前前后后加起来忙活了一整天,累啊、疲啊、乏啊。。。。 但为了AC事业,还是值了。。。。 #include #include #include #include #include #include #include #include #include #include #include #include #include #inc原创 2013-04-05 18:37:10 · 873 阅读 · 0 评论 -
高精度之求N!
原题: 求数的阶乘。 分析: 用数组存单个数字。 原码: #include #include #define N 3000 int f[N]; int main() { int i,j,n; scanf("%d",&n); memset(f,0,sizeof(f)); f[0]=1; for(i=2; i<=n; i++) {原创 2013-04-05 11:47:10 · 1943 阅读 · 0 评论 -
2013 Multi-University Training Contest 1——I-number
题目描述 The I-number of x is defined to be an integer y, which satisfied the the conditions below: 1. y>x; 2. the sum of each digit of y(under base 10) is the multiple of 10; 3. among all integers原创 2013-08-10 09:36:36 · 1139 阅读 · 0 评论 -
SGU112-a^b-b^a (BigNum)
You are given natural numbers a and b. Find ab-ba. Input Input contains numbers a and b (1≤a,b≤100). Output Write answer to output. Sample Input 2 3 Sample Output -1 分析原创 2013-11-26 08:22:40 · 1411 阅读 · 0 评论 -
Java大数处理
Ⅰ基本函数: 1.valueOf(parament); 将参数转换为制定的类型 比如 int a=3; BigInteger b=BigInteger.valueOf(a); 则b=3; String s=”12345”; BigInteger c=BigInteger.value原创 2013-11-25 22:31:32 · 1998 阅读 · 0 评论