https://www.acmicpc.net/problem/18405코드#include #include using namespace std;#define MAX 201#define FASTIO ios::sync_with_stdio(false);cin.tie(NULL);int n, k, s, x, y;int arr[MAX][MAX];int dx[4] = { 1, -1,0, 0 }, dy[4] = { 0, 0, 1, -1 };queue> q[1001];void bfs() { for (int i = 1; i > tmp; while (!q[i].empty()) { int nx = q[i].front().first; int ny = q[i].front().second; q[i].pop(); ..