def job(time):#[[5,2,4],[1,8,5],[6,4,5]]
ls=['A','B','C']
minnum=time[0][0]+time[1][0]+time[2][0]
for i in range(3):
for j in range(3):
for k in range(3):
if i!=j and j!=k and i!=k:
if time[0][i]+time[1][j]+time[2][k]<minnum:
minnum=time[0][i]+time[1][j]+time[2][k]
a,b,c=i,j,k
return (minnum,a,b,c)
time_all = []
for x in range(3):
time_one = input().split()
time_one = [eval(x) for x in time_one]
time_all.append(time_one)
result=job(time_all)
for x in result:
print(x,end=" ")
第三行代码报错:说下标超出范围是为啥?