#include #include using namespace std;int N, M;int Arr[101][101];bool Visit[101][101];int Dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};int Cheese;void init(){ for(int i=0; i> Q; Q.push({0, 0}); Visit[0][0] = true; while(Q.empty() == false){ int y = Q.front().first; int x = Q.front().second; Q.pop(); for(int i=0; i= N || nx >= M) continue; if(V..