human
Check if it is possible to reach ( x , y ) from origin in exactly Z steps using only plus movements | Function to check if it is possible to reach ( x , y ) from origin in exactly z steps.
Condition if we can 't reach in Z steps.
Driver Code.
Destination pocoordinate.
Number of steps allowed.
Function call"
Solution in Python:
assistant
#Here is code to check if it is possible to reach ( x , y ) from origin in exactly Z steps using only plus movements and the other steps required.
 def possibleToReach ( x , y , z ) :
	if ( z < abs ( x ) + abs ( y ) or ( z - abs ( x ) - abs ( y ) ) % 2 ) :
		print ( " Not ▁ Possible " )
	else :
		print ( " Possible " )
if __name__ == ' _ _ main _ _ ' :
	x = 5
	y = 5
	z = 11
	possibleToReach ( x , y , z )