版本比较
题解:P12573 [UOI 2023] An Array and XOR
正文
增加 1 行删除 1 行
63 行未改动6465666768686970717273 行未改动63 行未改动 // cout<<"add\n"<; for(int j=m-1;j>=0;j--){ bool bt=(a[i]>>j)&1; if(v[rt].ch[bt]==0){ v[rt].ch[bt]=++tot; v[rt].ch[bt]=++tot; v[v[rt].ch[bt]].low[0]=v[v[rt].ch[bt]].low[1]=1; } L[i][j].first=v[rt].low[bt^1]; v[rt].low[bt]=i+1;73 行未改动