快读:
inline int read()
{
int x = 0, f = 1;
char c;
while((c = getchar()) < '0' || c > '9') if(c == '-') f = -1;
while(x = (x << 3) + (x << 1) + (c ^ '0'), (c = getchar()) >= '0' && c <= '9') ;
return x * f;
}
快写:
//前面#define了 LL __int128
inline void write(LL x)
{
if(x == 0) {putchar('0'); return;}
int len = 0, c[10005]; LL k1 = x;
if(k1 < 0) k1 = -k1, putchar('-');
while(k1) c[len ++ ] = k1 % 10 + '0', k1 /= 10;
while(len -- ) putchar(c[len]);
putchar('\n'); //如果需要换行
}