Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0
numlist = [0] * 10000

if int(float(N)**0.5) <= 1:
  rMax = 1
else:
  rMax = int(float(N)**0.5)  

for x in range(1,rMax+1):
  for y in range(1,rMax+1):
    for z in range(1,rMax+1):
      Ans = x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x)
      if Ans <= 10000:
        numlist[Ans] += 1
  
for r in range(1,N+1):
  print(numlist[r])

Fixed submission:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0
numlist = [0] * 10001

if int(float(N)**0.5) <= 1:
  rMax = 1
else:
  rMax = int(float(N)**0.5)  

for x in range(1,rMax+1):
  for y in range(1,rMax+1):
    for z in range(1,rMax+1):
      Ans = x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x)
      if Ans <= 10000:
        numlist[Ans] += 1
  
for r in range(1,N+1):
  print(numlist[r])

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0
numlist = [0] * 10000

if int(float(N)**0.5) <= 1:
  rMax = 1
else:
  rMax = int(float(N)**0.5)  

for x in range(1,rMax+1):
  for y in range(1,rMax+1):
    for z in range(1,rMax+1):
      Ans = x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x)
      numlist[Ans] += 1
  
for r in range(1,N+1):
  print(numlist[r])


Fixed submission:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0
numlist = [0] * 10001

if int(float(N)**0.5) <= 1:
  rMax = 1
else:
  rMax = int(float(N)**0.5)  

for x in range(1,rMax+1):
  for y in range(1,rMax+1):
    for z in range(1,rMax+1):
      Ans = x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x)
      if Ans <= 10000:
        numlist[Ans] += 1
  
for r in range(1,N+1):
  print(numlist[r])

Buggy python submission (verdict: Time Limit Exceeded):
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0

for i in range(1,N+1):
  if int(float(i)**0.5) <= 1:
    rMax = 1
  else:
    rMax = int(float(N)**0.5)  

  for x in range(1,rMax+1):
    if x**2 > i:
      break
    else:
      for y in range(1,rMax+1):
        if x**2 + y**2 > i:
          break
        else:
          for z in range(1,rMax+1):
            if x**2 + y**2 + z**2 > i:
              break
            else:
              if x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x) == i:
                Ans += 1
  
  print(Ans)
  Ans = 0

Fixed submission:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0
numlist = [0] * 10001

if int(float(N)**0.5) <= 1:
  rMax = 1
else:
  rMax = int(float(N)**0.5)  

for x in range(1,rMax+1):
  for y in range(1,rMax+1):
    for z in range(1,rMax+1):
      Ans = x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x)
      if Ans <= 10000:
        numlist[Ans] += 1
  
for r in range(1,N+1):
  print(numlist[r])

Buggy python submission (verdict: Time Limit Exceeded):
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

if int(float(N)**0.5) <= 1:
  xyzMax = 1
else:
  xyzMax = int(float(N)**0.5)

Ans = 0

for i in range(1,N+1):
  for x in range(1,xyzMax+1):
    if x**2 > i:
      break
    else:
      for y in range(1,xyzMax+1):
        if x**2 + y**2 > i:
          break
        else:
          for z in range(1,xyzMax+1):
            if x**2 + y**2 + z**2 > i:
              break
            else:
              if x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x) == i:
                Ans += 1
  
  print(Ans)
  Ans = 0

Fixed submission:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0
numlist = [0] * 10001

if int(float(N)**0.5) <= 1:
  rMax = 1
else:
  rMax = int(float(N)**0.5)  

for x in range(1,rMax+1):
  for y in range(1,rMax+1):
    for z in range(1,rMax+1):
      Ans = x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x)
      if Ans <= 10000:
        numlist[Ans] += 1
  
for r in range(1,N+1):
  print(numlist[r])

Buggy python submission (verdict: Time Limit Exceeded):
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

if int(float(N)**0.5) <= 1:
  xyzMax = 1
else:
  xyzMax = int(float(N)**0.5)

Ans = 0

for i in range(1,N+1):
  for x in range(1,xyzMax+1):
    for y in range(1,xyzMax+1):
      for z in range(1,xyzMax+1):
        if x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x) == i:
          Ans += 1
          
  print(Ans)
  Ans = 0

Fixed submission:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
N = int(input())

Ans = 0
numlist = [0] * 10001

if int(float(N)**0.5) <= 1:
  rMax = 1
else:
  rMax = int(float(N)**0.5)  

for x in range(1,rMax+1):
  for y in range(1,rMax+1):
    for z in range(1,rMax+1):
      Ans = x**2 + y**2 + z**2 + (x * y) + (y * z) + (z * x)
      if Ans <= 10000:
        numlist[Ans] += 1
  
for r in range(1,N+1):
  print(numlist[r])