高精度指数运算实现
直接上代码:
#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::vector<int> add;
string strs="";//目标字符串
vector<vector<int> > ve;//初始大小计算0位数字 终端一次只能输入4096字符
if(a.length() < b.length())a.swap(b); //可以减少乘运算使用的空间
int len1 = a.length(),len2 = b.length();
for(int i=len1-1;i>-