快速输入函数A
发布时间
阅读量:
阅读量
两个基础的大数据操作代码模板,可实现快速读取数据
inline ll read()
{
char ch;ll x=0;bool f=true;
for(ch=getchar();!isdigit(ch);ch=getchar())if(ch=='-')f^=f;
for(;isdigit(ch);ch=getchar())x=(x<<3)+(x<<1)+ch-48;
return f?x:-x;
}
请提供需要改写的文本内容。
void wr(ll x){
if(x<0)putchar('-'),x=-x;
if(x>9)wr(x/10);
putchar(x%10+48);
}
全部评论 (0)
还没有任何评论哟~
