D题 | 小L的扩展 解题思路: 本质上是多源bfs题,不过要用优先队列,蓝色的点要么推迟时间,要么不产生任何影响。 示例代码: typedef array<int, 3> pi3; const int dx[] = {0, 1, 0, -1}; const int dy[] = {1, 0, -1, 0}; void solve() { int n, m, a, b; cin >> n >> m >> a >> b; vector<vector<bool>> vis(n, vector<bool>...