Buggy python submission (verdict: Runtime Error):
N=int(input())
r=[0]*N
for i in range(1,100):
    for j in range(1,100):
        for k in range(1,100):
            v = i*i + j*j + k*k + i*j + i*k + k*j
            if v <= 10000
            r[v-1] += 1
print(*r,sep='\n')

Fixed submission:
N=int(input())
r=[0]*10000
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            v = i*i + j*j + k*k + i*j + i*k + k*j
            if v <= 10000:
                r[v-1] += 1
for i in range(N):
    print(r[i])

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
ans =0
L =[0]*n

for i in range(1,n+1):
    for j in range(1,int(n**0.5//6)+2):
        for k in range(j,int(n**0.5//6)+3):
            for l in range(k,int(n**0.5//6)+4):
                if j**2 + k **2 + l**2 + j*k + k*l + l*j == i:
                    if j == k == l:
                        L[i-1] += 1
                        break
                    if j < k <l:
                        L[i-1] += 6
                        break
                    else:
                        L[i-1] += 3
for m in range(n):
    print(L[m])

Fixed submission:
N=int(input())
r=[0]*10000
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            v = i*i + j*j + k*k + i*j + i*k + k*j
            if v <= 10000:
                r[v-1] += 1
for i in range(N):
    print(r[i])

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
ans =0
L =[0]*n

for i in range(1,n+1):
    for j in range(1,int(n**0.5//6)+2):
        for k in range(j,int(n**0.5//6)+3):
            for l in range(k,int(n**0.5//6)+4):
                if j**2 + k **2 + l**2 + j*k + k*l + l*j == i:
                    if j == k == l:
                        L[i-1] += 1
                        break
                    if j != k and j!=l and k!=l:
                        L[i-1] += 6
                        break
                    else:
                        L[i-1] += 3
for m in range(n):
    print(L[m])

Fixed submission:
N=int(input())
r=[0]*10000
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            v = i*i + j*j + k*k + i*j + i*k + k*j
            if v <= 10000:
                r[v-1] += 1
for i in range(N):
    print(r[i])

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
ans =0
L =[0]*n

for i in range(1,n+1):
    for j in range(1,int((n**0.5+1))//3+1):
        for k in range(j,int((n**0.5+1))//3+2):
            for l in range(k,int((n**0.5+1))//3+3):
                if j**2 + k **2 + l**2 + j*k + k*l + l*j == i and j == k == l:
                    L[i-1] += 1
                if j**2 + k **2 + l**2 + j*k + k*l + l*j == i and j == k and j!=l:
                    L[i-1] += 3
                if j**2 + k **2 + l**2 + j*k + k*l + l*j == i and j != k and k==l:
                    L[i-1] += 3
                if j**2 + k **2 + l**2 + j*k + k*l + l*j == i and j != k and j!=l and k!=l:
                    L[i-1] += 6
for m in range(n):
    print(L[m])

Fixed submission:
N=int(input())
r=[0]*10000
for i in range(1,101):
    for j in range(1,101):
        for k in range(1,101):
            v = i*i + j*j + k*k + i*j + i*k + k*j
            if v <= 10000:
                r[v-1] += 1
for i in range(N):
    print(r[i])