#include<bits/stdc++.h>
using namespace std;
#define N 1010
#define LL long long
#define fu(a,b,c) for(int a=b;a<=c;++a)
#define fd(a,b,c) for(int a=b;a>=c;--a)
const int Base=10000;
struct Big{
int len,w,t[N];
Big(){
len=w=1;memset(t,0,sizeof(t));}
}ans;
Big change(int a){
Big c;c.len=0;
if(a<0)c.w=-1;
a=abs(a);
while(a)c.t[++c.len]=a%Base,a/=Base;
return c;
}
void print(Big c){
if(c.w==-1)printf("-");
printf("%d",c.t[c.len]);
fd(i,c.len-1,1)printf("%04d",
【干货】高精度模板【加,减,乘,快速幂】
最新推荐文章于 2025-12-09 21:36:14 发布

最低0.47元/天 解锁文章
171万+

被折叠的 条评论
为什么被折叠?



