백준 14502번 C++
#include #include #include using namespace std; const int MAX = 8; int lab[MAX][MAX];int labcopy[MAX][MAX];int m, n;vector emptyroom; typedef struct {int x, y;}Move;Move mv[4] = { {-1,0},{1,0},{0,1},{0,-1} }; void dfs(int i, int j) { for (int k = 0; k = 0 && ma = 0 && mb < m) {if (labcopy[ma][mb] == 0) {labcopy[ma][mb] = 2;..
2019. 1. 10.