[알고리즘] 백준 4179 - 불! (C++)
[문제 링크] : https://www.acmicpc.net/problem/4179#include #include using namespace std;int R, C;char Arr[1001][1001];int Fire[1001][1001];bool Visit[1001][1001];int Dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};int Y, X;queue> Q;int solve(int a, int b){ queue>> q; q.push({0, {a, b}}); Visit[a][b] = true; while(q.empty() == false){ int y = q.front().second.first; int x = q..