https://www.acmicpc.net/problem/7569 #include using namespace std; #define X first #define Y second int board[102][102][102]; int vis[102][102][102]; int dx[6] = {1, 0, -1, 0, 0, 0}; int dy[6] = {0, 1, 0, -1, 0, 0}; int dz[6] = {0, 0, 0, 0, 1, -1}; int main(void) { ios::sync_with_stdio(0); cin.tie(0); int ans = 1; int m, n, h, z, x, y; cin >> m >> n >> h; queue q; for (int i = 0; i < h; i++) for..