#include #include using namespace std; struct cord { int x; int y; }; bool map[102][102]; int visited[102][102]; void input_map(int N, int M) { char c; for (int i = 1; i c; if (c == '1') map[i][j] = 1; else map[i][j] = 0; } } int solv_maze(int n, int m, cord s) { //int cnt = 0; queue q; q.push(s); cord next; cord now = q.front(); visited[now.y][now.x] = 1; while (!q.empty()) { now = q.front(); q..
123456789101112131415161718192021222324252627282930313233343536373839404142#include using namespace std; int main(){ for(int T=1; T> N; for(int i=0; i map[i][j]; for(int i=0; i
123456789101112131415161718192021222324252627282930313233343536373839#include using namespace std;int m(int a, int b) {return a>=b ? a:b;}int main(){ for(int T=0;T