Help me in solving P2149 problem

My issue

T=int(input())
for i in range(T):
A,B,X=map(int,input().split())
r=0
if (AB)<=XX:
print(r)
else:
X=X+1
r=r+1
error in this code

My code

# cook your dish here
T=int(input())
for i in range(T):
    A,B,X=map(int,input().split())
    r=0
    if (A*B)<=X*X:
        print(r)
    else:
        X=X+1
        r=r+1
    

Problem Link: Magical World Practice Coding Problem