![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
高精度
DoIdo~
这个作者很懒,什么都没留下…
展开
-
模板——高精度乘法
#include<string> #include<iostream> using namespace std; const int maxn = 1e6 + 10; int n, m; string s1, s2; int a[maxn], b[maxn], ans[maxn]; void Mul() { for (int i = n - 1, j = 1; i ...原创 2020-05-22 14:42:42 · 261 阅读 · 0 评论 -
模板——高精度减法
#include<string> #include<iostream> using namespace std; const int maxn = 1e6 + 10; int n, m; string s1, s2; int a[maxn], b[maxn], ans[maxn]; void Sub() { for (int i = n - 1, j = 1; i ...原创 2020-05-22 14:42:29 · 173 阅读 · 0 评论 -
模板——高精度加法
#include<string> #include<iostream> #include<algorithm> using namespace std; const int N = 1e6 + 10; int n, m, mx; string s1, s2; //字符串模拟 int a[N], b[N], ans[N]; //a为第一个数,b为第二个数,...原创 2020-05-22 14:42:08 · 219 阅读 · 0 评论