a = [3,2,1,-8,3,-2,8,6]
s = t = a[0]
for i in range(1,len(a)):
if s > 0:
s += a[i]
else:
s = a[i]
if s > t:
t = s
print(t)
该程序段的运行结果是( )