#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. //cout<< i_start<<" "<< j_start<<" "<0)? 0:1; k_v_2=(i_diff>0)? 3:2; k_h=(i_diff>0)? 3:2; vector res; if( j_diff_abs%2 ==0 && i_diff_abs%2==1)//convert problem to abs(j_diff)%4==0 && abs(i_diff)%2==0 { res.push_back( d[k_v_1]+ d[k_v_2]);no_moves++; //cout<0 )// moving vertically { if(i_diff!=0) { res.push_back( d[k_v_1]+ d[k_v_2]);no_moves++; //cout<0 ) { res.push_back( d[k_v_1]+ d[k_v_2]);no_moves++; //cout<0 )//moving horizontally { res. push_back(d[k_h]);no_moves++; //cout<> n; int i_start; int j_start; int i_end; int j_end; cin >> j_start >> i_start >> j_end >> i_end; printShortestPath(n, i_start, j_start, i_end, j_end); return 0; }