这里是快读快输的模板,就提供给你了:
long long read() {
char c;
bool isf = 0;
while (!isdigit(c = getchar())) {
isf = (c == '-');
}
__int128 res = (c ^ 48);
while (isdigit(c = getchar())) {
res = (res << 3) + (res << 1) + (c ^ 48);
}
return isf ? -res : res;
}
void write(long long x) {
if (x < 0) {
putchar('-'), x = -x;
}
if (x >= 10) {
write(x / 10);
}
putchar('0' + x % 10);
}