t=int(input())
while(t):
t=t-1
A=int(input())
x=int(A**(0.5))
d={}
for a in range(x+1):
for b in range(x+1):
if(a2 + b2 ==A):
if(a not in d.values()):
d[a]=b
print(*d.items())
What is wrong with this code
Hey @aakashsharma845
Request you to share the code through the Coding Blocks IDE. It would be much easier for me to help then. Notice the messed up indentation here.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.