# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
978493 | ezzzay | Prosjek (COCI14_prosjek) | C++14 | 1 ms | 600 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
#define ff first
#define ss second
#define pb push_back
const int N=3e5+5;
int a[N];
signed main(){
int n;
cin>>n;
int s=0;
for(int i=1;i<=n;i++){
cin>>a[i];
cout<< a[i]*i-s<<" ";
s=a[i]*i;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |