Buggy python submission (verdict: Time Limit Exceeded):
import math
N=int(input())

n=math.floor(math.sqrt(N))

for n in range(1,N+1):
    ans=0
    for x in range(1,n ):
        for y in range(1, n):
            for z in range(1, n):
                if x**2+y**2+z**2+x*y+y*z+z*x==n:
                        ans+=1
    print(ans)


Fixed submission:
n=int(input())
ans=[0 for _ in range(10001)]

for x in range(1,101):
  for y in range(1,101):
    for z in range(1,101):
      v=x*x+y*y+z*z+x*y+y*z+z*x
      if v<10001:
        ans[v]+=1

for i in range(n):
  print(ans[i+1])

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=input()

def popcount(n):
    bin_n=bin(n)[2:]
    count=0
    for i in bin_n:
        count+=int(i)
    return count

def f(n):
    ans=0
    while n>0:
        n=n%popcount(n)
        ans+=1
    return ans

for i in range(n):
    inv=str(int(not bool(int(x[i]))))
    i_10=int((x[0:i]+ inv+x[i+1:n]),2)
    print(f(i_10))


Fixed submission:
n=int(input())
ans=[0 for _ in range(10001)]

for x in range(1,101):
  for y in range(1,101):
    for z in range(1,101):
      v=x*x+y*y+z*z+x*y+y*z+z*x
      if v<10001:
        ans[v]+=1

for i in range(n):
  print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N=int(input())

n=math.floor(math.sqrt(N))

for n in range(1,N+1):
    ans=0
    flag=False
    for x in range(1,n ):
        for y in range(1, n):
            for z in range(1, n):
                a=x**2+y**2+z**2+x*y+y*z+z*x
                if a==n:
                    ans+=1
                if a>n:
                    break
            if x**2+y**2+1+x*y+y+x>n:
                break
  
                    
    print(ans)

Fixed submission:
n=int(input())
ans=[0 for _ in range(10001)]

for x in range(1,101):
  for y in range(1,101):
    for z in range(1,101):
      v=x*x+y*y+z*z+x*y+y*z+z*x
      if v<10001:
        ans[v]+=1

for i in range(n):
  print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N=int(input())

n=math.floor(math.sqrt(N))

for n in range(1,N+1):
    ans=0
    flag=False
    for x in range(1,n ):
        for y in range(1, n):
            for z in range(1, n):
                a=x**2+y**2+z**2+x*y+y*z+z*x
                if a==n:
                    ans+=1
                if a>n:
                    break
  
                    
    print(ans)

Fixed submission:
n=int(input())
ans=[0 for _ in range(10001)]

for x in range(1,101):
  for y in range(1,101):
    for z in range(1,101):
      v=x*x+y*y+z*z+x*y+y*z+z*x
      if v<10001:
        ans[v]+=1

for i in range(n):
  print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
import itertools

N=int(input())

n=math.floor(math.sqrt(N))
l=list(itertools.product(range(n+1),repeat=3))

for n in range(1,N+1):
    ans=0
    for i in range(len(l)):
        x=int(l[i][0])+1
        y=int(l[i][1])+1
        z=int(l[i][2])+1
        if x**2+y**2+z**2+x*y+y*z+z*x==n:
                        ans+=1
    print(ans)

Fixed submission:
n=int(input())
ans=[0 for _ in range(10001)]

for x in range(1,101):
  for y in range(1,101):
    for z in range(1,101):
      v=x*x+y*y+z*z+x*y+y*z+z*x
      if v<10001:
        ans[v]+=1

for i in range(n):
  print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
import math
N=int(input())

n=math.floor(math.sqrt(N))

for n in range(1,N+1):
    ans=0
    for x in range(1,n ):
        for y in range(1, n):
            for z in range(1, n):
                if x**2+y**2+z**2+x*y+y*z+z*x==n:
                        ans+=1
    print(ans)

Fixed submission:
n=int(input())
ans=[0 for _ in range(10001)]

for x in range(1,101):
  for y in range(1,101):
    for z in range(1,101):
      v=x*x+y*y+z*z+x*y+y*z+z*x
      if v<10001:
        ans[v]+=1

for i in range(n):
  print(ans[i+1])

Buggy python submission (verdict: Time Limit Exceeded):
N=int(input())

for n in range(1,N+1):
    ans=0
    for x in range(1,N ):
        for y in range(1, N):
            for z in range(1, N):
                if x**2+y**2+z**2+x*y+y*z+z*x==n:
                        ans+=1
    print(ans)

Fixed submission:
n=int(input())
ans=[0 for _ in range(10001)]

for x in range(1,101):
  for y in range(1,101):
    for z in range(1,101):
      v=x*x+y*y+z*z+x*y+y*z+z*x
      if v<10001:
        ans[v]+=1

for i in range(n):
  print(ans[i+1])