https://www.acmicpc.net/problem/7569from collections import dequeimport sysinput = sys.stdin.readlinem,n,h = map(int, input().split())tomato = [[list(map(int, input().split())) for _ in range(n)] for _ in range(h)]# for _ in range(h):# for _ in range(n):# tomato.append(list(map(int, input().split())))days = 0dx = [1,-1,0,0,0,0]dy = [0,0,1,-1,0,0]dz = [0,0,0,0,1,-1]visited = [[[False]..