问题有如下 3 个(如果对任意一个有了解的都可以浇浇我啊,非常感谢!!)
char buf[1 << 23], *p1 = buf, *p2 = buf;
#define getchar() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 23, stdin), p1 == p2) ? EOF : *p1++)
inline int read()
{
int res = 0;
bool f = 0;
char ch = getchar();
while (!isdigit(ch))
f |= (ch == '-'), ch = getchar();
while (isdigit(ch))
res = res * 10 + (ch ^ '0'), ch = getchar();
return f ? -res : res;
}
普通快读
inline int read()
{
int res = 0;
bool f = 0;
char ch = getchar();
while (!isdigit(ch))
f |= (ch == '-'), ch = getchar();
while (isdigit(ch))
res = res * 10 + (ch ^ '0'), ch = getchar();
return f ? -res : res;
}
最后补充,非常希望看到这条提问的你能不吝赐教,但如果你对你的回答并没有把握,烦请注明一下自己其实并不确定自己回答的正确性,防止误导我们(我&&其它看到这条提问的人),再次感谢!