Link to the question Question
My solution , works fine in my local machine and gives right output
import math
n = int(raw_input())
num = [int(x) for x in (str(raw_input())).split()]
# for i in range(n):
# num.append(int(raw_input()))
def printer(x):
for i in range(int(math.sqrt(x)) + 1):
b = x - i * i
if ((i <= int(math.sqrt(b)) and ((math.sqrt(b)) / (round(math.sqrt(b)))) == 1)):
print"({0},{1})".format(i,int(math.sqrt(b))),
for x in num:
if (((math.sqrt(x)) / (round(math.sqrt(x)))) == 1):
printer(x)
print()
**|Test Case Number |Result|
|—|---|
|#1 |wrong-answer|
|#2 |run-error|
**
these are the two errors i am getting on submission