def fun(A):
for i in range(A+1):
for j in range(i,A+1):
if(i2+j2==A):
print("({},{})".format(i,j),end=" “)
print(”")
n=int(input())
for i in range(n):
x=int(input())
fun(x)
Time limit exceeded
Hey @ajaysiddartha, can you please upload your code on google drive and share the link over here ? Or you can share the online coding blocks IDE link. It is difficult to understand the code without indentation !
I hope you understand !
Thanks !
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.