标签:== int har putchar bsp tchar 模板 get char
输入
inline ll read(){ ll f=1,sum=0; char ch=getchar(); while(!isdigit(ch)){if(ch==‘-‘)f=-1;ch=getchar();} while(isdigit(ch)){sum=(sum<<1)+(sum<<3)+(ch^48);ch=getchar();} return f*sum; }
输出
inline void write(int x){ if(x<0) putchar(‘-‘),x=-x; if(x>9) write(x/10); putchar(x%10+‘0‘); }
标签:== int har putchar bsp tchar 模板 get char
原文地址:https://www.cnblogs.com/jian-song/p/11624821.html