b294. ็ถ“ๆฟŸๅคงๆ่’ 5/16/2025

่งฃๆณ•ไธ€

โœ… ๅฎŒๆ•ดไปฃ็ขผ

่ฉ•ๅˆ†็ตๆžœ(ๅƒ่€ƒ) ๏ผš 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;
}