![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
大数的计算
暮光乐鱼
这个作者很懒,什么都没留下…
展开
-
hdu 1042 N!
本题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1042 AC代码: #include #include int str[110000]; int main() { int n,i,j,k,count,temp; while(scanf("%d",&n)!=EOF) { memset(str,0,sizeof(原创 2015-07-27 17:25:47 · 345 阅读 · 0 评论 -
hdu 1002 A + B Problem II
本题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002 本题主要是运用大数算法,即采用数组来模拟,AC代码: #include #include #define MAX_LEN 1000 char line1[MAX_LEN+10]; char line2[MAX_LEN+10]; int an1[MAX_LEN+10]; int a原创 2015-07-27 16:03:01 · 330 阅读 · 0 评论 -
hdu 1865 1sting
本题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1865 本题是大数相加问题,AC代码: #include #include int a[220][300]; void add(int n) { int i,j,k; a[0][0]=1; a[1][0]=2; for(i=2;i<n;i++) { k=0;原创 2015-07-31 08:38:38 · 413 阅读 · 0 评论