# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
497999 | 2021-12-24T08:43:12 Z | gabrupro | Prosjek (COCI14_prosjek) | C++14 | 0 ms | 292 KB |
#include<bits/stdc++.h> #define ll long long using namespace std; int main() { int n; cin >> n; ll arr[n]; cin >> arr[0]; for (int i = 1; i < n; i++) { ll x; cin >> x; ll m = i + 1; arr[i] = x * m - arr[i - 1]; } for (ll x : arr) { cout << x << " "; } return 0; }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 204 KB | Output is correct |
2 | Correct | 0 ms | 204 KB | Output is correct |
3 | Incorrect | 0 ms | 292 KB | Output isn't correct |
4 | Halted | 0 ms | 0 KB | - |