版本比较
题解:AT_arc119_d [ARC119D] Grid Repainting 3
正文
增加 2 行删除 2 行
52 行未改动535455565757585960615 行未改动67686970717172737452 行未改动{ ioimprove(); cin>>n>>m; for(int i = 1;i <= n;i++) for(int j = 1;j <= m;j++) for(int j = 1;j <= m;j++) { cin>>ch[i][j]; if(ch[i][j] == 'R') g[i].push_back(j + n),g[j + n].push_back(i); }5 行未改动 for(int i = 1;i <= lmax;i++) for(int u : scc[i]) if(u <= n) {dfs2(u,0);break;} for(int i = lmax + 1;i <= cntscc;i++) for(int u : scc[i]) if(u > n) {dfs2(u,0);break;}
return 0;}```