请大佬们狠狠的砸我铃铛,谢谢awa
by under_hole @ 2024-07-29 08:55:02
@[lcfollower](/user/1296826) 这里手误了QAQ
但是我问的是最上面那份代码里的快读:
(粘到这吧)
```cpp
inline char gc(){
static char buf[1<<16],*p1=buf,*p2=buf;
if(p1==p2)p2=(p1=buf)+fread(buf,1,1<<16,stdin);if(p1==p2)return EOF;
return *p1++;
}
template<typename _Tp>
inline void fastread(_Tp &x){
x=0;char c=gc();
while(!isdigit(c))c=gc();
while(isdigit(c))x=x*10-48+c,c=gc();
return;
}
```
by under_hole @ 2024-07-29 09:00:40
@[under_hole](/user/1291460) 你的gc函数有问题,建议直接删了换成getchar,没必要手写
by gogei @ 2024-07-29 09:08:56
@[gogei](/user/558202) 好的
by under_hole @ 2024-07-29 09:26:21