Hi sir,
This is my code for the problem,
x= int(input())
for i in range(x):
t = int(input())
lis=[]
for i in range(int(t**(1/2))+1):
for j in range(i):
if (j2 + i2) == t:
lis.append(tuple(sorted((i,j))))
print(*sorted(lis))
Running this gives me wrong answer, can u please point out what i am not considering or which test case the code does not pass., and how to deal with it.