백준 7569번 토마토

    [BakJoon] 백준 7569번 토마토

    [BakJoon] 백준 7569번 토마토 문제: https://www.acmicpc.net/problem/7569 내코드 - 처음에는 큐에 queue 이렇게 하려고 했으나 stl에는 배열이 들어가지 않는다고 해서 dist는 배열을 따로 만들어주었다. - 7576번 토마토와 비슷하지만 높이가 추가 되서 인접한 토마토만 추가해주고 높이만 따로 생각해주면 된다. - 아래는 아이패드에 정리한 내용 #include #include #include #include using namespace std; int h, m, n, maxN = 0; int x, y, z; int arr[100][100][100]; int dist[100][100][100]; bool visited[100][100][100]; queue q..