
高精度模板
protecteyesight
我向往天空的湛蓝和一望无际。保护视力,只为看到更远的天空。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
高精度加法模板
高精度就是很长的大数 #include void add(char a[],char b[],char c[])//a+b=c { int i,e,d; int n,m; char temp; n=strlen(a); m=strlen(b); for(i=0; i<n/2; i++) { temp=a[i];原创 2017-04-03 21:51:19 · 445 阅读 · 0 评论 -
UVA 10106 Product (高精度乘法)
给你A,B,求A乘B。 A和B都有250位,那么结果最多500位,注意长度。 #include using namespace std; const int MAXN=9999; #define DLEN 4 const int NNN=1e4+10; class BigNum { private: int a[NNN]; int len; public: BigN原创 2017-11-13 17:12:12 · 292 阅读 · 0 评论