版本比较
题解:CF1385G Columns Swaps
正文
增加 2 行删除 2 行
94 行未改动95969798999910010110210310410510610710810910911011111211333 行未改动94 行未改动 if(preb[a[i]]) { combine(preb[a[i]], i); combine(preb[a[i]] + n, i + n); } } if(prea[b[i]]) { combine(prea[b[i]], i); combine(prea[b[i]] + n, i + n); } if(preb[b[i]]) { combine(preb[b[i]] + n, i); combine(preb[b[i]], i + n); } } prea[a[i]] = i; preb[b[i]] = i; } int ans = 0;33 行未改动