#!/bin/python3 import sys def printShortestPath(n, i_start, j_start, i_end, j_end): # Print the distance along with the sequence of moves. if (i_start-i_end)%2==0: turns=[] while j_start!=j_end or i_start!=i_end: if j_start<=j_end: if i_start>i_end: turns.append('UR') j_start+=1 i_start-=2 elif i_startj_end: if i_start>i_end: turns.append('UL') j_start-=1 i_start-=2 elif i_start