这个快写怎么了
  • 板块学术版
  • 楼主晴空一鹤
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/9/5 19:32
  • 上次更新2024/9/5 21:51:33
查看原帖
这个快写怎么了
158400
晴空一鹤楼主2024/9/5 19:32
#define SIZE (1<<20)
char in[SIZE],out[SIZE],*p1=in,*p2=in,*p3=out;
#define getchar() (p1==p2&&(p2=(p1=in)+fread(in,1,SIZE,stdin),p1==p2)?EOF:*p1++)
#define flush() (fwrite(p3=out,1,SIZE,stdout))
#define putchar(ch) (p3==out+SIZE&&flush(),*p3++=(ch))
class Flush{public:~Flush(){flush();}}_;   
template<typename type>
inline void rd(type &x)
{
x=0;bool flag(0);char ch=getchar();
while(!isdigit(ch)) flag^=ch=='-',ch=getchar();
while(isdigit(ch)) x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
flag?x=-x:0;
}
template<typename type>
inline void wr(type x)
{
static short Stack[50],top(0);
do Stack[++top]=x%10,x/=10;while(x);
while(top) putchar(Stack[top--]|48);
putchar(' ');
}

RT,UOJ上莫名多了一堆 \0\0

2024/9/5 19:32
加载中...