# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
37316 | dongwon0427 | Prosjek (COCI14_prosjek) | C++98 | 0 ms | 2564 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.
/*
god taekyu
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
int n;
int A[100005];
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
cin>>n;
for(int i=1;i<=n;i++) cin>>A[i];
for(int i=1;i<=n;i++) {
cout<<(ll)A[i]*(ll)(i) - (ll)A[i-1]*(ll)(i-1)<<' ';
}
return 0;
}
/*
god taekyu
*/
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |