
大数的计算
文章平均质量分 55
暮光乐鱼
这个作者很懒,什么都没留下…
展开
-
hdu 1042 N!
本题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1042AC代码:#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 · 367 阅读 · 0 评论 -
hdu 1002 A + B Problem II
本题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002本题主要是运用大数算法,即采用数组来模拟,AC代码:#include#include#define MAX_LEN 1000char line1[MAX_LEN+10];char line2[MAX_LEN+10];int an1[MAX_LEN+10];int a原创 2015-07-27 16:03:01 · 357 阅读 · 0 评论 -
hdu 1865 1sting
本题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1865本题是大数相加问题,AC代码:#include#includeint 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 · 438 阅读 · 0 评论