一些链接
快读快写
int read(){
char cnt;
int x=0,k=1;
while(cnt<'0'||cnt>'9'){
if(cnt=='-')k=-1;
cnt=getchar();
}
while(cnt>='0'&&cnt<='9'){
x=x*10+cnt-'0';
cnt=getchar();
}
return x*k;
}
void write(int x){
if(x<0)putchar('-'),x=-x;
if(x>9)write(x/10);
putchar(x%10+'0');
return;
}