제출 #104654

#제출 시각아이디문제언어결과실행 시간메모리
104654MatesV13평균 (COCI14_prosjek)C++11
50 / 50
4 ms512 KiB
#include <bits/stdc++.h>
using namespace std;
long long n, stara, nova, a;
int main (){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
	cin >> n;
	for (int i=1;i<=n;i++){
		cin >> a;
		nova = a*i;
		cout << nova-stara << " ";
		stara = nova;
	}
return 0;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…