#include #define pii pair #define st first #define nd second using namespace std; queue q; string _move[7] = {"", "UL", "UR", "R", "LR", "LL", "L"}; int dx[6] = {-2, -2, 0, 2, 2, 0}, dy[6] = {-1, 1, 2, 1, -1, -2}, t[205][205], f[205][205]; void printShortestPath(int n, int i_start, int j_start, int i_end, int j_end) { // Print the distance along with the sequence of moves. q.push(make_pair(i_start, j_start)); t[i_start][j_start] = 1; while(!q.empty()){ int x = q.front().st, y = q.front().nd; //cout<= 0 && ty >= 0 && t[tx][ty] == 0){ //cout<<"goto "< st; int rx = tx, ry = ty; //cout<> n; int i_start; int j_start; int i_end; int j_end; cin >> i_start >> j_start >> i_end >> j_end; printShortestPath(n, i_start, j_start, i_end, j_end); return 0; }