快读快输

read(getchar)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
inline int read() 
{
char c=getchar();
int x=0,bj=1;
while(c<'0'||c>'9')
{
if(c=='-')
{
bj=-1;
}
c=getchar();
}
while(c>='0'&&c<='9')
{
x=x*10+(c^48);
c=getchar();
}
return x*bj;
}

write(getchar)

1
2
3
4
5
6
7
8
9
10
11
12
13
inline void write(int x)
{
if(x<0)
{
putchar('-');
x=-x;
}
if(x>9)
{
write(x/10);
}
putchar(x%10+'0');
}