제출 #37316

#제출 시각아이디문제언어결과실행 시간메모리
37316dongwon0427Prosjek (COCI14_prosjek)C++98
50 / 50
0 ms2564 KiB
/*
god taekyu
*/

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;

int n;
int A[100005];
int main() {
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    cin>>n;
    for(int i=1;i<=n;i++) cin>>A[i];
    for(int i=1;i<=n;i++) {
        cout<<(ll)A[i]*(ll)(i) - (ll)A[i-1]*(ll)(i-1)<<' ';
    }
    return 0;
}

/*
god taekyu
*/
#Verdict Execution timeMemoryGrader output
Fetching results...