inline void in(int &res)
{
char c;
while((c=getchar())<'0'||c>'9');
res=c-'0';
while((c=getchar())>='0'&&c<='9')
res=res*10+c-'0';
}
inline void out(int x)
{
if(x>9) out(x/10);
putchar(x%10+'0');
}
输入输出挂
最新推荐文章于 2021-02-21 15:21:05 发布
inline void in(int &res)
{
char c;
while((c=getchar())<'0'||c>'9');
res=c-'0';
while((c=getchar())>='0'&&c<='9')
res=res*10+c-'0';
}
inline void out(int x)
{
if(x>9) out(x/10);
putchar(x%10+'0');
}