제출 #920511

#제출 시각아이디문제언어결과실행 시간메모리
920511speedcode평균 (COCI14_prosjek)C++17
50 / 50
1 ms600 KiB
#include <bits/stdc++.h>
using namespace std;


int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);

    long long a = 0;
    long long b;

    int n;
    cin >> n;
    
    for(int i = 1; i <= n; i++){
        cin >> b;
        cout << i*b - (i-1)*a << ' ';
        a = b;
    }
    cout << '\n';

    return 0;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…