#include "bits/stdc++.h" #define MAXN 100009 #define INF 1000000007 #define mp(x,y) make_pair(x,y) #define all(v) v.begin(),v.end() #define pb(x) push_back(x) #define wr cout<<"----------------"<=0 and toy>=0 and toxq; q.push(mp(xx,yy)); dis[xx][yy]=0; while(!q.empty()){ int nx=q.front().ff; int ny=q.front().ss; q.pop(); for(int i=0;i<6;i++){ int tox=nx+dx[i]; int toy=ny+dy[i]; if(tox>=0 and toy>=0 and tox