版本比较
快读快写
正文
增加 17 行删除 11 行
12324545667898910111211121314151617181914202122171823242526```cppchar buf[1<<20],*buf1,*buf2;#define gc() (buf1==buf2&&(buf2=(buf1=buf)+fread(buf,1,1<<20,stdin)),*buf1++)int read()ll read(){ int k=0,f=1; char c=getchar_unlocked(); while(c<'0'||c>'9') ll ans=0,f=1; char t=gc(); while(!isdigit(t)) { if(c=='-')f=-1; c=getchar_unlocked(); if(t=='-')f=-1; t=gc(); } while(c>='0'&&c<='9')k=k*10+c-'0',c=getchar_unlocked(); return k*f; while(isdigit(t)) { ans=(ans<<3)+(ans<<1)+(t^48); t=gc(); } return ans*f;}void write(int x)void write(ll x){ if(x<0)putchar('-'),x=-x; if(x<10)putchar(x+'0'); else write(x/10),putchar(x%10+'0'); if(x>9)write(x/10); putchar((x%10)^48);}```