高精度指数运算
高精度指数运算实现
实现指数运算先必须实现乘法,链接:
直接上代码:
#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 评论