快读快写,方便复制
namespace FastIO{
int p,pt=-1;
char buf[1<<21],buf1[1<<21],a[20],ch=' ',*pos=buf,*pos1=buf1;
void read(){}
void write(){}
inline int getch{return pos==pos1?&&(pos1=(pos=buf)+fread(buf,1,1<<21,stdin),pos==pos1)EOF:*pos++;}
inline void flush(){fwrite(buf1,1,pt+1,stdout),pt=-1;}
template<typename T,typename... T_>
inline void read(T &x,T_ &...oth){
bool flag=false;
x=0;
char c=getch();
while(!isdigit(c)){if(c=='-')f=true;c=getch();}
while(isdigit(c))x=(x<<1)+(x<<3)+(c^48),c=getch();
x=f?-x:x;
read(...oth)
}
template<typename T,typename... T_>
inline void print(T x,T_ ...oth){
if(pt>1<<20)flush();
if(x<0)buf1[++pt]=45,x=-x;
do a[++p]=x%10+48;while(x/=10);
do buf1[++pt]=a[p];while(p--);
buf1[++pt]=ch;
print(...oth);
}
}using namespace FastIO;祝所有人(尤其是给我点过赞的)遇题即锕!