Problem p02608 (python)

Fixed submission:
N = int(input())
list = [0]*(N+1)
for i in range(1,100):  
    for j in range(1,100):
        a = i*i + j*j + i*j
        for k in range(1,100):
            a = i*i + j*j + k*k + i*j +j*k + i*k
            if a <= N:
                list[a] += 1
for i in range(1,N+1):
    print(list[i])

Buggy submission (verdict: Runtime Error):
N = int(input())
list = [0]*1001
for i in range(1,1001):  
    for j in range(1,1001):
        a = i*i + j*j + i*j
        for k in range(1,1001):
            a = i*i + j*j + k*k + i*j +j*k + i*k
            if a <= N:
                list[a] += 1
for i in range(1,N+1):
    print(list[i])

Buggy submission (verdict: Runtime Error):
N = int(input())
list = [0]*1001
for i in range(1,100):  
    for j in range(1,100):
        a = i*i + j*j + i*j
        for k in range(1,100):
            a = i*i + j*j + k*k + i*j +j*k + i*k
            if a <= N:
                list[a] += 1
for i in range(1,N+1):
    print(list[i])

Buggy submission (verdict: Runtime Error):
N = int(input())
list = [0]*1001
for i in range(1,int(N**0.5)):  
    for j in range(1,int(N**0.5)):
        a = i*i + j*j + i*j
        for k in range(1,int(N**0.5)):
            a = i*i + j*j + k*k + i*j +j*k + i*k
            if a <= N:
                list[a] += 1
for i in range(1,N+1):
    print(list[i])

Buggy submission (verdict: Runtime Error):
N = int(input())
list = [0]*1001
for i in range(1,int(N**0.5)):  
    for j in range(1,int(N**0.5)):
        a = i*i + j*j + i*j
        for k in range(1,int(N**0.5)):
            a = i*i + j*j + k*k + i*j +j*k + i*k
            if a <= N:
                list[a] += 1
for i in list[1:]:
    print(i)

Buggy submission (verdict: Runtime Error):
N = int(input())
list = [0]*1001
for i in range(1,int(N**0.5)):  
    for j in range(1,int(N**0.5)):
        a = i*i + j*j + i*j
        for k in range(1,int(N**0.5)):
            a = i*i + j*j + k*k + i*j +j*k + i*k
            if a <= N:
                list[a] += 1
for i in list[1:]:
    print(i)

Buggy submission (verdict: Runtime Error):
N = int(input())
c = 0
n = 0
list = [0] *1001
for l in range(1,N+1):
    list = []
    for i in range(1,int(N**0.5)):
        if i*i > l:
            break;       
        for j in range(1,int(N**0.5)):
            a = i*i + j*j + i*j
            for k in range(1,int(N**0.5)):
              a = i*i + j*j + k*k + i*j +j*k + i*k
                if i*i + j*j + k*k + i*j +j*k + i*k <= N:
                    list[a] += 1
for i in range(N):
  print(lsit[i])

Buggy submission (verdict: Runtime Error):
N = int(input())
c = 0
n = 0
list = [0] *1001
for l in range(1,N+1):
    list = []
    for i in range(1,int(N**0.5)):
        if i*i > l:
            break;       
        for j in range(1,int(N**0.5)):
            a = i*i + j*j + i*j
            for k in range(1,int(N**0.5)):
              a = i*i + j*j + k*k + i*j +j*k + i*k
                if i*i + j*j + k*k + i*j +j*k + i*k <= N:
                    list[a] += 1
    print(sum(list))

Buggy submission (verdict: Runtime Error):
N = int(input())
c = 0
n = 0
list = []
for l in range(1,N+1):
    list = []
    for i in range(1,l+1):
        if i*i + j*j + i*j > l:
            break;       
        for j in range(1,l+1):
            if i*i + j*j + i*j > l:
                break;
            for k in range(1,l+1):
                #print(i,j,k,l)
                if i*i + j*j + k*k + i*j +j*k + i*k > l:
                    break;
                if i*i + j*j + k*k + i*j +j*k + i*k == l:
                    list.append(1)
                    break;
    print(sum(list))