运行下列代码,输出结果为?
s = [1,3,4, 3,1] m,sum =s [0],0 for i in range(1,len(s)): if s[i] > m: m = s[i] sum += m print(sum)
12
15
18
8