My issue
t=int(input())
for i in range(t):
c=0
a,b,x=map(int,input().split())
while ab>x**2:
if a>b:
a=x-1
c+=1
if ab>x2:
b=x-1
c+=1
else:
b=x-1
c+=1
if a*b>x2:
a=x-1
c+=1
print(c)
i dont know where it is failing. normal test cases are got executed sucessfully but hidden are not. can u tell where it was error
My code
# cook your dish here
t=int(input())
for i in range(t):
c=0
a,b,x=map(int,input().split())
while a*b>x**2:
if a>b:
a=x-1
c+=1
if a*b>x**2:
b=x-1
c+=1
else:
b=x-1
c+=1
if a*b>x**2:
a=x-1
c+=1
print(c)
Problem Link: Magical World Practice Coding Problem