
大整数
文章平均质量分 59
Polya_Xue
这个作者很懒,什么都没留下…
展开
-
hdu1753(大小数相加)
99999.889 0.1111000.0 10000.0112233.1 333.9123450000 777123400000 777.7000.000 0.000099999 11.2333 20.26671212121212.1111111 21212121.33300000000000000#include #include #incl原创 2017-07-16 23:40:11 · 269 阅读 · 0 评论 -
大整数相乘
以hdu1042为题目我一开始写的时候用一个数组记录这些数字,但是量太大。。?代码差不多但是运行不了这个倒是不怕超时了//// main.cpp// 5.2//// Created by Mr.Xue on 17/7/15.// Copyright © 2017年 Mr.Xue. All rights reserved./转载 2017-07-15 12:29:28 · 192 阅读 · 0 评论 -
大整数加法
这道题以hdu1002为题意#include #include #define N 1010int main(){ int n,lena,l,i,j,flag; char a[3][N]; int a1[N]={0}; int a2[N]; scanf("%d",&n);转载 2017-07-15 10:14:39 · 197 阅读 · 0 评论 -
Fibonacci数列(string大整数)
这个数列还是挺好理解的,只是相加的时候使用大整数相加比较麻烦,用string方便一些在sum函数中我定义一个新的string作为相加后的结果输出然而不行,新定义的string奇怪的只有一个字符可以使用,在我的理解中就是作为变量带过去的string像很多层的瓶子然而新定义的string就像一个只有一层的瓶子,这样的结果那肯定是我对string理解不够,不过上网查也没说如何定义一个很多层的空瓶子原创 2017-07-14 16:32:06 · 351 阅读 · 0 评论 -
大整数乘法
#include #include #include #include #include #define imax 1000005using namespace std;int an,bn,A[imax],B[imax];int result[imax];char a[imax],b[imax];void multiLargeNum(int* A, int*原创 2017-09-11 18:06:30 · 271 阅读 · 0 评论