(BOJ) 5427 풀이
5427 #include #define X first #define Y second using namespace std; int dx[] = {1, 0, -1, 0}; int dy[] = {0, 1, 0, -1}; int fire[1002][1002], ar[1002][1002], visited[1002][1002]; int main(void) { ios::sync_with_stdio(0); cin.tie(0); int T, w, h, flag = 0; cin >> T; while (T--) { flag = 0; cin >> w >> h; for (int i = 0; i < h; i++) { fill(fire[i], fire[i] + w, -1); fill(visited[i], visited[i] + w..
2022. 2. 8.