# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1014917 | vjudge1 | Prosjek (COCI14_prosjek) | C++17 | 0 ms | 348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int n; cin>>n;
vector<int> a(n+1,0);
int sum=0;
for (int i=1; i<=n; i++){
int y; cin>>y;
int x=y*i-sum;
a[i]=x;
sum+=x;
}
for (int i=1; i<=n; i++) cout<<a[i]<<' ';
cout<<'\n';
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |