版本比较
【备忘录】
正文
增加 5 行删除 5 行
275 行未改动全部展开27627727827928028028128228328419 行未改动30430530630730830830931031131232 行未改动345346347348349349350351352353191 行未改动全部展开54554654754854954955055155255355455555655755755855956056133 行未改动275 行未改动全部展开 tem=a[j][i]; for(int k=i;k<=n+1;k++) a[j][k]-=a[i][k]*tem; } }
ans[n]=a[n][n+1]; for(int i=n-1;i;i--) { ans[i]=a[i][n+1];19 行未改动{ int mid=(l+r)>>1; if(check(mid)) r=mid; else l=mid+1;} }```
* 在单调序列中查询目标中最大的一个
32 行未改动int ask(int x){ int ans=0; for(;x;x-=x&-x) ans+=c[x]; return ans; return ans;}```## 质数与同余数学
191 行未改动全部展开 seg[x]=++tot; rev[tot]=x; top[x]=x; }
if(son[x]) { seg[son[x]]=++tot; top[son[x]]=top[x]; rev[tot]=son[x]; dfs2(son[x],x); }
for(int i=h[x];i;i=edg[i].ne) { int y=edg[i].to; if(y==f||y==son[x]) continue;33 行未改动