快读快输
快读&快输¶
快速读入数字
#define rd read()
inline int read(){
int xx=0,ff=1;
char ch=getchar();
while(ch<'0'||ch>'9') {if(ch=='-') ff=-1;ch=getchar();}
while(ch>='0'&&ch<='9') xx=xx*10+(ch-'0'),ch=getchar();
return xx*ff;
}
inline void write(int out){
if(out<0) putchar('-'),out=-out;
if(out>9) write(out/10);
putchar(out%10+'0');
}
#define rd read()
long long read(){
long long x=0;char ch=getchar();
while(ch!=' '||ch!='\n')ch=getchar(),x=x*10+ch-'0';
return x;
}
快速输出
printf(); //就差不多了