![](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 DescriptionI 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原创 2013-04-03 18:28:08 · 1107 阅读 · 0 评论 -
poj2389——Bull Math
原题:DescriptionBulls 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 · 1066 阅读 · 0 评论 -
高精度之——模板
唉,高精度前前后后加起来忙活了一整天,累啊、疲啊、乏啊。。。。 但为了AC事业,还是值了。。。。 #include #include #include #include #include #include #include #include #include #include #include #include #include #inc原创 2013-04-05 18:37:10 · 878 阅读 · 0 评论 -
高精度之求N!
原题:求数的阶乘。分析:用数组存单个数字。原码: #include#include#define N 3000int 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 · 1948 阅读 · 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 · 1143 阅读 · 0 评论 -
SGU112-a^b-b^a (BigNum)
You are given natural numbers a and b. Find ab-ba.InputInput contains numbers a and b (1≤a,b≤100). OutputWrite answer to output. Sample Input2 3Sample Output-1 分析原创 2013-11-26 08:22:40 · 1417 阅读 · 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 · 2018 阅读 · 0 评论