[문제 링크] : https://www.acmicpc.net/problem/6593#include #include #include using namespace std;int L, C, R;char Arr[31][31][31];bool Visit[31][31][31];int sz, sy, sx;int Dir[6][3] = {{0, 0, -1}, {0, 0, 1}, {0, -1, 0}, {0, 1, 0}, {-1, 0, 0}, {1, 0, 0}};void init(){ for(int i=0; i, int>> Q; Q.push({{sz, sy}, sx}); Visit[sz][sy][sx] = true; int Ans = 0; while(Q.empty() == false){ ..