Beat the Spread!
T=input()
for t in range(int(T)):
a,b=map(int,input().split())
c=0
ans=''
for i in range(a+1):
for j in range(a+1):
if i+j==a and abs(i-j)==b:
ans=str(i)+' '+str(j)
if ans=='' or a<b:
print('impossible')
else:
print(ans)
Square Numbers
while 1:
try:
a,b=map(int,input().split())
c=0
if a==b==0:
break
for i in range(a,b+1):
if i**(1/2)%1==0:
c+=1
print(c)
except:
break