#include <iostream> #include <vector> #include <queue> #include <unordered_map> #include <algorithm> using namespace std; /* 输入: 5 5 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 复制 输出: (0,0) (1,0) (2,0) (2,1) (2,2) (2,3) (2,4) (3,4) (4,4) */ class Point { public:...