#34846: Python解


10955049@st.chjhs.tp.edu.tw (04李聖恩)


day = int(input())

money = 0

a = list(map(int, input().split()))

for i in range(day):

    cost = cost + (i+1)*a[ i ]

#40241: Re: Python解


oliver778677@gmail.com (楊佳錡)


day = int(input())

money = 0

a = list(map(int, input().split()))

for i in range(day):

    cost = cost + (i+1)*a[ i ]

好了啦李聖恩沒打完 去打地鼠啦 看看香山高中的威力