版本比较
题解:P10379 [GESP202403 七级] 俄罗斯方块
正文
增加 1 行删除 1 行
34 行未改动35363738394041424332 行未改动34 行未改动if (mapp[next_x][next_y]==-1 || vis[next_x][next_y])continue;//如果越界或已被遍历过,就退出if (mapp[next_x][next_y]!=mapp[x][y])continue;//颜色不同也直接退出s+=i;//记录朝向vis[next_x][next_y]=1;//打上标记dfs(next_x,next_y);//进入下一次遍历//这里不需要回溯,因为我们不会再次进入这次遍历32 行未改动34 行未改动35363738394041424332 行未改动34 行未改动if (mapp[next_x][next_y]==-1 || vis[next_x][next_y])continue;//如果越界或已被遍历过,就退出if (mapp[next_x][next_y]!=mapp[x][y])continue;//颜色不同也直接退出s+=i;//记录朝向vis[next_x][next_y]=1;//打上标记dfs(next_x,next_y);//进入下一次遍历//这里不需要回溯,因为我们不会再次进入这次遍历32 行未改动