문제[백준] 7576번: 토마토https://www.acmicpc.net/problem/7576 코드#include #include #include using namespace std;int M, N; // M: 가로(열), N: 세로(행)int visited[1001][1001]; // 토마토가 익은 날짜를 저장하는 배열int tomato[1001][1001]; // 토마토가 저장된 상자의 상태를 저장하는 배열queue> q; // BFS를 위해 (x, y) 좌표를 저장하는 큐int ans; // 모든 토마토가 익기까지 걸리는 최대 날짜int dx[4] = {-1, 1, 0, 0};int dy[4] = {0, 0, -1..