1、快读相关代码
inline int read() {
int x=0,f=0;
char ch=getchar();
while(!isdigit(ch))f|=(ch=='-'),ch=getchar();
while(isdigit(ch))x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
return f?-x:x;
}
2、用cin,cout时
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
标签:常用,ch,cout,int,cin,C++,快读,tie
From: https://www.cnblogs.com/N-lim/p/16900401.html