![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
高精度
@ma~
这个作者很懒,什么都没留下…
展开
-
高精度指数运算
高精度指数运算实现 实现指数运算先必须实现乘法,链接: 直接上代码: #include <bits/stdc++.h>//高精度pow函数原创 克服long long精度局限 #define f(x,y) (a[x]-'0')*(b[y]-'0')//定义函数 std::string to_string(int n); std::string fun(std::string a,std::string b)//高精度乘法实现 { using namespace std; std::ve原创 2021-04-02 23:50:53 · 345 阅读 · 0 评论 -
高精度乘法实现
高精度乘法实现 思路 : #include <bits/stdc++.h>//高精度乘 #define f(x,y) (a[x]-'0')*(b[y]-'0') std::vector<int> add; int meout=0; int main() { using namespace std; vector<vector<int> > ve;//初始大小0位 string a,b;//时间复杂度为O(n*m)n 和 m是数字位数 cin >&原创 2021-04-02 23:43:16 · 147 阅读 · 0 评论