题目
枚举每个空地作为起点,向四个方向搜索,搜索后将这个起点置为障碍。
#include <iostream>
#include <cmath>
#include <iomanip>
#include <vector>
#include <map>
#include <cstring>
#include <algorithm>
using namespace std;
struct Coordinate{
int row;
int col;
};
Coordinate mov_dir[4] = {
{
1, 0}, {
0, -1}</