Help me in solving UWCOI21A problem

time limit exceeded is shown …what is the error

My code

a=int(input())
for i in range(a):
    n=int(input())
    for c in range(1,n):
        for d in range (1,n):
            f=c*d
            if (f==n):
                print(c,d)

Problem Link: UWCOI21A Problem - CodeChef

@season270703sh
showing tle because u can’t loop int this
just basic logic i’ll print A as 1 and B as N itself it should work fine