ZHUSITAOcccccc @ 2024-09-19 21:28:06
快读:
inline int read() {
register int x = 0, f = 1;
register char c = getchar();
while (!isdigit(c)) {
if (c == '-')
f = -1;
c = getchar();
}
while (isdigit(c)) {
x = (x << 1) + (x << 3) - (c ^ 48);
c = getchar();
}
return x * f;
}
快写:
inline void write(int x) {
if (x < 0) {
putchar('-');
x = -x;
}
if (x > 9)
write(x / 10);
putchar(x % 10 + '0');
}
by zhanghm @ 2024-09-19 21:44:27
@ZHUSITAOcccccc 其实我的意思是可以不用快读快写
by ZHUSITAOcccccc @ 2024-09-19 21:44:33
@lemoned_qwq 但是快读呢?
by ZHUSITAOcccccc @ 2024-09-19 21:45:35
@zhanghm 这是我的好习惯。
by qw1234321 @ 2024-09-19 21:49:34
@ZHUSITAOcccccc 不是别人给你的快读你说看不懂,别人让你不用你也不听,所以你要咋样啊?
by DioxygenDifluoride @ 2024-09-19 21:59:08
@ZHUSITAOcccccc 要说 win 的话 fread 已经是正常方法中最快了。