human
Even | Python3 code to find max ( X , Y ) / min ( X , Y ) after P turns.
1 st test case.
2 nd test case"
Solution in Python:
assistant
#Here is code to even and the other steps required.
 def findValue ( X , Y , P ) :
	if P % 2 == 0 :
		return int ( max ( X , Y ) / min ( X , Y ) )
	else :
		return int ( max ( 2 * X , Y ) / min ( 2 * X , Y ) )
X = 1
Y = 2
P = 1
print ( findValue ( X , Y , P ) )
X = 3
Y = 7
P = 2
print ( ( findValue ( X , Y , P ) ) )