版本比较
P10052 [CCO2022] Double Attendance 题解
正文
增加 8 行删除 8 行
44 行未改动4546474849505152535455564950515253545556575859606190 行未改动44 行未改动 while(c<'0'||c>'9')c=nc(); while(c<='9'&&c>='0')res=res*10+c-'0',c=nc(); return res;}char obuf[1<<21],*p33=obuf; inline void pc(char c){ p33-obuf<=(1<<20)?(*p33++=c):(fwrite(obuf,p33-obuf,1,stdout),p33=obuf,*p33++=c); } inline void write(ll x){ if(x<0) pc('-'),x=-x; if(x>9) write(x/10); pc(x%10+'0'); char obuf[1<<21],*p33=obuf;inline void pc(char c){ p33-obuf<=(1<<20)?(*p33++=c):(fwrite(obuf,p33-obuf,1,stdout),p33=obuf,*p33++=c);}inline void write(ll x){ if(x<0) pc('-'),x=-x; if(x>9) write(x/10); pc(x%10+'0');}struct node{ll x,y;}p1[N],p2[N];inline bool cmp(node a,node b){return a.x<b.x;}ll n1,n2,lenth,i,j,k,f[N][2][2];inline ll found_cover(ll id,ll x){90 行未改动