# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
889714 | Isam | Prosjek (COCI14_prosjek) | C++17 | 0 ms | 452 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>
#ifdef DEBUG
#include "debug.h"
#else
#define debug(...) void(37)
#endif
using namespace std;
signed main(){
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int N;
cin >> N;
vector<int> A(N+1, 0), B(N+1, 0);
for(register int i(1); i <= N; ++i) cin >> B[i], B[i] *= i;
for(register int i = 1; i <= N; ++i){
A[i] = B[i] - B[i-1];
}
for(register int i = 1; i <= N; ++i){
cout << A[i] << ' ';
}
cout << '\n';
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |