Buggy python submission (verdict: Time Limit Exceeded):
import math
n = int(input())
count = [0]*n
for i in range(1,n+1):
    for x in range(1,int(n**0.5)+1):
        for y in range(1,int(n**0.5)+1):
            b = x + y
            c = x*x + y*y + x*y - i
            if b**2 >= 4*c and ((-b + math.sqrt(b**2-4*c))/2).is_integer() == True and (-b + math.sqrt(b**2-4*c))/2 >= 1:
                    count[i-1] += 1
    print(count[i-1])

Fixed submission:
import math
n = int(input())
count = [0]*(10**7)
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            count[i*i + j*j + k*k + i*j + j*k + k*i -1] += 1
for i in range(n):
    print(count[i])

Buggy python submission (verdict: Time Limit Exceeded):
import math
n = int(input())
count = [0]*n
for i in range(1,n+1):
    for x in range(1,int(n**0.5)+1):
        for y in range(1,int(n**0.5)+1):
            b = x + y
            c = x*x + y*y + x*y - i
            if b**2 >= 4*c:
                d = (-b + math.sqrt(b**2-4*c))/2 #zの解
                if d.is_integer() == True and d >= 1:
                    count[i-1] += 1
    print(count[i-1])

Fixed submission:
import math
n = int(input())
count = [0]*(10**7)
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            count[i*i + j*j + k*k + i*j + j*k + k*i -1] += 1
for i in range(n):
    print(count[i])

Buggy python submission (verdict: Time Limit Exceeded):
import math
n = int(input())
count = [0]*n
for i in range(1,n+1):
    for x in range(1,int(n**0.5)+1):
        for y in range(1,int(n**0.5)+1):
            b = x + y
            c = x*x + y*y + x*y - i
            if b**2 >= 4*c:
                d = (-b + math.sqrt(b**2-4*c))/2 #zの解
                if d.is_integer() == True and d >= 1:
                    count[i-1] += 1
for i in range(n):
    print(count[i])

Fixed submission:
import math
n = int(input())
count = [0]*(10**7)
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            count[i*i + j*j + k*k + i*j + j*k + k*i -1] += 1
for i in range(n):
    print(count[i])

Buggy python submission (verdict: Time Limit Exceeded):
import math
n = int(input())
count = [0]*n
for i in range(1,n+1):
    for x in range(1,int(n**0.5)+1):
        for y in range(1,int(n**0.5)+1):
            b = x + y
            c = x*x + y*y + x*y - i
            if b**2 >= 4*c:
                d = (-b + math.sqrt(b**2-4*c))/2
                if d.is_integer() == True and d >= 1:
                    count[i-1] += 1
                elif d.is_integer() == True and d >= 1:
                    count[i-1] += 1
for i in range(n):
    print(count[i])

Fixed submission:
import math
n = int(input())
count = [0]*(10**7)
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            count[i*i + j*j + k*k + i*j + j*k + k*i -1] += 1
for i in range(n):
    print(count[i])

Buggy python submission (verdict: Time Limit Exceeded):
import math
n = int(input())
count = [0]*n
ch = []
for i in range(100):
    ch.append(i+1)
for i in range(1,n+1):
    for x in range(1,int(n**0.5)+1):
        for y in range(1,int(n**0.5)+1):
            b = x + y
            c = x*x + y*y + x*y - i
            if b**2 >= 4*c:
                if( (-b + math.sqrt(b**2-4*c))/2 ) in ch:
                    count[i-1] += 1
                elif( (-b - math.sqrt(b**2-4*c))/2 ) in ch:
                    count[i-1] += 1
for i in range(n):
    print(count[i])

Fixed submission:
import math
n = int(input())
count = [0]*(10**7)
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            count[i*i + j*j + k*k + i*j + j*k + k*i -1] += 1
for i in range(n):
    print(count[i])

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
count = [0]*n
for i in range(1,n+1):
    for x in range(1,int(n**0.5)+1):
        for y in range(1,int(n**0.5)+1):
            for z in range(1,int(n**0.5)+1):
                if x**2 + y**2 + z**2 + x*y + y*z + z*x == i:
                    count[i-1] += 1
for i in range(n):
    print(count[i])

Fixed submission:
import math
n = int(input())
count = [0]*(10**7)
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            count[i*i + j*j + k*k + i*j + j*k + k*i -1] += 1
for i in range(n):
    print(count[i])