版本比较
【4】题解:P8164 [JOI 2022 Final] 沙堡 2 【模拟】【扫描线】【图论建模】【数据结构】
正文
增加 1 行删除 1 行
100 行未改动10110210310410510510610710810946 行未改动100 行未改动 lsh[++n]=a[to(i,j)]; }else{ for(int i=1;i<=h;i++)for(int j=1;j<=w;j++) a[to(i,j)]=b[to(i,j)], lsh[++n]=a[to(i,j)]; lsh[++n]=a[to(i,j)]; } sort(lsh+1,lsh+n+1); n=unique(lsh+1,lsh+n+1)-lsh; for(int i=1;i<=h;i++)for(int j=1;j<=w;j++)46 行未改动