1.乘法产生:qmul
2.qpow产生(并且qmul处理不了,采取_int128(max)
#include<bits/stdc++.h> #define int __int128 using namespace std; int read(){ int x=0,f=1;char ch=getchar();while(ch<'0'||ch>'9'){if(ch=='-') f=f*-1;ch=getchar();}while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}return x*f;} void write(int x){if(x>9) write(x/10);putchar(x%10+'0');} signed main () { unsigned long long a; a=read(); write(a); return 0; }
,结合快读快写使用
数据溢出考虑
最新推荐文章于 2022-12-25 11:12:22 发布