#include using namespace std; 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. if(i_start>i_end && j_starti_end && j_start>j_end){ if((i_start-i_end)%2==0){ int a = (i_start - i_end)/2; j_start = j_start -a ; if((j_start - j_end)%2==0){ int b = (j_start - j_end)/2; cout<j_end){ if((i_end-i_start)%2==0){ int a = (i_end-i_start)/2; j_start = j_start -a; if((j_start-j_end)%2==0){ int b = (j_start-j_end)/2; cout<j_end){ int a = (j_start - j_end)/2; cout<i_end){ int a = (i_start - i_end)/4; cout<<2*a<> 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; }