백준 2667번 C++
#include #include #include #include #include using namespace std; const int MAX = 26;int n;string arr[MAX];vector answer;typedef struct {int a, b;}Move;Move mv[4] = { {1,0},{-1,0},{0,1},{0,-1} }; bool checkfinish() {for (int i = 0; i < n; i++) {for (int j = 0; j < n; j++) {if (arr[i][j] == '1')return false;}}return true;} int bfs(int a,int b) {int answer = 1;queue q;q.push(make_pair(a, b));arr[a..
2019. 2. 25.