제출 #1342415

#제출 시각아이디문제언어결과실행 시간메모리
1342415nathlol2평균 (COCI14_prosjek)C++20
50 / 50
1 ms344 KiB
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, sm;

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    cin >> n;
    for(int i = 1;i<=n;i++){
        int x; cin >> x;
        cout << x * i - sm << ' ';
        sm += x * i - sm;
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...