正文
增加 3 行删除 3 行
40 行未改动414243444546474849505129 行未改动40 行未改动if (a[x][y] == 'O' && !pt){mn = stp;return;}if (a[x][y] == '#' || !pt && a[x][y] == 'E' ||pt == 1 && a[x][y + 1] == '#' ||pt == 2 && a[x + 1][y] == '#' ||f[x][y][pt] <= stp) continue; // 记得加等于号// printf("%d %d %d %d\n",x,y,pt,stp);f[x][y][pt] = stp;for (int i = 0;i < 4;i++){29 行未改动40 行未改动414243444546474849505129 行未改动40 行未改动if (a[x][y] == 'O' && !pt){mn = stp;return;}if (a[x][y] == '#' || !pt && a[x][y] == 'E' ||pt == 1 && a[x][y + 1] == '#' ||pt == 2 && a[x + 1][y] == '#' ||f[x][y][pt] <= stp) continue; // 记得加等于号// printf("%d %d %d %d\n",x,y,pt,stp);f[x][y][pt] = stp;for (int i = 0;i < 4;i++){29 行未改动