学长推荐
游戏制作
杂物间
友链
画图工具
卡哈希
快读快写
C++static char buf[100005],*p1=buf,*p2=buf,obuf[100005],*p3=obuf;
inline char nc(){return p1==p2&&(p2=(p1=buf)+fread(buf,1,100005,stdin),p1==p2)? EOF:*p1++;}
inline void pc(char x){p3-obuf<100000? (*p3++=x):(fwrite(obuf,p3-obuf,1,stdout),p3=obuf,*p3++=x);}
int read(){
int res=0,f=0;
char ch=nc();
while(ch<'0'||ch>'9') f|=ch=='-',ch=nc();
while(ch>='0'&&ch<='9') res=(res<<1)+(res<<3)+(ch^48),ch=nc();
return f? ~res+1:res;
}
inline void write(int x){
if(x<0) x=~x+1,pc('-');
if(x>9) write(x/10);
pc(x%10+48);
}
fwrite(obuf,p3-obuf,1,stdout);