__int128

· · 算法·理论

template <typename _Tp> inline void read(_Tp&x) {//输入
    char ch;bool flag=0;x=0;
    while(ch=getchar(),!isdigit(ch)) if(ch=='-')flag=1;
    while(isdigit(ch)) x=x*10+ch-'0',ch=getchar();
    if(flag) x=-x;
}
inline void print(__int128 x) {//输出
    if(x<0) {x=-x;putchar('-');}
    if(x>9) print(x/10);
    putchar(x%10+'0');
}