# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1215493 | alimq | 평균 (COCI14_prosjek) | C++20 | 0 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
const int n0=103;
int n;
long long b[n0],a[n0];
int main()
{
cin >> n;
for(int i=0; i<n; i++) {
cin >> b[i];
b[i]*=(i+1);
}
a[0]=b[0];
cout << a[0] << ' ';
for(int i=1; i<n; i++) {
a[i]=b[i]-b[i-1];
cout << a[i] << ' ';
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |