快读及关闭输入输出流
inline void read(int &x)
{
char ch=getchar();int f=1;x=0;
while(!isdigit(ch) && ch^'-') ch=getchar();
if(ch=='-') f=-1,ch=getchar();
while(isdigit(ch)) x=x*10+ch-'0',ch=getchar();
x*=f;
}
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);

浙公网安备 33010602011771号