่งฃๆณไธ
โ ๅฎๆดไปฃ็ขผ
่ฉๅ็ตๆ(ๅ่) ๏ผ AC (2ms, 328KB)
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, x, total = 0;
cin >> n;
for(int i=1; i<=n; i++){
cin >> x;
total += i*x;
}
cout << total;
return 0;
}